examine plugin: add looting bag item examine support

This commit is contained in:
Dylan Critz
2018-11-05 08:14:41 -06:00
committed by Adam
parent 826fa05751
commit cd15227585
3 changed files with 20 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ import net.runelite.client.util.StackFormatter;
import net.runelite.http.api.examine.ExamineClient;
/**
* Submits exammine info to the api
* Submits examine info to the api
*
* @author Adam
*/
@@ -268,6 +268,16 @@ public class ExaminePlugin extends Plugin
itemId = widgetItem.getItemId();
}
}
else if (WidgetInfo.LOOTING_BAG_CONTAINER.getGroupId() == widgetGroup)
{
Widget[] children = widget.getDynamicChildren();
if (pendingExamine.getActionParam() < children.length)
{
Widget widgetItem = children[pendingExamine.getActionParam()];
quantity = widgetItem.getItemQuantity();
itemId = widgetItem.getItemId();
}
}
}
if (itemId == -1)