mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-05 07:01:21 +07:00
City button changes color after been conquered.
This commit is contained in:
parent
1e17df4b1e
commit
a769678e63
@ -25,6 +25,8 @@ class CityButton(val city: CityInfo, skin: Skin): Table(skin){
|
||||
|
||||
fun update(isCityViewable:Boolean) {
|
||||
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)
|
||||
label.setFontColor(city.civInfo.getNation().getSecondaryColor())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user