Merge pull request #297 from ninjatao/fix_city_button_color
City button changes color after been conquered.
This commit is contained in:
commit
23e55495d4
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue