mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
big client update - moved Session to Mage.Common project, this will allow other clients to reuse connection logic
This commit is contained in:
parent
b9f4f7abf4
commit
8b1c463d35
80 changed files with 417 additions and 610 deletions
|
|
@ -46,7 +46,7 @@ import javax.swing.SpinnerNumberModel;
|
|||
import mage.Constants.MultiplayerAttackOption;
|
||||
import mage.Constants.RangeOfInfluence;
|
||||
import mage.client.components.MageComponents;
|
||||
import mage.client.remote.Session;
|
||||
import mage.remote.Session;
|
||||
import mage.client.table.TablePlayerPanel;
|
||||
import mage.client.util.Event;
|
||||
import mage.client.util.Listener;
|
||||
|
|
@ -410,7 +410,7 @@ public class NewTableDialog extends MageDialog {
|
|||
|
||||
public void showDialog(UUID roomId) {
|
||||
session = MageFrame.getSession();
|
||||
session.getUI().addButton(MageComponents.NEW_TABLE_OK_BUTTON, btnOK);
|
||||
MageFrame.getUI().addButton(MageComponents.NEW_TABLE_OK_BUTTON, btnOK);
|
||||
this.player1Panel.setPlayerName(session.getUserName());
|
||||
cbGameType.setModel(new DefaultComboBoxModel(session.getGameTypes().toArray()));
|
||||
cbDeckType.setModel(new DefaultComboBoxModel(session.getDeckTypes()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue