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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user