mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-13 09:18:43 +07:00
Fade unit icon in overview if not idle
This commit is contained in:
@ -182,8 +182,8 @@ class UnitOverviewTab(
|
|||||||
// Unit button column - name, health, fortified, sleeping, embarked are visible here
|
// Unit button column - name, health, fortified, sleeping, embarked are visible here
|
||||||
val button = IconTextButton(
|
val button = IconTextButton(
|
||||||
unit.displayName(),
|
unit.displayName(),
|
||||||
UnitGroup(unit, 20f),
|
UnitGroup(unit, 20f).apply { if (!unit.isIdle()) color.a = 0.5f },
|
||||||
fontColor = if (unit.due && unit.isIdle()) Color.WHITE else Color.LIGHT_GRAY
|
fontColor = if (unit.isIdle()) Color.WHITE else Color.LIGHT_GRAY
|
||||||
)
|
)
|
||||||
button.name = getUnitIdentifier(unit) // Marker to find a unit in select()
|
button.name = getUnitIdentifier(unit) // Marker to find a unit in select()
|
||||||
button.onClick {
|
button.onClick {
|
||||||
|
Reference in New Issue
Block a user