City button changes color after been conquered.

This commit is contained in:
Duan Tao 2018-12-03 19:26:35 +08:00
parent 1e17df4b1e
commit a769678e63

View File

@ -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())