From cbf989ce9133c5e8ada88d47e9502ae8fe06ed1c Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Mon, 23 Jan 2023 21:39:13 +0200 Subject: [PATCH] Fade units and improvements in city --- core/src/com/unciv/ui/cityscreen/CityTileGroup.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/com/unciv/ui/cityscreen/CityTileGroup.kt b/core/src/com/unciv/ui/cityscreen/CityTileGroup.kt index 24e784192b..ac12135fcc 100644 --- a/core/src/com/unciv/ui/cityscreen/CityTileGroup.kt +++ b/core/src/com/unciv/ui/cityscreen/CityTileGroup.kt @@ -71,8 +71,14 @@ class CityTileGroup(private val city: City, tile: Tile, tileSetStrings: TileSetS } unitLayerGroup.isVisible = false + + // All of these things on the tile aren't interesting from a city perspective terrainFeatureLayerGroup.color.a = 0.5f icons.improvementIcon?.setColor(1f, 1f, 1f, 0.5f) + resourceImage?.setColor(1f, 1f, 1f, 0.5f) + pixelCivilianUnitGroup.setColor(1f, 1f, 1f, 0.5f) + pixelMilitaryUnitGroup.setColor(1f, 1f, 1f, 0.5f) + updatePopulationIcon() updateYieldGroup() }