This commit is contained in:
Sharlotte
2022-09-17 03:43:51 +09:00
parent f336cb82e5
commit e4b6fdd0a8
2 changed files with 3 additions and 2 deletions

View File

@@ -137,6 +137,7 @@ public class CoreWindow extends Window implements Updatable {
}),
new Table(ttt -> {
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);
Label label = new Label(amount + "/s");
label.setFontScale(0.65f);

View File

@@ -101,9 +101,9 @@ public class UnitWindow extends Window {
})
.tooltip(tool -> {
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 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()
).margin(3f).growX().row();
table.table().update(tt -> {