antidrag: add antidrag to inventory when bank interface is open
This commit is contained in:
@@ -210,6 +210,7 @@ public class AntiDragPlugin extends Plugin implements KeyListener
|
|||||||
private void setBankDragDelay(int delay)
|
private void setBankDragDelay(int delay)
|
||||||
{
|
{
|
||||||
final Widget bankItemContainer = client.getWidget(WidgetInfo.BANK_ITEM_CONTAINER);
|
final Widget bankItemContainer = client.getWidget(WidgetInfo.BANK_ITEM_CONTAINER);
|
||||||
|
final Widget bankInventoryItemsContainer = client.getWidget(WidgetInfo.BANK_INVENTORY_ITEMS_CONTAINER);
|
||||||
if (bankItemContainer != null)
|
if (bankItemContainer != null)
|
||||||
{
|
{
|
||||||
Widget[] items = bankItemContainer.getDynamicChildren();
|
Widget[] items = bankItemContainer.getDynamicChildren();
|
||||||
@@ -218,6 +219,14 @@ public class AntiDragPlugin extends Plugin implements KeyListener
|
|||||||
item.setDragDeadTime(delay);
|
item.setDragDeadTime(delay);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (bankInventoryItemsContainer != null)
|
||||||
|
{
|
||||||
|
Widget[] items = bankInventoryItemsContainer.getDynamicChildren();
|
||||||
|
for (Widget item : items)
|
||||||
|
{
|
||||||
|
item.setDragDeadTime(delay);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setDragDelay()
|
private void setDragDelay()
|
||||||
|
|||||||
Reference in New Issue
Block a user