Moved launch button to top right

This commit is contained in:
Anuken
2019-03-23 11:49:48 -04:00
parent ab52c65dcf
commit 7e7f95916b
3 changed files with 4 additions and 7 deletions
@@ -235,9 +235,8 @@ public class HudFragment extends Fragment{
//launch button
parent.fill(t -> {
t.top().visible(() -> !state.is(State.menu));
t.top().right().visible(() -> !state.is(State.menu));
TextButton[] testb = {null};
TextButton button = Elements.newButton("$launch", () -> {
FloatingDialog dialog = new FloatingDialog("$launch");
dialog.update(() -> {
@@ -282,10 +281,8 @@ public class HudFragment extends Fragment{
});
button.setDisabled(() -> state.enemies() > 0);
button.getLabelCell().left().get().setAlignment(Align.left, Align.left);
t.add(button).size(350f, 80f);
t.add(button).size(250f, 80f);
});
//paused table