Package classes

Examples of classes.SyberiadaMenu


        final SyberiadaPanel sPanel2 = new SyberiadaPanel();
       
        final SyberiadaImage intro = new SyberiadaImage("images/intro.png", 0.0f);
        final SyberiadaImage background = new SyberiadaImage("images/background.png", 0.85f);
        final SyberiadaImage tlo = new SyberiadaImage("images/tlo.png", 1f);
        final SyberiadaMenu menu = SyberiadaMenu.getSyberiadaMenu();
        this.addKeyListener(menu);
       
        //intro i deski
        this.setLayout(null);
        sPanel.setBackground(Color.black);
        sPanel.add(intro);
        sPanel.setLayout(null);
        intro.setBounds(0, 0, screenW, screenH);
        intro.scale(screenW, screenH);
        background.setBounds(0, 0, screenW, screenH);
        background.scale(screenW, screenH);
       
        sPanel2.setLayout(null);
        sPanel2.add(menu);
        sPanel2.add(tlo);
        sPanel2.setBackground(Color.black);
       
        //ustawia kartke
        double skala = (double) 1200/screenH;
        int width = (int)((int)1050/skala);
        int x = (screenW-width)/2;
       
        sPanel2.setBounds(x, 0, width, screenH);
        menu.setBounds(0, 50, width, screenH-100);
        tlo.setBounds(0, 0, width, screenH);
        tlo.scale(width, screenH);
       
        intro.appear(1f, 5000, 1500); //5000 1000
        intro.whenAppearDone(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                sPanel.add(sPanel2);
                sPanel2.revalidate();
                sPanel.add(background);
                intro.disappear(0f, 1000, 3000); //1000 3000
            }
        });
        intro.whenDisappearDone(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                menu.init();
                menu.revalidate();
                menu.repaint();
            }
        });
        this.add(sPanel);
        this.validate();
        this.repaint();
View Full Code Here


        final SyberiadaPanel sPanel2 = new SyberiadaPanel();
       
        final SyberiadaImage intro = new SyberiadaImage("images/intro.png", 0.0f);
        final SyberiadaImage background = new SyberiadaImage("images/background.png", 0.85f);
        final SyberiadaImage tlo = new SyberiadaImage("images/tlo.png", 1f);
        final SyberiadaMenu menu = SyberiadaMenu.getSyberiadaMenu();
        this.addKeyListener(menu);
       
        //intro i deski
        this.setLayout(null);
        sPanel.setBackground(Color.black);
        sPanel.add(intro);
        sPanel.setLayout(null);
        intro.setBounds(0, 0, screenW, screenH);
        intro.scale(screenW, screenH);
        background.setBounds(0, 0, screenW, screenH);
        background.scale(screenW, screenH);
       
        sPanel2.setLayout(null);
        sPanel2.add(menu);
        sPanel2.add(tlo);
        sPanel2.setBackground(Color.black);
       
        //ustawia kartke
        double skala = (double) 1200/screenH;
        int width = (int)((int)1050/skala);
        int x = (screenW-width)/2;
       
        sPanel2.setBounds(x, 0, width, screenH);
        menu.setBounds(0, 50, width, screenH-100);
        tlo.setBounds(0, 0, width, screenH);
        tlo.scale(width, screenH);
       
        intro.appear(1f, 5000, 1500); //5000 1000
        intro.whenAppearDone(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                sPanel.add(sPanel2);
                sPanel2.revalidate();
                sPanel.add(background);
                intro.disappear(0f, 1000, 3000); //1000 3000
            }
        });
        intro.whenDisappearDone(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                menu.init();
                menu.revalidate();
                menu.repaint();
            }
        });
        this.add(sPanel);
        this.revalidate();
        this.repaint();
View Full Code Here

TOP

Related Classes of classes.SyberiadaMenu

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.