From 44c32ff6419183c2623abfd0b9ce01fc3c2d9db7 Mon Sep 17 00:00:00 2001 From: Max Weber Date: Fri, 7 Sep 2018 03:55:30 -0600 Subject: [PATCH] diaryreqs: Update scrollbar with new length This interface was ported to a different widget (in #5346), but that interface has a dynamic length, controlled by cs2 2523, which is called by the server when the interface is filled. Simply call the cs2 again after the next one has ran with our new linecount. --- .../src/main/java/net/runelite/api/ScriptID.java | 9 +++++++++ .../DiaryRequirementsPlugin.java | 16 +++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/runelite-api/src/main/java/net/runelite/api/ScriptID.java b/runelite-api/src/main/java/net/runelite/api/ScriptID.java index 517402dcaa..849baf9139 100644 --- a/runelite-api/src/main/java/net/runelite/api/ScriptID.java +++ b/runelite-api/src/main/java/net/runelite/api/ScriptID.java @@ -54,6 +54,15 @@ public final class ScriptID */ public static final int CLOSE_CHATBOX_INPUT = 299; + /** + * Updates the Diary/Quest interface's scrollbar + * + */ + public static final int DIARY_QUEST_UPDATE_LINECOUNT = 2523; + /** * Initializes the chatbox input to use RuneLite callbacks *