mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 06:51:30 -04:00
Added resistance icon in city screen
This commit is contained in:
parent
a1f5690e41
commit
6d9543e07b
@ -43,6 +43,12 @@ class CityScreenCityPickerTable(val cityScreen: CityScreen) : Table(){
|
|||||||
cityNameTable.add(starImage).size(20f).padRight(5f)
|
cityNameTable.add(starImage).size(20f).padRight(5f)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (city.resistanceCounter > 0) {
|
||||||
|
val resistanceImage = ImageGetter.getImage("StatIcons/Resistance")
|
||||||
|
cityNameTable.add(resistanceImage).size(20f).padRight(5f)
|
||||||
|
}
|
||||||
|
|
||||||
val currentCityLabel = Label(city.name + " (" + city.population.population + ")", CameraStageBaseScreen.skin)
|
val currentCityLabel = Label(city.name + " (" + city.population.population + ")", CameraStageBaseScreen.skin)
|
||||||
currentCityLabel.setFontSize(30)
|
currentCityLabel.setFontSize(30)
|
||||||
currentCityLabel.onClick {
|
currentCityLabel.onClick {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user