From 8f23ae52ccecdf7301ae44dbd35e1cd8a5a4feff Mon Sep 17 00:00:00 2001 From: OptimizedForDensity <105244635+OptimizedForDensity@users.noreply.github.com> Date: Fri, 12 Aug 2022 07:26:09 -0400 Subject: [PATCH] List which city owns each tile in the city screen UI (#7631) --- android/assets/jsons/translations/template.properties | 1 + core/src/com/unciv/ui/cityscreen/CityScreenTileTable.kt | 3 +++ 2 files changed, 4 insertions(+) diff --git a/android/assets/jsons/translations/template.properties b/android/assets/jsons/translations/template.properties index c67ba68fa4..0e6541a371 100644 --- a/android/assets/jsons/translations/template.properties +++ b/android/assets/jsons/translations/template.properties @@ -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 = Production to [stat] conversion in cities changed by [relativeAmount]% = The city will not produce anything. = +Owned by [cityName] = Worked by [cityName] = Lock = Unlock = diff --git a/core/src/com/unciv/ui/cityscreen/CityScreenTileTable.kt b/core/src/com/unciv/ui/cityscreen/CityScreenTileTable.kt index 726dd2a6d7..1fcf92c80a 100644 --- a/core/src/com/unciv/ui/cityscreen/CityScreenTileTable.kt +++ b/core/src/com/unciv/ui/cityscreen/CityScreenTileTable.kt @@ -67,6 +67,9 @@ class CityScreenTileTable(private val cityScreen: CityScreen): Table() { 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) }) innerTable.add("Worked by [${selectedTile.getWorkingCity()!!.name}]".toLabel()).row()