interfacestyles: add ability to always stack resizable stones

This commit is contained in:
Ron Young
2019-10-07 10:19:49 -05:00
parent a663770563
commit 88c2736e8b
3 changed files with 30 additions and 1 deletions

View File

@@ -3,6 +3,9 @@
.string_stack_count 0
.int_var_count 5
.string_var_count 0
; callback "forceStackStones"
; Used by the InterfaceStylesPlugin to enable it's Always stack bottom bar option
; Toggle the option when you have the bottom line top level interface on and your screen is large enough for the stones to be in a single line
iconst 0
istore 2
iconst 0
@@ -36,7 +39,11 @@ LABEL9:
sub
iconst 429
if_icmplt LABEL29
jump LABEL49
iconst 0 ; should resizable stones be forced to stack
sconst "forceStackStones" ; push event name
runelite_callback ; invoke callback
iconst 0 ; if 0 is returned, continue normal layout
if_icmpeq LABEL49
LABEL29:
iconst 0
iload 3