mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-03 13:30:25 +07:00
Moved launch button to top right
This commit is contained in:
parent
ab52c65dcf
commit
7e7f95916b
@ -338,7 +338,7 @@ public class Blocks implements ContentList{
|
||||
}};
|
||||
|
||||
ignarock = new Floor("ignarock"){{
|
||||
|
||||
blendGroup = darksand;
|
||||
}};
|
||||
|
||||
hotrock = new Floor("hotrock"){{
|
||||
|
@ -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
|
||||
|
@ -476,7 +476,7 @@ public class Tile implements Position, TargetTrait{
|
||||
Block block = block();
|
||||
Block floor = floor();
|
||||
|
||||
return floor.name + ":" + block.name + "[" + x + "," + y + "] " + "entity=" + (entity == null ? "null" : (entity.getClass())) +
|
||||
return floor.name + ":" + block.name + ":" + content.block(ore) + "[" + x + "," + y + "] " + "entity=" + (entity == null ? "null" : (entity.getClass())) +
|
||||
(link != 0 ? " link=[" + (Pack.leftByte(link) - 8) + ", " + (Pack.rightByte(link) - 8) + "]" : "");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user