Deployment fixes

This commit is contained in:
Anuken
2020-09-15 19:28:38 -04:00
parent 234649bd68
commit a5ce57e56d
11 changed files with 36 additions and 27 deletions

View File

@@ -76,6 +76,19 @@ public class HudFragment extends Fragment{
t.table(Styles.black5, top -> top.add("@paused").style(Styles.outlineLabel).pad(8f)).growX();
});
//minimap + position
parent.fill(t -> {
t.visible(() -> Core.settings.getBool("minimap") && !state.rules.tutorial && shown);
//minimap
t.add(new Minimap());
t.row();
//position
t.label(() -> player.tileX() + "," + player.tileY())
.visible(() -> Core.settings.getBool("position") && !state.rules.tutorial)
.touchable(Touchable.disabled);
t.top().right();
});
//TODO tear this all down
//menu at top left
parent.fill(cont -> {
@@ -212,18 +225,6 @@ public class HudFragment extends Fragment{
}).top().left();
});
parent.fill(t -> {
t.visible(() -> Core.settings.getBool("minimap") && !state.rules.tutorial && shown);
//minimap
t.add(new Minimap());
t.row();
//position
t.label(() -> player.tileX() + "," + player.tileY())
.visible(() -> Core.settings.getBool("position") && !state.rules.tutorial)
.touchable(Touchable.disabled);
t.top().right();
});
//core items
parent.fill(t -> {
t.top().add(coreItems);