runelite-api: fix widget children lookup logic

Also update dev tools panel widget tree to use show all widgets children,
and start from the root widgets.

Thanks to @rsbmatt for his assistance in explaining the logic
This commit is contained in:
Adam
2017-08-05 14:11:05 -04:00
parent b26ee3f193
commit 39f9cfbe70
9 changed files with 330 additions and 202 deletions

View File

@@ -172,9 +172,6 @@ public interface Client extends GameEngine
@Import("viewportWidth")
int getViewportWidth();
@Import("validInterfaces")
boolean[] getValidInterfaces();
@Import("isResized")
boolean isResized();
@@ -234,4 +231,12 @@ public interface Client extends GameEngine
@Import(value = "chatCycle", setter = true)
void setChatCycle(int value);
/**
* Get the widget top group. widgets[topGroup] contains widgets with
* parentId -1, which are the widget roots.
* @return
*/
@Import("widgetRoot")
int getWidgetRoot();
}