Fadeout for potentially workable tiles currently being worked by another city
Mint icon looks much nicer
This commit is contained in:
parent
0eb79fff82
commit
b309cac67b
3 changed files with 3 additions and 2 deletions
Binary file not shown.
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 4.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 891 KiB After Width: | Height: | Size: 893 KiB |
|
@ -30,7 +30,7 @@ class CityTileGroup(private val city: CityInfo, tileInfo: TileInfo, tileSetStrin
|
|||
|
||||
// this needs to happen on update, because we can buy tiles, which changes the definition of the bought tiles...
|
||||
when {
|
||||
tileInfo.getOwner()!=city.civInfo -> { // outside of civ boundary
|
||||
tileInfo.getOwner() != city.civInfo -> { // outside of civ boundary
|
||||
baseLayerGroup.color.a = 0.3f
|
||||
yieldGroup.isVisible = false
|
||||
}
|
||||
|
@ -40,9 +40,10 @@ class CityTileGroup(private val city: CityInfo, tileInfo: TileInfo, tileSetStrin
|
|||
baseLayerGroup.color.a = 0.5f
|
||||
}
|
||||
|
||||
city.civInfo.cities.filterNot { it==city } // worked by another city
|
||||
city.civInfo.cities.filterNot { it == city } // worked by another city
|
||||
.any { it.workedTiles.contains(tileInfo.position) } -> {
|
||||
// Don't fade out, but don't add a population icon either.
|
||||
baseLayerGroup.color.a = 0.5f
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue