Implemented core item display (WIP)

This commit is contained in:
Anuken
2020-07-02 15:27:02 -04:00
parent cecb5cf4b4
commit ee3aedc75f
4 changed files with 15 additions and 6 deletions

View File

@@ -35,7 +35,6 @@ public class HudFragment extends Fragment{
private Table lastUnlockLayout;
private boolean shown = true;
private float dsize = 47.2f;
//TODO implement
private CoreItemsDisplay coreItems = new CoreItemsDisplay();
private String hudText = "";
@@ -203,6 +202,12 @@ public class HudFragment extends Fragment{
t.top().right();
});
//core items
parent.fill(t -> {
t.top().add(coreItems);
t.visible(() -> Core.settings.getBool("coreitems") && !mobile);
});
//spawner warning
parent.fill(t -> {
t.touchable(Touchable.disabled);