mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 07:16:54 +07:00
Made 'go to on map' translatable & fixed crash (#6565)
This commit is contained in:
parent
3d93dafb13
commit
a92057eed5
@ -97,6 +97,7 @@ Peace =
|
||||
Research Agreement =
|
||||
Declare war =
|
||||
Declare war on [civName]? =
|
||||
Go to on map =
|
||||
Let's begin! =
|
||||
[civName] has declared war on us! =
|
||||
[leaderName] of [nation] =
|
||||
|
@ -748,7 +748,7 @@ class DiplomacyScreen(
|
||||
diplomacyTable.add(demandsButton).row()
|
||||
if (isNotPlayersTurn()) demandsButton.disable()
|
||||
|
||||
if (otherCiv.getCapital().location in viewingCiv.exploredTiles)
|
||||
if (otherCiv.cities.isNotEmpty() && otherCiv.getCapital().location in viewingCiv.exploredTiles)
|
||||
diplomacyTable.add(getGoToOnMapButton(otherCiv)).row()
|
||||
|
||||
if (!otherCiv.isPlayerCivilization()) { // human players make their own choices
|
||||
@ -932,7 +932,7 @@ class DiplomacyScreen(
|
||||
}
|
||||
|
||||
private fun getGoToOnMapButton(civilization: CivilizationInfo): TextButton {
|
||||
val goToOnMapButton = TextButton("Go To on Map", skin)
|
||||
val goToOnMapButton = TextButton("Go to on map", skin)
|
||||
goToOnMapButton.onClick {
|
||||
UncivGame.Current.setWorldScreen()
|
||||
UncivGame.Current.worldScreen.mapHolder.setCenterPosition(civilization.getCapital().location, selectUnit = false)
|
||||
|
Loading…
Reference in New Issue
Block a user