mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28: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);
|
setMayControl(mayControl0);
|
||||||
|
|
||||||
//disable team combo boxes for now
|
//disable team combo boxes for now
|
||||||
cbTeam.setEnabled(false);
|
cbTeam.setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void initialize(FPref savedStateSetting, FPref savedStateSettingCommander, FPref savedStateSettingTinyLeader, DeckType defaultDeckType) {
|
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
|
// Don't immediately close, wait for win/lose screen
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return true;
|
for(PlayerView player: getLocalPlayers()){
|
||||||
|
if(!player.isAI()){
|
||||||
|
getGameController(player).nextGameDecision(NextGameDecision.QUIT);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (spectator == null) {
|
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
|
* @return null if choices is missing, empty, or if the users' choices are
|
||||||
* empty; otherwise, returns the first item in the List returned by
|
* empty; otherwise, returns the first item in the List returned by
|
||||||
* getChoices.
|
* getChoices.
|
||||||
* @see #getChoices(String, int, int, Object...)
|
* @see #getChoices(String, int, int, List)
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public <T> T oneOrNone(final String message, final List<T> choices) {
|
public <T> T oneOrNone(final String message, final List<T> choices) {
|
||||||
|
|||||||
Reference in New Issue
Block a user