mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 11:34:54 -04:00
Show total number of cities in city table
This commit is contained in:
parent
fa5b5612b9
commit
90b3661b95
@ -25,7 +25,7 @@ class CityOverviewTab(
|
||||
override val persistableData = (persistedData as? CityTabPersistableData) ?: CityTabPersistableData()
|
||||
|
||||
private val grid = SortableGrid(
|
||||
columns = CityOverviewTabColumn.values().asIterable(),
|
||||
columns = CityOverviewTabColumn.entries.asIterable(),
|
||||
data = viewingPlayer.cities,
|
||||
actionContext = overviewScreen,
|
||||
sortState = persistableData,
|
||||
|
@ -47,7 +47,7 @@ enum class CityOverviewTabColumn : ISortableGridContentProvider<City, EmpireOver
|
||||
actionContext.game.pushScreen(CityScreen(item))
|
||||
}
|
||||
override fun getTotalsActor(items: Iterable<City>) =
|
||||
"Total".toLabel()
|
||||
"{Total} ${items.count()}".toLabel()
|
||||
},
|
||||
|
||||
Status {
|
||||
|
Loading…
x
Reference in New Issue
Block a user