Merge pull request #32 from kylestev/refactor/Widget-parent-field
runescape-client: Rename parent field in Widget
This commit is contained in:
@@ -59,18 +59,6 @@ public class Widget
|
||||
}
|
||||
|
||||
public Widget getParent()
|
||||
{
|
||||
net.runelite.rs.api.Widget parent = widget.getParent();
|
||||
|
||||
if (parent == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return new Widget(client, parent);
|
||||
}
|
||||
|
||||
public Widget getParentFromId()
|
||||
{
|
||||
int id = getParentId();
|
||||
if (id == -1)
|
||||
@@ -121,7 +109,7 @@ public class Widget
|
||||
|
||||
public boolean isHidden()
|
||||
{
|
||||
Widget parent = getParentFromId();
|
||||
Widget parent = getParent();
|
||||
return (parent != null && parent.isHidden()) || widget.isHidden();
|
||||
}
|
||||
|
||||
|
||||
@@ -29,9 +29,6 @@ import net.runelite.mapping.Import;
|
||||
|
||||
public interface Widget
|
||||
{
|
||||
@Import("parent")
|
||||
Widget getParent();
|
||||
|
||||
@Import("dynamicValues")
|
||||
int[][] getDynamicValues();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user