Fixed no-wave FPS display / Fixed unit pad inventories

This commit is contained in:
Anuken
2018-08-01 22:14:43 -04:00
parent 5206079e23
commit c05020e28e
4 changed files with 24 additions and 11 deletions
@@ -97,7 +97,7 @@ public class HudFragment extends Fragment{
cont.row();
cont.table(this::addWaveTable).touchable(Touchable.enabled).fillX().height(66f);
Table waves = cont.table(this::addWaveTable).touchable(Touchable.enabled).fillX().height(66f).get();
cont.row();
@@ -112,7 +112,9 @@ public class HudFragment extends Fragment{
if(Net.hasClient()){
t.label(() -> ping.get(Net.getPing())).visible(() -> Net.client() && !gwt).colspan(2);
}
}).size(-1).visible(() -> Settings.getBool("fps")).get();
}).size(-1).visible(() -> Settings.getBool("fps")).update(t -> {
t.setTranslation(0, state.mode.disableWaves ? waves.getHeight() : 0);
}).get();
//make wave box appear below rest of menu
cont.swapActor(wavetable, menu.getParent());