From 0e664d943b63b8d4c42f3bde8091ebed70d6ad8c Mon Sep 17 00:00:00 2001 From: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Date: Thu, 17 Aug 2023 15:18:23 +0200 Subject: [PATCH] Fix missing DiplomaticVotePickerScreen link in NextTurnAction (#9931) --- .../com/unciv/ui/screens/worldscreen/status/NextTurnAction.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/com/unciv/ui/screens/worldscreen/status/NextTurnAction.kt b/core/src/com/unciv/ui/screens/worldscreen/status/NextTurnAction.kt index d42ed349a1..15f49fe4b4 100644 --- a/core/src/com/unciv/ui/screens/worldscreen/status/NextTurnAction.kt +++ b/core/src/com/unciv/ui/screens/worldscreen/status/NextTurnAction.kt @@ -10,6 +10,7 @@ import com.unciv.ui.components.extensions.disable import com.unciv.ui.components.extensions.enable import com.unciv.ui.popups.ConfirmPopup import com.unciv.ui.screens.cityscreen.CityScreen +import com.unciv.ui.screens.pickerscreens.DiplomaticVotePickerScreen import com.unciv.ui.screens.pickerscreens.PantheonPickerScreen import com.unciv.ui.screens.pickerscreens.PolicyPickerScreen import com.unciv.ui.screens.pickerscreens.ReligiousBeliefsPickerScreen @@ -96,6 +97,8 @@ enum class NextTurnAction(protected val text: String, val color: Color) { WorldCongressVote("Vote for World Leader", Color.MAROON) { override fun isChoice(worldScreen: WorldScreen) = worldScreen.viewingCiv.mayVoteForDiplomaticVictory() + override fun action(worldScreen: WorldScreen) = + worldScreen.game.pushScreen(DiplomaticVotePickerScreen(worldScreen.viewingCiv)) }, NextUnit("Next unit", Color.LIGHT_GRAY) { override fun isChoice(worldScreen: WorldScreen) =