banktags: support viewing all Tag Tabs in the bank screen
This commit is contained in:
@@ -3,6 +3,18 @@
|
||||
.string_stack_count 0
|
||||
.int_var_count 35
|
||||
.string_var_count 1
|
||||
; callback "beforeBankLayout"
|
||||
; Fired before the bank starts its layout
|
||||
; Used by the TabInterface to hide fake bank items for tag tabs
|
||||
;
|
||||
; callback "setBankScroll"
|
||||
; Fired before bank is calculated
|
||||
; Used by the TabInterface to show fake bank items for tag tabs
|
||||
;
|
||||
; callback "isTabMenuActive"
|
||||
; Used by the TabInterface to skip setting the bank title
|
||||
sconst "beforeBankLayout"
|
||||
runelite_callback
|
||||
get_varbit 5102
|
||||
iconst 1
|
||||
if_icmpeq LABEL4
|
||||
@@ -385,6 +397,15 @@ LABEL339:
|
||||
sub
|
||||
istore 29
|
||||
LABEL343:
|
||||
iconst 0 ; Scroll height variable
|
||||
iconst 0 ; Compare variable
|
||||
iconst 0 ;
|
||||
sconst "setBankScroll" ; Show fake bank items for tag tabs
|
||||
runelite_callback ; If tag tab menu search isn't active
|
||||
if_icmpeq CONTINUE_SEARCH ; continue to normal bank search
|
||||
istore 27 ; Load scroll height into variable
|
||||
jump GetTabRange ; Skip normal bank layout
|
||||
CONTINUE_SEARCH:
|
||||
iload 30
|
||||
iload 29
|
||||
iconst 1
|
||||
@@ -822,12 +843,12 @@ LABEL740:
|
||||
invoke 514
|
||||
iconst 1
|
||||
if_icmpeq LABEL744
|
||||
jump LABEL747
|
||||
jump GetTabRange
|
||||
LABEL744:
|
||||
iconst 1
|
||||
iconst 1
|
||||
invoke 299
|
||||
LABEL747:
|
||||
GetTabRange:
|
||||
iconst -1
|
||||
istore 31
|
||||
iconst -1
|
||||
@@ -844,7 +865,7 @@ LABEL759:
|
||||
iload 19
|
||||
iconst 816
|
||||
if_icmplt LABEL763
|
||||
jump LABEL843
|
||||
jump SetTitle
|
||||
LABEL763:
|
||||
iload 2
|
||||
iload 19
|
||||
@@ -936,12 +957,17 @@ LABEL838:
|
||||
add
|
||||
istore 19
|
||||
jump LABEL759
|
||||
LABEL843:
|
||||
SetTitle:
|
||||
iconst 0 ; Compare variable
|
||||
iconst 0 ;
|
||||
sconst "isTabMenuActive" ; Check if tag tab menu
|
||||
runelite_callback ; is active and skip setting
|
||||
if_icmpne FinishBuilding ; the bank title if it is
|
||||
get_varbit 4170
|
||||
iconst 2
|
||||
if_icmpeq LABEL847
|
||||
jump LABEL857
|
||||
LABEL847:
|
||||
if_icmpeq SetTitleRomanNumeral
|
||||
jump SetTitleNumber
|
||||
SetTitleRomanNumeral:
|
||||
sconst "Tab "
|
||||
iconst 105
|
||||
iconst 115
|
||||
@@ -953,8 +979,8 @@ LABEL847:
|
||||
runelite_callback ;
|
||||
iload 5
|
||||
if_settext
|
||||
jump LABEL863
|
||||
LABEL857:
|
||||
jump FinishBuilding
|
||||
SetTitleNumber:
|
||||
sconst "Tab "
|
||||
get_varbit 4150
|
||||
tostring
|
||||
@@ -963,7 +989,7 @@ LABEL857:
|
||||
runelite_callback ;
|
||||
iload 5
|
||||
if_settext
|
||||
LABEL863:
|
||||
FinishBuilding:
|
||||
iload 0
|
||||
iload 1
|
||||
iload 2
|
||||
|
||||
Reference in New Issue
Block a user