City state icon.
This commit is contained in:
parent
3292e41977
commit
fc4f62f555
4 changed files with 337 additions and 324 deletions
|
@ -423,6 +423,7 @@ All the following are from [the Noun Project](https://thenounproject.com) licenc
|
|||
* [Resistance](https://thenounproject.com/term/revolution/1315305/) By HeadsOfBirds
|
||||
* [Viking Hat](https://thenounproject.com/search/?q=pillage&i=185405) By my name is mud for pillaging improvements
|
||||
* [Aim](https://thenounproject.com/search/?q=aim&i=2034920) By Kaviashri for ranged strength
|
||||
* [Capitol](https://thenounproject.com/search/?q=capitol&i=160031) By Loren Klein, US for city states
|
||||
|
||||
# Sound credits
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
Binary file not shown.
Before Width: | Height: | Size: 966 KiB After Width: | Height: | Size: 980 KiB |
|
@ -54,8 +54,13 @@ class CityButton(val city: CityInfo, internal val tileGroup: WorldTileGroup, ski
|
|||
add(fireImage).size(20f).pad(2f).padLeft(5f)
|
||||
}
|
||||
if (city.isCapital()) {
|
||||
val starImage = ImageGetter.getImage("OtherIcons/Star.png").apply { color = Color.LIGHT_GRAY }
|
||||
add(starImage).size(20f).pad(2f).padLeft(5f)
|
||||
if (city.civInfo.isCityState()) {
|
||||
val cityStateImage = ImageGetter.getImage("OtherIcons/CityState.png").apply { color = Color.LIGHT_GRAY }
|
||||
add(cityStateImage).size(20f).pad(2f).padLeft(5f)
|
||||
} else {
|
||||
val starImage = ImageGetter.getImage("OtherIcons/Star.png").apply { color = Color.LIGHT_GRAY }
|
||||
add(starImage).size(20f).pad(2f).padLeft(5f)
|
||||
}
|
||||
} else if (city.civInfo.isCurrentPlayer() && city.cityStats.isConnectedToCapital(RoadStatus.Road)) {
|
||||
val connectionImage = ImageGetter.getStatIcon("CityConnection")
|
||||
add(connectionImage).size(20f).pad(2f).padLeft(5f)
|
||||
|
|
Loading…
Reference in a new issue