bank plugin: improve responsiveness of bank searches
This commit is contained in:
@@ -186,7 +186,7 @@ public class BankPlugin extends Plugin
|
|||||||
eventBus.subscribe(ScriptCallbackEvent.class, this, this::onScriptCallbackEvent);
|
eventBus.subscribe(ScriptCallbackEvent.class, this, this::onScriptCallbackEvent);
|
||||||
eventBus.subscribe(WidgetLoaded.class, this, this::onWidgetLoaded);
|
eventBus.subscribe(WidgetLoaded.class, this, this::onWidgetLoaded);
|
||||||
eventBus.subscribe(ItemContainerChanged.class, this, this::onItemContainerChanged);
|
eventBus.subscribe(ItemContainerChanged.class, this, this::onItemContainerChanged);
|
||||||
eventBus.subscribe(VarClientStrChanged.class, this, this::onVarClientStrChanged);
|
eventBus.subscribe(VarClientStrChanged.class, this, this::onVarClientStrChanged);
|
||||||
searchString = "";
|
searchString = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -69,23 +69,23 @@ public class BankSearch
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void layoutBank()
|
public void layoutBank()
|
||||||
{
|
{
|
||||||
Widget bankContainer = client.getWidget(WidgetInfo.BANK_ITEM_CONTAINER);
|
Widget bankContainer = client.getWidget(WidgetInfo.BANK_ITEM_CONTAINER);
|
||||||
if (bankContainer == null || bankContainer.isHidden())
|
if (bankContainer == null || bankContainer.isHidden())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object[] scriptArgs = bankContainer.getOnInvTransmit();
|
Object[] scriptArgs = bankContainer.getOnInvTransmit();
|
||||||
|
|
||||||
if (scriptArgs == null)
|
if (scriptArgs == null)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
client.runScript(scriptArgs);
|
client.runScript(scriptArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void reset(boolean closeChat)
|
public void reset(boolean closeChat)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user