Examples of ChoiceDialog


Examples of mage.client.components.ext.dlg.impl.ChoiceDialog

            //backgroundColor = new Color(139, 46, 173, 20);
            backgroundColor = new Color(0, 0, 0, 110);
            //backgroundColor = new Color(139, 46, 173, 0);

            alpha = 0;
            ChoiceDialog dlg = new ChoiceDialog(params, "Choose");
            add(dlg);
            //GameManager.getManager().setCurrentChoiceDlg(dlg);
            dlg.setLocation(X_OFFSET + 10, Y_OFFSET + 10);
            dlg.updateSize(params.rect.width - 80, params.rect.height - 80);

        } else if (dialogType == DialogManager.MTGDialogs.GraveDialog) {

            backgroundColor = new Color(0, 0, 0, 110);

            alpha = 0;
            ChoiceDialog dlg = new ChoiceDialog(params, "Graveyard");
            add(dlg);
            dlg.setLocation(X_OFFSET + 10, Y_OFFSET + 10);
            dlg.updateSize(params.rect.width - 80, params.rect.height - 80);

        } else if (dialogType == DialogManager.MTGDialogs.ExileDialog) {

            backgroundColor = new Color(250, 250, 250, 50);

            alpha = 0;
            ChoiceDialog dlg = new ChoiceDialog(params, "Exile");
            add(dlg);
            dlg.setLocation(X_OFFSET + 10, Y_OFFSET + 10);
            dlg.updateSize(params.rect.width - 80, params.rect.height - 80);

        } else if (dialogType == DialogManager.MTGDialogs.EmblemsDialog) {

            backgroundColor = new Color(0, 0, 50, 110);

            alpha = 0;
            ChoiceDialog dlg = new ChoiceDialog(params, "Command Zone (Commander and Emblems)");
            add(dlg);
            dlg.setLocation(X_OFFSET + 10, Y_OFFSET + 10);
            dlg.updateSize(params.rect.width - 80, params.rect.height - 80);

        } /*else if (dialogType == DialogManager.MTGDialogs.GraveDialog) {
            backgroundColor = new Color(20, 20, 20, 120);
            alpha = 0;
            GraveDialog dlg = new GraveDialog(params);
View Full Code Here

Examples of megamek.client.ui.AWT.ChoiceDialog

                                    ce.getShortName(), doors * 2, bayNum });
                    for (int loop = 0; loop < names.length; loop++) {
                        names[loop] = currentFighters.elementAt(loop)
                                .getShortName();
                    }
                    ChoiceDialog choiceDialog = new ChoiceDialog(
                            clientgui.frame,
                            Messages
                                    .getString(
                                            "MovementDisplay.LaunchFighterDialog.title", new Object[] { //$NON-NLS-1$
                                            currentBay.getType(), bayNum }),
                            question, names);
                    choiceDialog.setVisible(true);
                    if (choiceDialog.getAnswer() == true) {
                        // load up the choices
                        int[] unitsLaunched = choiceDialog.getChoices();
                        for (int element : unitsLaunched) {
                            bayChoices.add(currentFighters.elementAt(element)
                                    .getId());
                        }
                        choices.put(i, bayChoices);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.