mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-20 19:56:51 +01:00
At least one active (not spectator) human player needed
This commit is contained in:
parent
be27951c5d
commit
d843bebe7e
|
|
@ -51,9 +51,9 @@ class NewGameScreen(previousScreen:CameraStageBaseScreen, _gameSetupInfo: GameSe
|
|||
rightSideButton.enable()
|
||||
rightSideButton.setText("Start game!".tr())
|
||||
rightSideButton.onClick {
|
||||
if (gameSetupInfo.gameParameters.players.none { it.playerType == PlayerType.Human }) {
|
||||
if (gameSetupInfo.gameParameters.players.none { it.playerType == PlayerType.Human && it.chosenCiv != "Spectator"}) {
|
||||
val noHumanPlayersPopup = Popup(this)
|
||||
noHumanPlayersPopup.addGoodSizedLabel("No human players selected!".tr()).row()
|
||||
noHumanPlayersPopup.addGoodSizedLabel("No active human players selected!".tr()).row()
|
||||
noHumanPlayersPopup.addCloseButton()
|
||||
noHumanPlayersPopup.open()
|
||||
return@onClick
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user