diff --git a/android/assets/jsons/translations/template.properties b/android/assets/jsons/translations/template.properties index 7fd1451bbf..e8a3ffc4e1 100644 --- a/android/assets/jsons/translations/template.properties +++ b/android/assets/jsons/translations/template.properties @@ -249,6 +249,7 @@ Uniques = Promotions = Load copied data = Could not load game from clipboard! = +Reset to defaults = Start game! = Map Options = Game Options = diff --git a/core/src/com/unciv/ui/newgamescreen/NewGameScreen.kt b/core/src/com/unciv/ui/newgamescreen/NewGameScreen.kt index f528b4b68a..d1e3935856 100644 --- a/core/src/com/unciv/ui/newgamescreen/NewGameScreen.kt +++ b/core/src/com/unciv/ui/newgamescreen/NewGameScreen.kt @@ -44,6 +44,15 @@ class NewGameScreen( updateRuleset() + if (UncivGame.Current.settings.lastGameSetup != null) { + val resetToDefaultsButton = "Reset to defaults".toTextButton() + resetToDefaultsButton.padBottom(5f) + rightSideGroup.addActorAt(0, resetToDefaultsButton) + resetToDefaultsButton.onClick { + game.setScreen(NewGameScreen(previousScreen, GameSetupInfo())) + } + } + rightSideButton.enable() rightSideButton.setText("Start game!".tr()) rightSideButton.onClick { diff --git a/core/src/com/unciv/ui/pickerscreens/PickerScreen.kt b/core/src/com/unciv/ui/pickerscreens/PickerScreen.kt index 14ecd05732..b436d9a9e6 100644 --- a/core/src/com/unciv/ui/pickerscreens/PickerScreen.kt +++ b/core/src/com/unciv/ui/pickerscreens/PickerScreen.kt @@ -10,7 +10,7 @@ open class PickerScreen(disableScroll: Boolean = false) : CameraStageBaseScreen( internal var closeButton: TextButton = Constants.close.toTextButton() protected var descriptionLabel: Label - private var rightSideGroup = VerticalGroup() + protected var rightSideGroup = VerticalGroup() protected var rightSideButton: TextButton private val screenSplit = 0.85f private val maxBottomTableHeight = 150f // about 7 lines of normal text