Package mage.client.components.ext.dlg.impl

Examples of mage.client.components.ext.dlg.impl.StackDialog$CustomLabel


            //dlg.updateSize(params.rect.width, params.rect.height);
        } else if (dialogType == DialogManager.MTGDialogs.StackDialog) {
            //backgroundColor = new Color(0, 255, 255, 60);
            backgroundColor = new Color(0, 0, 0, 50);
            alpha = 0;
            StackDialog dlg = new StackDialog(params);
            add(dlg);
            dlg.setLocation(X_OFFSET + 10, Y_OFFSET + 10);
            //int width = Math.min(params.rect.width - 80, 600);
            int width = params.rect.width;
            int height = params.rect.height - 80;
            dlg.updateSize(width, height);
        }
        /*
        else if (dialogType == DialogManager.MTGDialogs.CombatDialog) {
            backgroundColor = new Color(0, 0, 0, 60);
            alpha = 0;
            CombatDialog dlg = new CombatDialog(params);
            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.ChoiceDialog) {

            //backgroundColor = new Color(200, 200, 172, 120);
            //backgroundColor = new Color(180, 150, 200, 120);
            //backgroundColor = new Color(0, 255, 0, 60);

            //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

TOP

Related Classes of mage.client.components.ext.dlg.impl.StackDialog$CustomLabel

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.