Files
runelite/runelite-client/src/main/scripts/LayoutResizableStones.rs2asm
RuneLite Cache-Code Autoupdater e7efd50703 Update Scripts to 2020-02-20-rev182
2020-02-20 04:42:51 -07:00

250 lines
7.0 KiB
Plaintext

.id 920
.int_stack_count 2
.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
istore 3
iconst -1
istore 4
iload 1
switch
1745: LABEL129
1129: LABEL109
1130: LABEL87
1131: LABEL9
jump LABEL201
LABEL9:
iconst 10747938
if_getwidth
iconst 33
sub
iconst 10747938
if_getheight
istore 3
istore 2
iload 0
if_getwidth
iconst 73
iconst 73
iload 1
iconst 10551327
enum
if_getwidth
sub
iconst 429
if_icmplt LABEL29
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
jump LABEL49
LABEL29:
iconst 0
iload 3
iconst 10747953
if_getheight
add
iconst 2
iconst 2
iconst 73
iconst 73
iload 1
iconst 10747970
enum
if_setposition
iconst 0
iload 3
iconst 2
iconst 2
iconst 10747953
if_setposition
jump LABEL65
LABEL49:
iconst 0
iload 3
iconst 2
iconst 2
iconst 73
iconst 73
iload 1
iconst 10747970
enum
if_setposition
iload 2
iconst 0
iconst 2
iconst 2
iconst 10747953
if_setposition
LABEL65:
get_varbit 4084
iconst 1
if_icmpeq LABEL69
jump LABEL77
LABEL69:
iconst 1178
iconst 73
iconst 73
iload 1
iconst 10551323
enum
2122
jump LABEL84
LABEL77:
iconst 2154
iconst 73
iconst 73
iload 1
iconst 10551323
enum
2122
LABEL84:
clientclock
set_varc_int 384
jump LABEL201
LABEL87:
get_varbit 4084
iconst 1
if_icmpeq LABEL91
jump LABEL99
LABEL91:
iconst 1178
iconst 73
iconst 73
iload 1
iconst 10551323
enum
2122
jump LABEL106
LABEL99:
iconst 2154
iconst 73
iconst 73
iload 1
iconst 10551323
enum
2122
LABEL106:
clientclock
set_varc_int 384
jump LABEL201
LABEL109:
invoke 3297
iconst 1
if_icmpeq LABEL113
jump LABEL121
LABEL113:
iconst 2422
iconst 73
iconst 73
iload 1
iconst 10551323
enum
2122
jump LABEL128
LABEL121:
iconst 1200
iconst 73
iconst 73
iload 1
iconst 10551323
enum
2122
LABEL128:
jump LABEL201
LABEL129:
get_varbit 6257
iconst 1
if_icmpeq LABEL133
jump LABEL137
LABEL133:
iconst 1
iconst 39387168
if_sethide
jump LABEL192
LABEL137:
iconst 0
iconst 39387168
if_sethide
iconst 1
iconst 39387168
2308
get_varbit 6255
switch
1: LABEL154
2: LABEL146
3: LABEL162
jump LABEL170
LABEL146:
iconst 1718
iconst 39387170
if_setgraphic
iconst 1
sconst "Toggle single-tap mode"
iconst 39387168
if_setop
jump LABEL177
LABEL154:
iconst 1717
iconst 39387170
if_setgraphic
iconst 1
sconst "Toggle tap-to-drop mode"
iconst 39387168
if_setop
jump LABEL177
LABEL162:
iconst 1716
iconst 39387170
if_setgraphic
iconst 1
sconst "Show Keyboard"
iconst 39387168
if_setop
jump LABEL177
LABEL170:
iconst 1715
iconst 39387170
if_setgraphic
iconst 1
sconst ""
iconst 39387168
if_setop
LABEL177:
get_varbit 6255
iconst 3
if_icmpne LABEL181
jump LABEL189
LABEL181:
get_varbit 6256
iconst 0
if_icmpeq LABEL185
jump LABEL189
LABEL185:
iconst 155
iconst 39387170
if_settrans
jump LABEL192
LABEL189:
iconst 0
iconst 39387170
if_settrans
LABEL192:
invoke 2581
get_varbit 6254
invoke 633
iconst 39387159
if_sethide
invoke 2526
pop_int
clientclock
set_varc_int 384
LABEL201:
return