UI cleanup

This commit is contained in:
Anuken
2020-07-23 17:37:45 -04:00
parent 69f6154894
commit 72fc103e16
28 changed files with 78 additions and 78 deletions

View File

@@ -17,7 +17,7 @@ public class BlockConfigFragment extends Fragment{
@Override
public void build(Group parent){
table.visible(false);
table.visible = false;
parent.addChild(table);
//hacky way to hide block config when in menu
@@ -27,7 +27,7 @@ public class BlockConfigFragment extends Fragment{
public void act(float delta){
super.act(delta);
if(state.isMenu()){
table.visible(false);
table.visible = false;
configTile = null;
}
}
@@ -35,7 +35,7 @@ public class BlockConfigFragment extends Fragment{
}
public boolean isShown(){
return table.isVisible() && configTile != null;
return table.visible && configTile != null;
}
public Building getSelectedTile(){
@@ -46,7 +46,7 @@ public class BlockConfigFragment extends Fragment{
if(tile.configTapped()){
configTile = tile;
table.visible(true);
table.visible = true;
table.clear();
tile.buildConfiguration(table);
table.pack();