From eecccd45428a95bbcd80db6102528f06dd94a531 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Tue, 25 Apr 2023 17:17:59 +0300 Subject: [PATCH] Fade unit icon in overview if not idle --- .../com/unciv/ui/screens/overviewscreen/UnitOverviewTable.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/ui/screens/overviewscreen/UnitOverviewTable.kt b/core/src/com/unciv/ui/screens/overviewscreen/UnitOverviewTable.kt index b866988e58..b459bd0d97 100644 --- a/core/src/com/unciv/ui/screens/overviewscreen/UnitOverviewTable.kt +++ b/core/src/com/unciv/ui/screens/overviewscreen/UnitOverviewTable.kt @@ -182,8 +182,8 @@ class UnitOverviewTab( // Unit button column - name, health, fortified, sleeping, embarked are visible here val button = IconTextButton( unit.displayName(), - UnitGroup(unit, 20f), - fontColor = if (unit.due && unit.isIdle()) Color.WHITE else Color.LIGHT_GRAY + UnitGroup(unit, 20f).apply { if (!unit.isIdle()) color.a = 0.5f }, + fontColor = if (unit.isIdle()) Color.WHITE else Color.LIGHT_GRAY ) button.name = getUnitIdentifier(unit) // Marker to find a unit in select() button.onClick {