mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-05 21:11:35 +07:00
Fix missing DiplomaticVotePickerScreen link in NextTurnAction (#9931)
This commit is contained in:
parent
e1a44b1076
commit
0e664d943b
@ -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) =
|
||||
|
Loading…
Reference in New Issue
Block a user