mirror of
https://github.com/yawaflua/Informatis.git
synced 2025-12-13 16:56:21 +02:00
hotfix
This commit is contained in:
@@ -137,6 +137,7 @@ public class CoreWindow extends Window implements Updatable {
|
|||||||
}),
|
}),
|
||||||
new Table(ttt -> {
|
new Table(ttt -> {
|
||||||
ttt.bottom().right();
|
ttt.bottom().right();
|
||||||
|
if(itemData.get(team) == null) return;
|
||||||
int amount = itemData.get(team).updateItems.isEmpty()?0:Mathf.floor(itemData.get(team).updateItems.get(item.id).amount);
|
int amount = itemData.get(team).updateItems.isEmpty()?0:Mathf.floor(itemData.get(team).updateItems.get(item.id).amount);
|
||||||
Label label = new Label(amount + "/s");
|
Label label = new Label(amount + "/s");
|
||||||
label.setFontScale(0.65f);
|
label.setFontScale(0.65f);
|
||||||
|
|||||||
@@ -101,9 +101,9 @@ public class UnitWindow extends Window {
|
|||||||
})
|
})
|
||||||
.tooltip(tool -> {
|
.tooltip(tool -> {
|
||||||
tool.background(Styles.black6);
|
tool.background(Styles.black6);
|
||||||
tool.label(() -> target instanceof Unit u ? u.isPlayer() ? u.getPlayer().name : "AI" : "").visible(target instanceof Unit).row();
|
tool.label(() -> target instanceof Unit u ? u.isPlayer() ? u.getPlayer().name : "AI" : "").row();
|
||||||
tool.label(() -> target.tileX() + ", " + target.tileY()).row();
|
tool.label(() -> target.tileX() + ", " + target.tileY()).row();
|
||||||
tool.label(() -> target instanceof Unit u ? "[accent]"+ Strings.fixed(u.armor, 0) + "[] Armor" : "").visible(target instanceof Unit);
|
tool.label(() -> target instanceof Unit u ? "[accent]"+ Strings.fixed(u.armor, 0) + "[] Armor" : "");
|
||||||
}).get()
|
}).get()
|
||||||
).margin(3f).growX().row();
|
).margin(3f).growX().row();
|
||||||
table.table().update(tt -> {
|
table.table().update(tt -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user