mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-10 02:47:24 +07:00
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.
This commit is contained in:
parent
6b4003311b
commit
21510a8455
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user