mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 11:34:54 -04:00
Update CityScreenCityPickerTable.kt (#8533)
This commit is contained in:
parent
adde5c2bda
commit
296a2f689f
@ -9,6 +9,7 @@ import com.unciv.ui.popup.AskTextPopup
|
||||
import com.unciv.ui.utils.BaseScreen
|
||||
import com.unciv.ui.utils.extensions.onClick
|
||||
import com.unciv.ui.utils.extensions.toLabel
|
||||
import com.unciv.models.translations.tr
|
||||
|
||||
/** Widget for the City Screen -
|
||||
* the panel at bottom center showing the city name and offering arrows to cycle through the cities. */
|
||||
@ -57,7 +58,7 @@ class CityScreenCityPickerTable(private val cityScreen: CityScreen) : Table() {
|
||||
AskTextPopup(
|
||||
cityScreen,
|
||||
label = "Please enter a new name for your city",
|
||||
defaultText = city.name,
|
||||
defaultText = city.name.tr(),
|
||||
validate = { it != "" },
|
||||
actionOnOk = { text ->
|
||||
city.name = text
|
||||
|
Loading…
x
Reference in New Issue
Block a user