antidrag: add antidrag to inventory when bank interface is open

This commit is contained in:
MMagicala
2020-06-01 14:38:52 -07:00
committed by Adam
parent 9168c1520d
commit 791f2bd9e0

View File

@@ -210,6 +210,7 @@ public class AntiDragPlugin extends Plugin implements KeyListener
private void setBankDragDelay(int delay)
{
final Widget bankItemContainer = client.getWidget(WidgetInfo.BANK_ITEM_CONTAINER);
final Widget bankInventoryItemsContainer = client.getWidget(WidgetInfo.BANK_INVENTORY_ITEMS_CONTAINER);
if (bankItemContainer != null)
{
Widget[] items = bankItemContainer.getDynamicChildren();
@@ -218,6 +219,14 @@ public class AntiDragPlugin extends Plugin implements KeyListener
item.setDragDeadTime(delay);
}
}
if (bankInventoryItemsContainer != null)
{
Widget[] items = bankInventoryItemsContainer.getDynamicChildren();
for (Widget item : items)
{
item.setDragDeadTime(delay);
}
}
}
private void setDragDelay()