Network, UI, renderer fixes

This commit is contained in:
Anuken
2018-01-11 23:15:53 -05:00
parent e91aa62b4a
commit 1762af5d4c
10 changed files with 56 additions and 28 deletions
@@ -95,7 +95,8 @@ public class HudFragment implements Fragment{
visible(()->!GameState.is(State.menu));
Label fps = new Label(()->(Settings.getBool("fps") ? (Gdx.graphics.getFramesPerSecond() + " FPS") : ""));
Label fps = new Label(()->(Settings.getBool("fps") ? (Gdx.graphics.getFramesPerSecond() + " FPS") +
(Net.active() ? " / Ping: " + Net.getPing() : ""): ""));
row();
add(fps).size(-1);
@@ -122,6 +123,11 @@ public class HudFragment implements Fragment{
new table("white"){{
respawntable = get();
respawntable.setColor(Color.CLEAR);
update(t -> {
if(GameState.is(State.menu)){
respawntable.setColor(Color.CLEAR);
}
});
}}.end();
//respawn table