Merge remote-tracking branch 'upstream/master' into master
This commit is contained in:
@@ -600,7 +600,7 @@ public abstract class RSClientMixin implements RSClient
|
||||
@Override
|
||||
public Widget[] getWidgetRoots()
|
||||
{
|
||||
int topGroup = getWidgetRoot();
|
||||
int topGroup = getTopLevelInterfaceId();
|
||||
if (topGroup == -1)
|
||||
{
|
||||
return new Widget[]{};
|
||||
|
||||
@@ -164,7 +164,7 @@ public abstract class RSWidgetMixin implements RSWidget
|
||||
}
|
||||
|
||||
final int id = getId();
|
||||
if (TO_GROUP(id) == client.getWidgetRoot())
|
||||
if (TO_GROUP(id) == client.getTopLevelInterfaceId())
|
||||
{
|
||||
// this is a root widget
|
||||
return -1;
|
||||
@@ -261,7 +261,7 @@ public abstract class RSWidgetMixin implements RSWidget
|
||||
// If the parent is hidden, this widget is also hidden.
|
||||
// Widget has no parent and is not the root widget (which is always visible),
|
||||
// so it's not visible.
|
||||
return parent == null ? TO_GROUP(getId()) != client.getWidgetRoot() : parent.isHidden();
|
||||
return parent == null ? TO_GROUP(getId()) != client.getTopLevelInterfaceId() : parent.isHidden();
|
||||
}
|
||||
|
||||
@Inject
|
||||
|
||||
Reference in New Issue
Block a user