mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 11:17:11 +07:00
Bugfixes
This commit is contained in:
parent
bbb9b3ef62
commit
3f1ed6d4a4
@ -723,14 +723,16 @@ public class HudFragment extends Fragment{
|
||||
},
|
||||
new Table(t -> {
|
||||
float bw = 40f;
|
||||
float pad = -30;
|
||||
float pad = -20;
|
||||
t.margin(0);
|
||||
|
||||
t.add(new SideBar(() -> player.unit().healthf(), () -> true, true)).width(bw).growY().padRight(pad);
|
||||
t.image(() -> player.icon()).scaling(Scaling.bounded).grow();
|
||||
t.image(() -> player.icon()).scaling(Scaling.bounded).grow().maxWidth(58f);
|
||||
t.add(new SideBar(() -> player.dead() ? 0f : player.displayAmmo() ? player.unit().ammof() : player.unit().healthf(), () -> !player.displayAmmo(), false)).width(bw).growY().padLeft(pad).update(b -> {
|
||||
b.color.set(player.displayAmmo() ? Pal.ammo : Pal.health);
|
||||
});
|
||||
|
||||
t.getChildren().get(1).toFront();
|
||||
})).size(120f, 80).padRight(4);
|
||||
|
||||
table.labelWrap(() -> {
|
||||
|
Loading…
Reference in New Issue
Block a user