Merge pull request #2602 from Owain94/upstream-2105

This commit is contained in:
Owain van Brakel
2020-05-21 13:58:10 +02:00
committed by GitHub
13 changed files with 331 additions and 195 deletions

View File

@@ -25,9 +25,9 @@
object ProjectVersions { object ProjectVersions {
const val launcherVersion = "2.2.0" const val launcherVersion = "2.2.0"
const val rlVersion = "1.6.15" const val rlVersion = "1.6.16"
const val openosrsVersion = "3.3.2" const val openosrsVersion = "3.3.3"
const val rsversion = 189 const val rsversion = 189
const val cacheversion = 165 const val cacheversion = 165

View File

@@ -317,4 +317,16 @@ public final class ScriptID
*/ */
@ScriptArguments(integer = 1) @ScriptArguments(integer = 1)
public static final int PVP_WIDGET_BUILDER = 388; public static final int PVP_WIDGET_BUILDER = 388;
/**
* Called to build the combat interface
*/
@ScriptArguments
public static final int COMBAT_INTERFACE_SETUP = 420;
/**
* Called to build the toplevel interface
*/
@ScriptArguments(integer = 2)
public static final int TOPLEVEL_REDRAW = 907;
} }

View File

@@ -324,8 +324,8 @@ public class WidgetID
static final int DEPOSIT_EQUIPMENT = 43; static final int DEPOSIT_EQUIPMENT = 43;
static final int INCINERATOR = 45; static final int INCINERATOR = 45;
static final int INCINERATOR_CONFIRM = 46; static final int INCINERATOR_CONFIRM = 46;
static final int EQUIPMENT_CONTENT_CONTAINER = 67; static final int EQUIPMENT_CONTENT_CONTAINER = 68;
static final int EQUIPMENT_BUTTON = 108; static final int EQUIPMENT_BUTTON = 109;
} }
static class GrandExchange static class GrandExchange
@@ -1282,6 +1282,7 @@ public class WidgetID
// Also used for many other interfaces! // Also used for many other interfaces!
static class BankPin static class BankPin
{ {
static final int CONTAINER = 0;
static final int TOP_LEFT_TEXT = 2; static final int TOP_LEFT_TEXT = 2;
static final int FIRST_ENTERED = 3; static final int FIRST_ENTERED = 3;
static final int SECOND_ENTERED = 4; static final int SECOND_ENTERED = 4;

View File

@@ -165,6 +165,7 @@ public enum WidgetInfo
BANK_ITEM_COUNT_TOP(WidgetID.BANK_GROUP_ID, WidgetID.Bank.ITEM_COUNT_TOP), BANK_ITEM_COUNT_TOP(WidgetID.BANK_GROUP_ID, WidgetID.Bank.ITEM_COUNT_TOP),
BANK_ITEM_COUNT_BAR(WidgetID.BANK_GROUP_ID, WidgetID.Bank.ITEM_COUNT_BAR), BANK_ITEM_COUNT_BAR(WidgetID.BANK_GROUP_ID, WidgetID.Bank.ITEM_COUNT_BAR),
BANK_ITEM_COUNT_BOTTOM(WidgetID.BANK_GROUP_ID, WidgetID.Bank.ITEM_COUNT_BOTTOM), BANK_ITEM_COUNT_BOTTOM(WidgetID.BANK_GROUP_ID, WidgetID.Bank.ITEM_COUNT_BOTTOM),
BANK_PIN_CONTAINER(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.CONTAINER),
GRAND_EXCHANGE_WINDOW_CONTAINER(WidgetID.GRAND_EXCHANGE_GROUP_ID, WidgetID.GrandExchange.WINDOW_CONTAINER), GRAND_EXCHANGE_WINDOW_CONTAINER(WidgetID.GRAND_EXCHANGE_GROUP_ID, WidgetID.GrandExchange.WINDOW_CONTAINER),
GRAND_EXCHANGE_OFFER_CONTAINER(WidgetID.GRAND_EXCHANGE_GROUP_ID, WidgetID.GrandExchange.OFFER_CONTAINER), GRAND_EXCHANGE_OFFER_CONTAINER(WidgetID.GRAND_EXCHANGE_GROUP_ID, WidgetID.GrandExchange.OFFER_CONTAINER),

View File

@@ -24,12 +24,14 @@
*/ */
package net.runelite.client.config; package net.runelite.client.config;
import java.awt.Color;
import java.awt.Dimension; import java.awt.Dimension;
import java.awt.event.InputEvent; import java.awt.event.InputEvent;
import java.awt.event.KeyEvent; import java.awt.event.KeyEvent;
import net.runelite.api.Constants; import net.runelite.api.Constants;
import net.runelite.client.Notifier; import net.runelite.client.Notifier;
import net.runelite.client.ui.ContainableFrame; import net.runelite.client.ui.ContainableFrame;
import net.runelite.client.ui.overlay.components.ComponentConstants;
@ConfigGroup(RuneLiteConfig.GROUP_NAME) @ConfigGroup(RuneLiteConfig.GROUP_NAME)
public interface RuneLiteConfig extends Config public interface RuneLiteConfig extends Config
@@ -348,11 +350,24 @@ public interface RuneLiteConfig extends Config
return true; return true;
} }
@ConfigItem(
keyName = "overlayBackgroundColor",
name = "Overlay Color",
description = "Configures the background color of infoboxes and overlays",
position = 27,
titleSection = "overlayTitle"
)
@Alpha
default Color overlayBackgroundColor()
{
return ComponentConstants.STANDARD_BACKGROUND_COLOR;
}
@ConfigTitleSection( @ConfigTitleSection(
keyName = "infoboxTitle", keyName = "infoboxTitle",
name = "Infoboxes", name = "Infoboxes",
description = "", description = "",
position = 27 position = 28
) )
default Title infoboxTitle() default Title infoboxTitle()
{ {
@@ -363,7 +378,7 @@ public interface RuneLiteConfig extends Config
keyName = "infoBoxVertical", keyName = "infoBoxVertical",
name = "Display infoboxes vertically", name = "Display infoboxes vertically",
description = "Toggles the infoboxes to display vertically", description = "Toggles the infoboxes to display vertically",
position = 28, position = 29,
titleSection = "infoboxTitle" titleSection = "infoboxTitle"
) )
default boolean infoBoxVertical() default boolean infoBoxVertical()

View File

@@ -47,6 +47,7 @@ import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigManager; import net.runelite.client.config.ConfigManager;
import net.runelite.client.config.RuneLiteConfig; import net.runelite.client.config.RuneLiteConfig;
import net.runelite.client.eventbus.EventBus; import net.runelite.client.eventbus.EventBus;
import net.runelite.client.events.ConfigChanged;
import net.runelite.client.events.OverlayMenuClicked; import net.runelite.client.events.OverlayMenuClicked;
import net.runelite.client.events.PluginChanged; import net.runelite.client.events.PluginChanged;
@@ -104,15 +105,28 @@ public class OverlayManager
private final ConfigManager configManager; private final ConfigManager configManager;
private final EventBus eventBus; private final EventBus eventBus;
private final RuneLiteConfig runeLiteConfig;
@Inject @Inject
private OverlayManager(final ConfigManager configManager, final EventBus eventBus) private OverlayManager(final ConfigManager configManager, final EventBus eventBus, final RuneLiteConfig runeLiteConfig)
{ {
this.configManager = configManager; this.configManager = configManager;
this.eventBus = eventBus; this.eventBus = eventBus;
this.runeLiteConfig = runeLiteConfig;
eventBus.subscribe(PluginChanged.class, this, this::onPluginChanged); eventBus.subscribe(PluginChanged.class, this, this::onPluginChanged);
eventBus.subscribe(MenuOptionClicked.class, this, this::onMenuOptionClicked); eventBus.subscribe(MenuOptionClicked.class, this, this::onMenuOptionClicked);
eventBus.subscribe(ConfigChanged.class, this, this::onConfigChanged);
}
public void onConfigChanged(final ConfigChanged event)
{
if (!RuneLiteConfig.GROUP_NAME.equals(event.getGroup()) || !"overlayBackgroundColor".equals(event.getKey()))
{
return;
}
overlays.forEach(this::updateOverlayConfig);
} }
private void onPluginChanged(final PluginChanged event) private void onPluginChanged(final PluginChanged event)
@@ -169,12 +183,15 @@ public class OverlayManager
// Add is always true // Add is always true
overlays.add(overlay); overlays.add(overlay);
loadOverlay(overlay); loadOverlay(overlay);
updateOverlayConfig(overlay);
// WidgetItemOverlays have a reference to the overlay manager in order to get the WidgetItems // WidgetItemOverlays have a reference to the overlay manager in order to get the WidgetItems
// for each frame. // for each frame.
if (overlay instanceof WidgetItemOverlay) if (overlay instanceof WidgetItemOverlay)
{ {
((WidgetItemOverlay) overlay).setOverlayManager(this); ((WidgetItemOverlay) overlay).setOverlayManager(this);
} }
rebuildOverlayLayers(); rebuildOverlayLayers();
return true; return true;
} }
@@ -302,6 +319,15 @@ public class OverlayManager
overlay.setPreferredPosition(position); overlay.setPreferredPosition(position);
} }
private void updateOverlayConfig(final Overlay overlay)
{
if (overlay instanceof OverlayPanel)
{
// Update preferred color for overlay panels based on configuration
((OverlayPanel) overlay).setPreferredColor(runeLiteConfig.overlayBackgroundColor());
}
}
private void saveOverlayLocation(final Overlay overlay) private void saveOverlayLocation(final Overlay overlay)
{ {
final String key = overlay.getName() + OVERLAY_CONFIG_PREFERRED_LOCATION; final String key = overlay.getName() + OVERLAY_CONFIG_PREFERRED_LOCATION;

View File

@@ -24,6 +24,7 @@
*/ */
package net.runelite.client.ui.overlay; package net.runelite.client.ui.overlay;
import java.awt.Color;
import java.awt.Dimension; import java.awt.Dimension;
import java.awt.Graphics2D; import java.awt.Graphics2D;
import lombok.Getter; import lombok.Getter;
@@ -49,6 +50,11 @@ public abstract class OverlayPanel extends Overlay
*/ */
private boolean dynamicFont = false; private boolean dynamicFont = false;
/**
* Preferred color used for panel component background
*/
private Color preferredColor = null;
protected OverlayPanel() protected OverlayPanel()
{ {
super(); super();
@@ -83,6 +89,13 @@ public abstract class OverlayPanel extends Overlay
} }
} }
final Color oldBackgroundColor = panelComponent.getBackgroundColor();
if (getPreferredColor() != null && ComponentConstants.STANDARD_BACKGROUND_COLOR.equals(oldBackgroundColor))
{
panelComponent.setBackgroundColor(getPreferredColor());
}
final Dimension dimension = panelComponent.render(graphics); final Dimension dimension = panelComponent.render(graphics);
if (clearChildren) if (clearChildren)
@@ -91,6 +104,7 @@ public abstract class OverlayPanel extends Overlay
} }
panelComponent.setPreferredSize(oldSize); panelComponent.setPreferredSize(oldSize);
panelComponent.setBackgroundColor(oldBackgroundColor);
return dimension; return dimension;
} }
} }

View File

@@ -31,7 +31,6 @@ import java.awt.Point;
import java.awt.Rectangle; import java.awt.Rectangle;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import javax.annotation.Nullable;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import net.runelite.client.ui.overlay.components.table.TableComponent; import net.runelite.client.ui.overlay.components.table.TableComponent;
@@ -49,7 +48,7 @@ public class PanelComponent implements LayoutableRenderableEntity
private Dimension preferredSize = new Dimension(ComponentConstants.STANDARD_WIDTH, 0); private Dimension preferredSize = new Dimension(ComponentConstants.STANDARD_WIDTH, 0);
@Setter @Setter
@Nullable @Getter
private Color backgroundColor = ComponentConstants.STANDARD_BACKGROUND_COLOR; private Color backgroundColor = ComponentConstants.STANDARD_BACKGROUND_COLOR;
@Getter @Getter

View File

@@ -111,6 +111,7 @@ public class InfoBoxOverlay extends OverlayPanel
infoBoxComponent.setImage(box.getScaledImage()); infoBoxComponent.setImage(box.getScaledImage());
infoBoxComponent.setTooltip(box.getTooltip()); infoBoxComponent.setTooltip(box.getTooltip());
infoBoxComponent.setPreferredSize(new Dimension(config.infoBoxSize(), config.infoBoxSize())); infoBoxComponent.setPreferredSize(new Dimension(config.infoBoxSize(), config.infoBoxSize()));
infoBoxComponent.setBackgroundColor(config.overlayBackgroundColor());
panelComponent.getChildren().add(infoBoxComponent); panelComponent.getChildren().add(infoBoxComponent);
} }

View File

@@ -1 +1 @@
9E3153DE24555E18FA425035D1C8929EECE4C44E6CFEA11CA186B7DA0AE830AF D32D30CB1B79698A15B3314C3782659FF25382008857E7CEB07CA17C1CD5E62A

View File

@@ -65,6 +65,15 @@ LABEL36:
iload 17 iload 17
iload 13 iload 13
if_sethide if_sethide
iload 16
invoke 3369
iconst 3368
iload 16
iconst 1141
iconst 1
sconst "IY"
iload 16
if_setonvartransmit
iconst 441 iconst 441
iconst 0 iconst 0
iconst 0 iconst 0
@@ -79,14 +88,14 @@ LABEL36:
if_setposition if_setposition
get_varbit 8352 get_varbit 8352
iconst 1 iconst 1
if_icmpeq LABEL58 if_icmpeq LABEL67
jump LABEL85 jump LABEL94
LABEL58: LABEL67:
get_varbit 5364 get_varbit 5364
iconst 0 iconst 0
if_icmpeq LABEL62 if_icmpeq LABEL71
jump LABEL85 jump LABEL94
LABEL62: LABEL71:
iload 12 iload 12
if_getx if_getx
iload 12 iload 12
@@ -109,51 +118,51 @@ LABEL62:
iconst 0 iconst 0
iload 4 iload 4
if_setsize if_setsize
jump LABEL121 jump LABEL130
LABEL85: LABEL94:
get_varbit 8352 get_varbit 8352
iconst 0 iconst 0
if_icmpeq LABEL89 if_icmpeq LABEL98
jump LABEL100 jump LABEL109
LABEL89: LABEL98:
get_varbit 5364 get_varbit 5364
iconst 1 iconst 1
if_icmpeq LABEL93 if_icmpeq LABEL102
jump LABEL100 jump LABEL109
LABEL93: LABEL102:
iconst 37 iconst 37
iconst 37 iconst 37
iconst 1 iconst 1
iconst 0 iconst 0
iload 4 iload 4
if_setsize if_setsize
jump LABEL121 jump LABEL130
LABEL100: LABEL109:
get_varbit 8352 get_varbit 8352
iconst 1 iconst 1
if_icmpeq LABEL104 if_icmpeq LABEL113
jump LABEL115 jump LABEL124
LABEL104: LABEL113:
get_varbit 5364 get_varbit 5364
iconst 1 iconst 1
if_icmpeq LABEL108 if_icmpeq LABEL117
jump LABEL115 jump LABEL124
LABEL108: LABEL117:
iconst 74 iconst 74
iconst 37 iconst 37
iconst 1 iconst 1
iconst 0 iconst 0
iload 4 iload 4
if_setsize if_setsize
jump LABEL121 jump LABEL130
LABEL115: LABEL124:
iconst 0 iconst 0
iconst 37 iconst 37
iconst 1 iconst 1
iconst 0 iconst 0
iload 4 iload 4
if_setsize if_setsize
LABEL121: LABEL130:
iconst 1 iconst 1
iload 10 iload 10
if_sethide if_sethide
@@ -163,52 +172,52 @@ LABEL121:
istore 18 istore 18
get_varbit 4170 get_varbit 4170
iconst 3 iconst 3
if_icmpeq LABEL132 if_icmpeq LABEL141
jump LABEL165 jump LABEL174
LABEL132: LABEL141:
get_varbit 4171 get_varbit 4171
iconst 0 iconst 0
if_icmpgt LABEL160 if_icmpgt LABEL169
get_varbit 4172 get_varbit 4172
iconst 0 iconst 0
if_icmpgt LABEL160 if_icmpgt LABEL169
get_varbit 4173 get_varbit 4173
iconst 0 iconst 0
if_icmpgt LABEL160 if_icmpgt LABEL169
get_varbit 4174 get_varbit 4174
iconst 0 iconst 0
if_icmpgt LABEL160 if_icmpgt LABEL169
get_varbit 4175 get_varbit 4175
iconst 0 iconst 0
if_icmpgt LABEL160 if_icmpgt LABEL169
get_varbit 4176 get_varbit 4176
iconst 0 iconst 0
if_icmpgt LABEL160 if_icmpgt LABEL169
get_varbit 4177 get_varbit 4177
iconst 0 iconst 0
if_icmpgt LABEL160 if_icmpgt LABEL169
get_varbit 4178 get_varbit 4178
iconst 0 iconst 0
if_icmpgt LABEL160 if_icmpgt LABEL169
get_varbit 4179 get_varbit 4179
iconst 0 iconst 0
if_icmpgt LABEL160 if_icmpgt LABEL169
jump LABEL163 jump LABEL172
LABEL160: LABEL169:
iconst 0 iconst 0
istore 18 istore 18
jump LABEL165 jump LABEL174
LABEL163: LABEL172:
iconst 1 iconst 1
istore 18 istore 18
LABEL165: LABEL174:
iconst 0 iconst 0
istore 19 istore 19
iload 18 iload 18
iconst 1 iconst 1
if_icmpeq LABEL171 if_icmpeq LABEL180
jump LABEL195 jump LABEL204
LABEL171: LABEL180:
iconst 1 iconst 1
iload 8 iload 8
if_sethide if_sethide
@@ -232,8 +241,8 @@ LABEL171:
iconst 0 iconst 0
iload 1 iload 1
if_setposition if_setposition
jump LABEL216 jump LABEL225
LABEL195: LABEL204:
iconst 0 iconst 0
iload 8 iload 8
if_sethide if_sethide
@@ -255,7 +264,7 @@ LABEL195:
iconst 0 iconst 0
iload 1 iload 1
if_setposition if_setposition
LABEL216: LABEL225:
iload 3 iload 3
iload 2 iload 2
invoke 231 invoke 231
@@ -267,28 +276,28 @@ LABEL216:
multiply multiply
add add
istore 21 istore 21
LABEL227: LABEL236:
iload 20 iload 20
iload 21 iload 21
if_icmple LABEL231 if_icmple LABEL240
jump LABEL244 jump LABEL253
LABEL231: LABEL240:
iload 2 iload 2
iload 20 iload 20
cc_find cc_find
iconst 1 iconst 1
if_icmpeq LABEL237 if_icmpeq LABEL246
jump LABEL239 jump LABEL248
LABEL237: LABEL246:
iconst 1 iconst 1
cc_sethide cc_sethide
LABEL239: LABEL248:
iload 20 iload 20
iconst 1 iconst 1
add add
istore 20 istore 20
jump LABEL227 jump LABEL236
LABEL244: LABEL253:
iconst 0 iconst 0
istore 20 istore 20
iconst 8 iconst 8
@@ -328,47 +337,47 @@ LABEL244:
sstore 0 sstore 0
get_varbit 4150 get_varbit 4150
iconst 0 iconst 0
if_icmple LABEL288 if_icmple LABEL297
get_varbit 4150 get_varbit 4150
iconst 9 iconst 9
if_icmpgt LABEL288 if_icmpgt LABEL297
jump LABEL741 jump LABEL750
LABEL288: LABEL297:
iload 20 iload 20
iconst 816 iconst 816
if_icmplt LABEL292 if_icmplt LABEL301
jump LABEL317 jump LABEL326
LABEL292: LABEL301:
iload 2 iload 2
iload 20 iload 20
cc_find cc_find
iconst 1 iconst 1
if_icmpeq LABEL298 if_icmpeq LABEL307
jump LABEL300 jump LABEL309
LABEL298: LABEL307:
iconst 1 iconst 1
cc_sethide cc_sethide
LABEL300: LABEL309:
iconst 95 iconst 95
iload 20 iload 20
inv_getobj inv_getobj
iconst -1 iconst -1
if_icmpne LABEL306 if_icmpne LABEL315
jump LABEL312 jump LABEL321
LABEL306: LABEL315:
iload 29 iload 29
iconst 1 iconst 1
add add
iload 20 iload 20
istore 30 istore 30
istore 29 istore 29
LABEL312: LABEL321:
iload 20 iload 20
iconst 1 iconst 1
add add
istore 20 istore 20
jump LABEL288 jump LABEL297
LABEL317: LABEL326:
get_varbit 4171 get_varbit 4171
get_varbit 4172 get_varbit 4172
add add
@@ -389,14 +398,14 @@ LABEL317:
istore 31 istore 31
iload 31 iload 31
iconst 0 iconst 0
if_icmple LABEL339 if_icmple LABEL348
jump LABEL343 jump LABEL352
LABEL339: LABEL348:
iconst 816 iconst 816
iconst 1 iconst 1
sub sub
istore 30 istore 30
LABEL343: LABEL352:
iconst 0 ; Scroll height variable iconst 0 ; Scroll height variable
iconst 0 ; Compare variable iconst 0 ; Compare variable
iconst 0 ; iconst 0 ;
@@ -431,9 +440,9 @@ CONTINUE_SEARCH:
istore 20 istore 20
get_varbit 4171 get_varbit 4171
iconst 0 iconst 0
if_icmpgt LABEL370 if_icmpgt LABEL379
jump LABEL400 jump LABEL409
LABEL370: LABEL379:
iconst 1 iconst 1
iload 2 iload 2
iload 28 iload 28
@@ -464,12 +473,12 @@ LABEL370:
get_varbit 4171 get_varbit 4171
add add
istore 20 istore 20
LABEL400: LABEL409:
get_varbit 4172 get_varbit 4172
iconst 0 iconst 0
if_icmpgt LABEL404 if_icmpgt LABEL413
jump LABEL434 jump LABEL443
LABEL404: LABEL413:
iconst 2 iconst 2
iload 2 iload 2
iload 28 iload 28
@@ -500,12 +509,12 @@ LABEL404:
get_varbit 4172 get_varbit 4172
add add
istore 20 istore 20
LABEL434: LABEL443:
get_varbit 4173 get_varbit 4173
iconst 0 iconst 0
if_icmpgt LABEL438 if_icmpgt LABEL447
jump LABEL468 jump LABEL477
LABEL438: LABEL447:
iconst 3 iconst 3
iload 2 iload 2
iload 28 iload 28
@@ -536,12 +545,12 @@ LABEL438:
get_varbit 4173 get_varbit 4173
add add
istore 20 istore 20
LABEL468: LABEL477:
get_varbit 4174 get_varbit 4174
iconst 0 iconst 0
if_icmpgt LABEL472 if_icmpgt LABEL481
jump LABEL502 jump LABEL511
LABEL472: LABEL481:
iconst 4 iconst 4
iload 2 iload 2
iload 28 iload 28
@@ -572,12 +581,12 @@ LABEL472:
get_varbit 4174 get_varbit 4174
add add
istore 20 istore 20
LABEL502: LABEL511:
get_varbit 4175 get_varbit 4175
iconst 0 iconst 0
if_icmpgt LABEL506 if_icmpgt LABEL515
jump LABEL536 jump LABEL545
LABEL506: LABEL515:
iconst 5 iconst 5
iload 2 iload 2
iload 28 iload 28
@@ -608,12 +617,12 @@ LABEL506:
get_varbit 4175 get_varbit 4175
add add
istore 20 istore 20
LABEL536: LABEL545:
get_varbit 4176 get_varbit 4176
iconst 0 iconst 0
if_icmpgt LABEL540 if_icmpgt LABEL549
jump LABEL570 jump LABEL579
LABEL540: LABEL549:
iconst 6 iconst 6
iload 2 iload 2
iload 28 iload 28
@@ -644,12 +653,12 @@ LABEL540:
get_varbit 4176 get_varbit 4176
add add
istore 20 istore 20
LABEL570: LABEL579:
get_varbit 4177 get_varbit 4177
iconst 0 iconst 0
if_icmpgt LABEL574 if_icmpgt LABEL583
jump LABEL604 jump LABEL613
LABEL574: LABEL583:
iconst 7 iconst 7
iload 2 iload 2
iload 28 iload 28
@@ -680,12 +689,12 @@ LABEL574:
get_varbit 4177 get_varbit 4177
add add
istore 20 istore 20
LABEL604: LABEL613:
get_varbit 4178 get_varbit 4178
iconst 0 iconst 0
if_icmpgt LABEL608 if_icmpgt LABEL617
jump LABEL638 jump LABEL647
LABEL608: LABEL617:
iconst 8 iconst 8
iload 2 iload 2
iload 28 iload 28
@@ -716,12 +725,12 @@ LABEL608:
get_varbit 4178 get_varbit 4178
add add
istore 20 istore 20
LABEL638: LABEL647:
get_varbit 4179 get_varbit 4179
iconst 0 iconst 0
if_icmpgt LABEL642 if_icmpgt LABEL651
jump LABEL672 jump LABEL681
LABEL642: LABEL651:
iconst 9 iconst 9
iload 2 iload 2
iload 28 iload 28
@@ -752,21 +761,21 @@ LABEL642:
get_varbit 4179 get_varbit 4179
add add
istore 20 istore 20
LABEL672: LABEL681:
invoke 514 invoke 514
iconst 1 iconst 1
if_icmpeq LABEL676 if_icmpeq LABEL685
jump LABEL717 jump LABEL726
LABEL676: LABEL685:
get_varc_string 359 ; Skip truncating of varcstr 22 by not calling 280 get_varc_string 359 ; Skip truncating of varcstr 22 by not calling 280
lowercase ; instead get the var directly and lowercase it invoke 280; instead get the var directly and lowercase it
sstore 0 sstore 0
sload 0 sload 0
string_length string_length
iconst 0 iconst 0
if_icmpgt LABEL683 if_icmpgt LABEL692
jump LABEL702 jump LABEL711
LABEL683: LABEL692:
sconst "Showing items: " sconst "Showing items: "
sconst "<col=ff0000>" sconst "<col=ff0000>"
sload 0 sload 0
@@ -776,9 +785,9 @@ LABEL683:
if_settext if_settext
get_varc_int 5 get_varc_int 5
iconst 11 iconst 11
if_icmpeq LABEL694 if_icmpeq LABEL703
jump LABEL701 jump LABEL710
LABEL694: LABEL703:
sconst "Show items whose names contain the following text: (" sconst "Show items whose names contain the following text: ("
iload 27 iload 27
tostring tostring
@@ -790,9 +799,9 @@ LABEL694:
pop_int ; pop number of matches pop_int ; pop number of matches
iconst 10616876 iconst 10616876
if_settext if_settext
LABEL701: LABEL710:
jump LABEL716 jump LABEL725
LABEL702: LABEL711:
sconst "Showing items: " sconst "Showing items: "
sconst "<col=ff0000>" sconst "<col=ff0000>"
sconst "*" sconst "*"
@@ -802,23 +811,23 @@ LABEL702:
if_settext if_settext
get_varc_int 5 get_varc_int 5
iconst 11 iconst 11
if_icmpeq LABEL713 if_icmpeq LABEL722
jump LABEL716 jump LABEL725
LABEL713: LABEL722:
sconst "Show items whose names contain the following text:" sconst "Show items whose names contain the following text:"
sconst "setSearchBankInputText" ; load event name sconst "setSearchBankInputText" ; load event name
runelite_callback ; invoke callback runelite_callback ; invoke callback
iconst 10616876 iconst 10616876
if_settext if_settext
LABEL716: LABEL725:
jump LABEL720 jump LABEL729
LABEL717: LABEL726:
sconst "The Bank of Gielinor" sconst "The Bank of Gielinor"
sconst "setBankTitle" ; sconst "setBankTitle" ;
runelite_callback ; runelite_callback ;
iload 5 iload 5
if_settext if_settext
LABEL720: LABEL729:
iload 0 iload 0
iload 1 iload 1
iload 2 iload 2
@@ -842,17 +851,17 @@ LABEL720:
iload 16 iload 16
invoke 505 invoke 505
return return
LABEL741: LABEL750:
invoke 514 invoke 514
iconst 1 iconst 1
if_icmpeq LABEL745 if_icmpeq LABEL754
jump LABEL748 jump LABEL757
LABEL745: LABEL754:
iconst 1 iconst 1
iconst 1 iconst 1
invoke 299 invoke 299
GetTabRange: GetTabRange:
LABEL748: LABEL757:
iconst -1 iconst -1
istore 32 istore 32
iconst -1 iconst -1
@@ -865,43 +874,43 @@ LABEL748:
istore 34 istore 34
iconst 0 iconst 0
istore 35 istore 35
LABEL760: LABEL769:
iload 20 iload 20
iconst 816 iconst 816
if_icmplt LABEL764 if_icmplt LABEL773
jump LABEL844 jump LABEL853
LABEL764: LABEL773:
iload 2 iload 2
iload 20 iload 20
cc_find cc_find
iconst 1 iconst 1
if_icmpeq LABEL770 if_icmpeq LABEL779
jump LABEL839 jump LABEL848
LABEL770: LABEL779:
iconst 95 iconst 95
iload 20 iload 20
inv_getobj inv_getobj
istore 25 istore 25
iload 25 iload 25
iconst -1 iconst -1
if_icmpne LABEL778 if_icmpne LABEL787
jump LABEL782 jump LABEL791
LABEL778: LABEL787:
iload 29 iload 29
iconst 1 iconst 1
add add
istore 29 istore 29
LABEL782: LABEL791:
iload 20 iload 20
iload 32 iload 32
if_icmpge LABEL786 if_icmpge LABEL795
jump LABEL837 jump LABEL846
LABEL786: LABEL795:
iload 20 iload 20
iload 33 iload 33
if_icmplt LABEL790 if_icmplt LABEL799
jump LABEL837 jump LABEL846
LABEL790: LABEL799:
iconst 0 iconst 0
cc_sethide cc_sethide
iload 25 iload 25
@@ -935,44 +944,44 @@ LABEL790:
istore 28 istore 28
iload 34 iload 34
iload 22 iload 22
if_icmplt LABEL825 if_icmplt LABEL834
jump LABEL830 jump LABEL839
LABEL825: LABEL834:
iload 34 iload 34
iconst 1 iconst 1
add add
istore 34 istore 34
jump LABEL836 jump LABEL845
LABEL830: LABEL839:
iconst 0 iconst 0
iload 35 iload 35
iconst 1 iconst 1
add add
istore 35 istore 35
istore 34 istore 34
LABEL836: LABEL845:
jump LABEL839 jump LABEL848
LABEL837: LABEL846:
iconst 1 iconst 1
cc_sethide cc_sethide
LABEL839: LABEL848:
iload 20 iload 20
iconst 1 iconst 1
add add
istore 20 istore 20
jump LABEL760 jump LABEL769
SetTitle: SetTitle:
iconst 0 ; Compare variable iconst 0 ; Compare variable
iconst 0 ; iconst 0 ;
sconst "isTabMenuActive" sconst "isTabMenuActive"
runelite_callback ; skip setting the bank title if the tag tab menu is active runelite_callback ; skip setting the bank title if the tag tab menu is active
if_icmpne FinishBuilding if_icmpne FinishBuilding
LABEL844: LABEL853:
get_varbit 4170 get_varbit 4170
iconst 2 iconst 2
if_icmpeq LABEL848 if_icmpeq LABEL857
jump LABEL858 jump LABEL867
LABEL848: LABEL857:
sconst "Tab " sconst "Tab "
iconst 105 iconst 105
iconst 115 iconst 115
@@ -984,8 +993,8 @@ LABEL848:
runelite_callback ; runelite_callback ;
iload 5 iload 5
if_settext if_settext
jump LABEL864 jump LABEL873
LABEL858: LABEL867:
sconst "Tab " sconst "Tab "
get_varbit 4150 get_varbit 4150
tostring tostring
@@ -993,9 +1002,9 @@ LABEL858:
sconst "setBankTitle" ; sconst "setBankTitle" ;
runelite_callback ; runelite_callback ;
iload 5 iload 5
if_settext if_settext
FinishBuilding: FinishBuilding:
LABEL864: LABEL873:
iload 0 iload 0
iload 1 iload 1
iload 2 iload 2

View File

@@ -1 +1 @@
38654CC2E80C30E1558EFE4A5C64D75F3A28122236A933F9F067084E856FFE58 55CFDE9983A73FA698E2F3CF4F79C0E62F40BF154E34A4F01112041928B01CB7

View File

@@ -92,6 +92,64 @@ LABEL40:
cc_deleteall cc_deleteall
iconst 10616886 iconst 10616886
cc_deleteall cc_deleteall
iconst 0
iconst -8
iconst 1
iconst 1
iconst 10616876
if_setposition
iconst 0
iconst 40
iconst 1
iconst 0
iconst 10616876
if_setsize
iconst 1
iconst 1
iconst 0
iconst 10616876
if_settextalign
iconst 496
iconst 10616876
if_settextfont
iconst 496
iconst 10616877
if_settextfont
iconst 128
iconst 10616877
if_setcolour
iconst -1
sconst ""
iconst 10616877
if_setonmouseover
iconst -1
sconst ""
iconst 10616877
if_setonmouseleave
sconst ""
iconst 10616877
if_settext
iconst 0
iconst 22
iconst 1
iconst 1
iconst 10616877
if_setposition
iconst -1
sconst ""
iconst 10616872
if_setonclick
iconst -1
sconst ""
iconst 10616877
if_setonclick
iconst -1
sconst ""
iconst 10616877
if_setonkey
iconst 1
iconst 10616874
if_sethide
iconst -1 iconst -1
sconst "" sconst ""
iconst 10616872 iconst 10616872
@@ -167,19 +225,19 @@ LABEL40:
if_setonclick if_setonclick
get_varc_int 41 get_varc_int 41
iconst 1337 iconst 1337
if_icmpeq LABEL157 if_icmpeq LABEL215
jump LABEL161 jump LABEL219
LABEL157: LABEL215:
invoke 2526 invoke 2526
pop_int pop_int
clientclock clientclock
set_varc_int 384 set_varc_int 384
LABEL161: LABEL219:
invoke 1972 invoke 1972
iconst 1 iconst 1
if_icmpeq LABEL165 if_icmpeq LABEL223
jump LABEL166 jump LABEL224
LABEL165: LABEL223:
invoke 2581 invoke 2581
LABEL166: LABEL224:
return return