From 21510a8455d2a0d4fa75848870a245f88fc17784 Mon Sep 17 00:00:00 2001 From: WhoIsJohannes <126110113+WhoIsJohannes@users.noreply.github.com> Date: Wed, 5 Apr 2023 11:25:30 +0200 Subject: [PATCH] Show city size in CityScreenCityPickerTable.kt (#9120) I need this quite often when deciding whether to build something such as "Library" (get 1 research for each 2 population -> "Oh, wait, what's the population of this city?") Longer term I want to check how hard it would be to show the effects of something more directly e.g. for the social policy picker screen. E.g. "Gain one happiness for each city with a garrison" or "Empire produces double the amount of resources" or "1 extra happiness for each walls, castle, arsenal etc.", would be nice to see directly to how much happiness, resources that translates to make a better decision. --- .../unciv/ui/screens/cityscreen/CityScreenCityPickerTable.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/screens/cityscreen/CityScreenCityPickerTable.kt b/core/src/com/unciv/ui/screens/cityscreen/CityScreenCityPickerTable.kt index 76775ab638..eb90832003 100644 --- a/core/src/com/unciv/ui/screens/cityscreen/CityScreenCityPickerTable.kt +++ b/core/src/com/unciv/ui/screens/cityscreen/CityScreenCityPickerTable.kt @@ -52,7 +52,8 @@ class CityScreenCityPickerTable(private val cityScreen: CityScreen) : Table() { cityNameTable.add(starImage).size(20f).padRight(5f) } - val currentCityLabel = city.name.toLabel(fontSize = 30, fontColor = civInfo.nation.getInnerColor()) + val currentCityLabel = city.run { "{$name} (${population.population})" } + .toLabel(fontSize = 30, fontColor = civInfo.nation.getInnerColor()) if (cityScreen.canChangeState) currentCityLabel.onClick { CityRenamePopup( screen = cityScreen,