Merge pull request #297 from ninjatao/fix_city_button_color

City button changes color after been conquered.
This commit is contained in:
yairm210 2018-12-03 15:27:34 +02:00 committed by GitHub
commit 23e55495d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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