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

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