forked from External/mage
* Setting of mana automatic payment option is saved and restored now so persistent between games (fixes #1002).
This commit is contained in:
parent
3b9cb1dc6e
commit
a50447c84d
3 changed files with 11 additions and 1 deletions
|
|
@ -90,6 +90,7 @@ import mage.client.dialog.PickChoiceDialog;
|
|||
import mage.client.dialog.PickNumberDialog;
|
||||
import mage.client.dialog.PickPileDialog;
|
||||
import mage.client.dialog.PreferencesDialog;
|
||||
import static mage.client.dialog.PreferencesDialog.KEY_GAME_MANA_AUTOPAYMENT;
|
||||
import mage.client.dialog.ShowCardsDialog;
|
||||
import mage.client.game.FeedbackPanel.FeedbackMode;
|
||||
import mage.client.plugins.adapters.MageActionCallback;
|
||||
|
|
@ -382,7 +383,8 @@ public final class GamePanel extends javax.swing.JPanel {
|
|||
this.gameChatPanel.connect(session.getGameChatId(gameId));
|
||||
if (!session.joinGame(gameId)) {
|
||||
removeGame();
|
||||
} else {
|
||||
} else {
|
||||
// play start sound
|
||||
AudioManager.playYourGameStarted();
|
||||
}
|
||||
}
|
||||
|
|
@ -456,6 +458,9 @@ public final class GamePanel extends javax.swing.JPanel {
|
|||
|
||||
public synchronized void init(GameView game) {
|
||||
addPlayers(game);
|
||||
// default menu states
|
||||
setMenuStates(PreferencesDialog.getCachedValue(KEY_GAME_MANA_AUTOPAYMENT, "true").equals("true"));
|
||||
|
||||
updateGame(game);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue