mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Enabled team combo box on android now that multiplayer is possible, also attempted to prevent hanging on conceding in multiplayer games - only working on android so far
This commit is contained in:
@@ -232,7 +232,7 @@ public class PlayerPanel extends FContainer {
|
||||
setMayControl(mayControl0);
|
||||
|
||||
//disable team combo boxes for now
|
||||
cbTeam.setEnabled(false);
|
||||
cbTeam.setEnabled(true);
|
||||
}
|
||||
|
||||
public void initialize(FPref savedStateSetting, FPref savedStateSettingCommander, FPref savedStateSettingTinyLeader, DeckType defaultDeckType) {
|
||||
|
||||
@@ -238,7 +238,12 @@ public abstract class AbstractGuiGame implements IGuiGame, IMayViewCards {
|
||||
// Don't immediately close, wait for win/lose screen
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
for(PlayerView player: getLocalPlayers()){
|
||||
if(!player.isAI()){
|
||||
getGameController(player).nextGameDecision(NextGameDecision.QUIT);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (spectator == null) {
|
||||
@@ -421,7 +426,7 @@ public abstract class AbstractGuiGame implements IGuiGame, IMayViewCards {
|
||||
* @return null if choices is missing, empty, or if the users' choices are
|
||||
* empty; otherwise, returns the first item in the List returned by
|
||||
* getChoices.
|
||||
* @see #getChoices(String, int, int, Object...)
|
||||
* @see #getChoices(String, int, int, List)
|
||||
*/
|
||||
@Override
|
||||
public <T> T oneOrNone(final String message, final List<T> choices) {
|
||||
|
||||
Reference in New Issue
Block a user