Package mage.client.dialog

Examples of mage.client.dialog.PickChoiceDialog


    else
      session.sendPlayerInteger(gameId, MageFrame.getPickNumberDialog().getAmount());
  }

  public void getChoice(String message, String[] choices) {
    PickChoiceDialog pickChoice = new PickChoiceDialog();
    pickChoice.showDialog(message, choices);
    session.sendPlayerString(gameId, pickChoice.getChoice());
  }
View Full Code Here


        }
    }

    public void getChoice(Choice choice, UUID objectId) {
        hideAll();
        PickChoiceDialog pickChoice = new PickChoiceDialog();
        pickChoice.showDialog(choice, objectId);
        if (choice.isKeyChoice()) {
            if (pickChoice.isAutoSelect()) {
                session.sendPlayerString(gameId, "#" + choice.getChoiceKey());
            } else {
                session.sendPlayerString(gameId, choice.getChoiceKey());
            }
        } else {
            session.sendPlayerString(gameId, choice.getChoice());
        }
        pickChoice.removeDialog();
    }
View Full Code Here

TOP

Related Classes of mage.client.dialog.PickChoiceDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.