List which city owns each tile in the city screen UI (#7631)

This commit is contained in:
OptimizedForDensity
2022-08-12 07:26:09 -04:00
committed by GitHub
parent 28f65a7599
commit 8f23ae52cc
2 changed files with 4 additions and 0 deletions

View File

@ -1053,6 +1053,7 @@ Convert production to science at a rate of [rate] to 1 =
Convert production to [stat] at a rate of [rate] to 1 = Convert production to [stat] at a rate of [rate] to 1 =
Production to [stat] conversion in cities changed by [relativeAmount]% = Production to [stat] conversion in cities changed by [relativeAmount]% =
The city will not produce anything. = The city will not produce anything. =
Owned by [cityName] =
Worked by [cityName] = Worked by [cityName] =
Lock = Lock =
Unlock = Unlock =

View File

@ -67,6 +67,9 @@ class CityScreenTileTable(private val cityScreen: CityScreen): Table() {
innerTable.add(buyTileButton).padTop(5f).row() innerTable.add(buyTileButton).padTop(5f).row()
} }
if (selectedTile.owningCity != null)
innerTable.add("Owned by [${selectedTile.owningCity!!.name}]".toLabel()).row()
if (city.civInfo.cities.filterNot { it == city }.any { it.isWorked(selectedTile) }) if (city.civInfo.cities.filterNot { it == city }.any { it.isWorked(selectedTile) })
innerTable.add("Worked by [${selectedTile.getWorkingCity()!!.name}]".toLabel()).row() innerTable.add("Worked by [${selectedTile.getWorkingCity()!!.name}]".toLabel()).row()