Add matches found to bank tag search dialog message
This commit is contained in:
@@ -63,6 +63,10 @@ public class BankTagsPlugin extends Plugin
|
||||
"Show items whose names or tags contain the following text:<br>" +
|
||||
"(To show only tagged items, start your search with 'tag:')";
|
||||
|
||||
private static final String SEARCH_BANK_INPUT_TEXT_FOUND =
|
||||
"Show items whose names or tags contain the following text: (%d found)<br>" +
|
||||
"(To show only tagged items, start your search with 'tag:')";
|
||||
|
||||
private static final String TAG_SEARCH = "tag:";
|
||||
|
||||
private static final String EDIT_TAGS_MENU_OPTION = "Edit-tags";
|
||||
@@ -132,6 +136,12 @@ public class BankTagsPlugin extends Plugin
|
||||
case "setSearchBankInputText":
|
||||
stringStack[stringStackSize - 1] = SEARCH_BANK_INPUT_TEXT;
|
||||
break;
|
||||
case "setSearchBankInputTextFound":
|
||||
{
|
||||
int matches = intStack[intStackSize - 1];
|
||||
stringStack[stringStackSize - 1] = String.format(SEARCH_BANK_INPUT_TEXT_FOUND, matches);
|
||||
break;
|
||||
}
|
||||
case "setBankItemMenu":
|
||||
{
|
||||
// set menu action index so the edit tags option will not be overridden
|
||||
|
||||
1
runelite-scripts/scripts/BankSearchLayout.hash
Normal file
1
runelite-scripts/scripts/BankSearchLayout.hash
Normal file
@@ -0,0 +1 @@
|
||||
F07CC5D08A4651B7BC2CC748DC17A6B6FB46A47A530BE9710067D9C46D45237A
|
||||
@@ -665,6 +665,10 @@ LABEL609:
|
||||
int_to_string
|
||||
load_string " found)"
|
||||
string_append 3
|
||||
iload 21 ; load number of matches
|
||||
load_string "setSearchBankInputTextFound" ; load event name
|
||||
runelite_callback ; invoke callback
|
||||
pop_int ; pop number of matches
|
||||
load_int 10616868
|
||||
widget_put_text_widget
|
||||
LABEL616:
|
||||
@@ -683,6 +687,8 @@ LABEL617:
|
||||
jump LABEL631
|
||||
LABEL628:
|
||||
load_string "Show items whose names contain the following text:"
|
||||
load_string "setSearchBankInputText" ; load event name
|
||||
runelite_callback ; invoke callback
|
||||
load_int 10616868
|
||||
widget_put_text_widget
|
||||
LABEL631:
|
||||
|
||||
Reference in New Issue
Block a user