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 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 @Inject
private Client client; private Client client;
@@ -203,6 +203,7 @@ public class BankTagsPlugin extends Plugin
&& event.getMenuAction() == MenuAction.EXAMINE_ITEM_BANK_EQ && event.getMenuAction() == MenuAction.EXAMINE_ITEM_BANK_EQ
&& event.getId() == EDIT_TAGS_MENU_INDEX) && event.getId() == EDIT_TAGS_MENU_INDEX)
{ {
event.consume();
int inventoryIndex = event.getActionParam(); int inventoryIndex = event.getActionParam();
ItemContainer bankContainer = client.getItemContainer(InventoryID.BANK); ItemContainer bankContainer = client.getItemContainer(InventoryID.BANK);
if (bankContainer == null) 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 "Show items whose names contain the following text:"
load_string "setSearchBankInputText" ; load event name load_string "setSearchBankInputText" ; load event name
runelite_callback ; invoke callback runelite_callback ; invoke callback
load_int 10616867 load_int 10616868
widget_put_text_widget widget_put_text_widget
load_int 11 load_int 11
put_varc 5 put_varc 5
@@ -27,17 +27,19 @@ LABEL5:
load_int -2147483639 load_int -2147483639
sload 0 sload 0
load_string "izs" load_string "izs"
load_int 10616868 load_int 10616869
widget_put_key_listener_widget widget_put_key_listener_widget
load_int 138 load_int 138
load_string "" load_string ""
load_int 10616868 load_int 10616869
widget_put_dialog_abort_listener_widget widget_put_dialog_abort_listener_widget
invoke 1972 invoke 1972
load_int 1 load_int 1
if_icmpeq LABEL30 if_icmpeq LABEL30
jump LABEL31 jump LABEL33
LABEL30: LABEL30:
load_int 0
load_int 80
invoke 1983 invoke 1983
LABEL31: LABEL33:
return return

View File

@@ -1 +1 @@
BD8E0D58CD175BCE02F9A63A35E5F025E87A3A31C4DFAA8282926B69CD5FD60B 99623BD5CD95F5C19641A0BD0764B85E0322A58AADD8412C94B81B5C33FE1C07

View File

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