Package csa.gui

Examples of csa.gui.ModalPanel$JGlassPanel


    }


    public static void showQuestStartInfo(QuestDefinitionData quest)
    {
        final ModalPanel panel = new ModalPanel(Configuration.getConfiguration().getMainFrame().getRootPane(),
        Configuration.getConfiguration().getMainFrame());
        panel.setLayout(new BorderLayout());
        QuesttroPanel questInfo = new QuesttroPanel();
        questInfo.setTitle(quest.mName);
        questInfo.setText(quest.getDescription());
        AudioPlayable a1 = null;
        AudioPlayable a2 = null;
        if (quest.getUseIntroBackImage())
            questInfo.setImage(quest.getIntroImage());
        if (quest.getUseIntroSound1())
            a1 = Audio.play(quest.getIntroSound1());
        if (quest.getUseIntroSound2())
            a2 = Audio.play(quest.getIntroSound2());
        questInfo.setBounds(0,0,700,600);
        questInfo.setStartTextX(quest.getIntroTextXStart());
        panel.add(questInfo, BorderLayout.CENTER);
        panel.setBounds(150,60, 700, 600);

       
        panel.setVisible(true);
        if (a1 != null) a1.deinit();
        if (a2 != null) a2.deinit();
    }
View Full Code Here


        if (a2 != null) a2.deinit();
    }

    public static void showQuestEndInfo(QuestDefinitionData quest)
    {
        final ModalPanel panel = new ModalPanel(Configuration.getConfiguration().getMainFrame().getRootPane(),
        Configuration.getConfiguration().getMainFrame());
        panel.setLayout(new BorderLayout());
        QuesttroPanel questInfo = new QuesttroPanel();
        questInfo.setTitle(quest.mName);
        questInfo.setText(quest.getFinishText());
        if (quest.getUseExtroBackImage())
            questInfo.setImage(quest.getExtroImage());
        if (quest.getUseExtroSound1())
            Audio.play(quest.getExtroSound1());
        if (quest.getUseExtroSound2())
            Audio.play(quest.getExtroSound2());
        questInfo.setBounds(0,0,700,600);
        panel.add(questInfo, BorderLayout.CENTER);
        questInfo.setStartTextX(quest.getExtroTextXStart());
        panel.setBounds(150,60, 700, 600);
        panel.setVisible(true);
    }
View Full Code Here

TOP

Related Classes of csa.gui.ModalPanel$JGlassPanel

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.