diff --git a/src/MinerTools/ui/override/CoreItemsDisplay.java b/src/MinerTools/ui/override/CoreItemsDisplay.java index c2e4748..36f9ecd 100644 --- a/src/MinerTools/ui/override/CoreItemsDisplay.java +++ b/src/MinerTools/ui/override/CoreItemsDisplay.java @@ -106,7 +106,7 @@ private void addSettings(MSettingTable setting){ } private void setup(){ - override = ui.hudGroup.find(c -> c instanceof mindustry.ui.CoreItemsDisplay); + override = Reflect.get(ui.hudfrag, "coreItems"); override.parent.touchable = Touchable.disabled; // Setup ui diff --git a/src/MinerTools/ui/tables/MembersTable.java b/src/MinerTools/ui/tables/MembersTable.java index 6d7713a..1b3188b 100644 --- a/src/MinerTools/ui/tables/MembersTable.java +++ b/src/MinerTools/ui/tables/MembersTable.java @@ -42,7 +42,7 @@ public void setMember(MemberTable member){ showMember = member; if(member != null){ container.add(member).grow().padRight(2.0f); - member.memberRebuild(); + member.onSelected(); } } @@ -108,7 +108,7 @@ public boolean canShown(){ return !(this.mobileOnly && !Vars.mobile || this.desktopOnly && !MinerVars.desktop); } - public void memberRebuild(){ + public void onSelected(){ } } diff --git a/src/MinerTools/ui/tables/members/AITable.java b/src/MinerTools/ui/tables/members/AITable.java index 391eb7e..180d673 100644 --- a/src/MinerTools/ui/tables/members/AITable.java +++ b/src/MinerTools/ui/tables/members/AITable.java @@ -26,7 +26,7 @@ public AITable(){ } @Override - public void memberRebuild(){ + public void onSelected(){ clear(); table(Styles.black6, buttons -> { diff --git a/src/MinerTools/ui/tables/members/TeamChanger.java b/src/MinerTools/ui/tables/members/TeamChanger.java index 30ef467..88dbc9a 100644 --- a/src/MinerTools/ui/tables/members/TeamChanger.java +++ b/src/MinerTools/ui/tables/members/TeamChanger.java @@ -22,7 +22,7 @@ public TeamChanger(){ } @Override - public void memberRebuild(){ + public void onSelected(){ clear(); table(black3, skipTable -> { diff --git a/src/MinerTools/ui/tables/members/TeamsInfo.java b/src/MinerTools/ui/tables/members/TeamsInfo.java index 8b1d8d4..5ba599c 100644 --- a/src/MinerTools/ui/tables/members/TeamsInfo.java +++ b/src/MinerTools/ui/tables/members/TeamsInfo.java @@ -1,6 +1,7 @@ package MinerTools.ui.tables.members; import MinRi2.ModCore.ui.*; +import MinRi2.ModCore.ui.element.*; import MinerTools.game.*; import MinerTools.ui.*; import MinerTools.ui.tables.MembersTable.*; @@ -31,7 +32,7 @@ public TeamsInfo(){ } @Override - public void memberRebuild(){ + public void onSelected(){ setup(); }