mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-10 15:59:33 +07:00
City button changes color after been conquered.
This commit is contained in:
@ -25,6 +25,8 @@ class CityButton(val city: CityInfo, skin: Skin): Table(skin){
|
|||||||
|
|
||||||
fun update(isCityViewable:Boolean) {
|
fun update(isCityViewable:Boolean) {
|
||||||
val cityButtonText = city.population.population.toString() + " | " + city.name
|
val cityButtonText = city.population.population.toString() + " | " + city.name
|
||||||
|
background = ImageGetter.getDrawable("OtherIcons/civTableBackground.png")
|
||||||
|
.tint(city.civInfo.getNation().getColor())
|
||||||
val label = Label(cityButtonText, CameraStageBaseScreen.skin)
|
val label = Label(cityButtonText, CameraStageBaseScreen.skin)
|
||||||
label.setFontColor(city.civInfo.getNation().getSecondaryColor())
|
label.setFontColor(city.civInfo.getNation().getSecondaryColor())
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user