Fix bank tags plugin

This commit is contained in:
Max Weber
2018-04-12 05:34:59 -06:00
parent f63c9a3347
commit 0680fe5940
5 changed files with 50 additions and 25 deletions

View File

@@ -65,7 +65,7 @@ public class BankTagsPlugin extends Plugin
private static final String EDIT_TAGS_MENU_OPTION = "Edit-tags";
private static final int EDIT_TAGS_MENU_INDEX = 9;
private static final int EDIT_TAGS_MENU_INDEX = 8;
@Inject
private Client client;
@@ -203,6 +203,7 @@ public class BankTagsPlugin extends Plugin
&& event.getMenuAction() == MenuAction.EXAMINE_ITEM_BANK_EQ
&& event.getId() == EDIT_TAGS_MENU_INDEX)
{
event.consume();
int inventoryIndex = event.getActionParam();
ItemContainer bankContainer = client.getItemContainer(InventoryID.BANK);
if (bankContainer == null)

View File

@@ -1 +1 @@
27446C2A53527645827D4EDE100B50607D0D2177947649C7E9BEA155FDF78BBC
36E6536190084AD0420E92E64AC53C3614DB124A2E0F31D42B36E6622F46BDDE

View File

@@ -14,7 +14,7 @@ LABEL5:
load_string "Show items whose names contain the following text:"
load_string "setSearchBankInputText" ; load event name
runelite_callback ; invoke callback
load_int 10616867
load_int 10616868
widget_put_text_widget
load_int 11
put_varc 5
@@ -27,17 +27,19 @@ LABEL5:
load_int -2147483639
sload 0
load_string "izs"
load_int 10616868
load_int 10616869
widget_put_key_listener_widget
load_int 138
load_string ""
load_int 10616868
load_int 10616869
widget_put_dialog_abort_listener_widget
invoke 1972
load_int 1
if_icmpeq LABEL30
jump LABEL31
jump LABEL33
LABEL30:
load_int 0
load_int 80
invoke 1983
LABEL31:
LABEL33:
return

View File

@@ -1 +1 @@
BD8E0D58CD175BCE02F9A63A35E5F025E87A3A31C4DFAA8282926B69CD5FD60B
99623BD5CD95F5C19641A0BD0764B85E0322A58AADD8412C94B81B5C33FE1C07

View File

@@ -6,7 +6,7 @@
iload 0
load_int -1
if_icmpne LABEL4
jump LABEL130
jump LABEL147
LABEL4:
widget_put_actions_null
iload 0
@@ -37,7 +37,7 @@ LABEL9:
iload 6
load_string "IiIiiIIII"
widget_put_drag_release_listener
jump LABEL111
jump LABEL128
LABEL33:
iload 0
4209
@@ -65,11 +65,23 @@ LABEL38:
iload 6
load_string "IiIiiIIII"
widget_put_drag_release_listener
jump LABEL111
jump LABEL128
LABEL59:
iload 0
iload 1
1200
invoke 1972
load_int 1
if_icmpeq LABEL66
jump LABEL72
LABEL66:
load_int 1
load_string "Withdraw-"
invoke 2227
concat_string
widget_put_action
jump LABEL75
LABEL72:
load_int 1 ; if the bank tags plugin is not active this will not get changed and thus
; overridden by the Withdraw-1 option
load_string "Edit-tags" ; push menu action name
@@ -83,6 +95,7 @@ LABEL59:
load_int 1
load_string "Withdraw-1"
widget_put_action
LABEL75:
load_int 2
load_string "Withdraw-5"
widget_put_action
@@ -91,16 +104,16 @@ LABEL59:
widget_put_action
get_varbit 3960
load_int 0
if_icmpgt LABEL75
jump LABEL81
LABEL75:
if_icmpgt LABEL85
jump LABEL91
LABEL85:
load_int 4
load_string "Withdraw-"
get_varbit 3960
int_to_string
string_append 2
widget_put_action
LABEL81:
LABEL91:
load_int 5
load_string "Withdraw-X"
widget_put_action
@@ -110,15 +123,24 @@ LABEL81:
load_int 7
load_string "Withdraw-All-but-1"
widget_put_action
get_varbit 6347
load_int 0
if_icmpgt LABEL104
jump LABEL107
LABEL104:
load_int 8
load_string "Withdraw-1"
widget_put_action
LABEL107:
get_varbit 3755
load_int 0
if_icmpeq LABEL94
jump LABEL97
LABEL94:
load_int 8
if_icmpeq LABEL111
jump LABEL114
LABEL111:
load_int 9
load_string "Placeholder"
widget_put_action
LABEL97:
LABEL114:
load_int 0
widget_put_opacity
load_int 285
@@ -133,7 +155,7 @@ LABEL97:
iload 6
load_string "IiIiiIIII"
widget_put_drag_release_listener
LABEL111:
LABEL128:
load_int 10
load_string "Examine"
widget_put_action
@@ -152,8 +174,8 @@ LABEL111:
load_int 0
load_string "IiiiIi"
widget_put_drag_start_listener
jump LABEL142
LABEL130:
jump LABEL159
LABEL147:
load_int 255
widget_put_opacity
load_int 6512
@@ -166,5 +188,5 @@ LABEL130:
load_int -1
load_string ""
widget_put_drag_release_listener
LABEL142:
return
LABEL159:
return