Examples of HUD


Examples of Ocarina2D.Objects.HUD

        }};
        starterLevel.addActor(sign);
       

        //Create HUD
        HUD hud = new HUD();
        starterLevel.addActor(hud);

        PauseDetect pauseDetect = new PauseDetect();
        starterLevel.addActor(pauseDetect);
       
View Full Code Here

Examples of com.pointcliki.dizgruntled.hud.HUD

        return Minion.CONTINUE;
      }
    });
   
    // HUD
    fHud = new HUD();
    addChild(fHud);
   
    timeManager().start();
  }
View Full Code Here

Examples of cz.cube.mtheory.hud.Hud

        display.getRenderer().setBackgroundColor(ColorRGBA.black);

        Node nodeRandomObjects = Tool.makeRandomEnviromentObjects(new Vector3f(0, 0, -500), 3000, 5000, true);
        rootNode.attachChild(nodeRandomObjects);

        hud = new Hud();
        SceneMonitor.getMonitor().registerNode(hud, "HUD");

        AbsoluteMouse am = new AbsoluteMouse("am", DisplaySystem.getDisplaySystem().getWidth(), DisplaySystem.getDisplaySystem().getHeight());
        am.setRenderState(Tool.createUsualTS(HudTextures.MOUSE_CURSOR));
        am.setRenderState(Tool.createUsualBS());
View Full Code Here

Examples of hud.HUD

   
    public World() {
        setDepthTest(DepthTest.ENABLE);
        gameTransition = new GameTransition(this);
        gameTransition.play();
        hud= new HUD(this);
        submitScorePane= new SubmitScorePane();
        submitScorePane.setTranslateY(300);
        highScoresPane= new HighScoresPane();
        highScoresPane.setTranslateY(300);
        clouds = new Clouds(this);
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUD

    public void showFPSMeter(boolean visible) {
        if (visible) {
            if (chart == null) {
                // display FPS meter
                HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");

                // create fps Swing control
                chart = new Chart(BUNDLE.getString("fps:"));
                chart.setSampleSize(200);
                chart.setMaxValue(desiredFrameRate);
                chart.setPreferredSize(new Dimension(200, 34));

                // create HUD control panel
                fpsComponent = mainHUD.createComponent(chart);
                fpsComponent.setDecoratable(false);
                fpsComponent.setPreferredLocation(Layout.SOUTHEAST);

                // add HUD control panel to HUD
                mainHUD.addComponent(fpsComponent);

                removeFrameRateListener(frameRateListener);
                frameRateListener = addFrameRateListener(desiredFrameRate);
            }
        } else {
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUD

     * Creates the affordance HUD frame.
     *
     * NOTE: This method should NOT be called on the AWT Event Thread.
     */
    private void createHUD() {
        HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");

        // create affordances Swing control
        affordanceHUDPanel = new AffordanceHUDPanel();

        // create HUD control
        affordanceHUD = mainHUD.createComponent(affordanceHUDPanel);
        affordanceHUDPanel.setHUDComponent(affordanceHUD);
        affordanceHUD.setName(BUNDLE.getString("Edit_Object_None_Selected"));
        affordanceHUD.setPreferredLocation(Layout.SOUTH);
        affordanceHUD.addEventListener(new HUDEventListener() {
            public void HUDObjectChanged(HUDEvent event) {
                /**
                 * Handles when the affordance frame is closed
                 */
                if (event.getEventType() == HUDEventType.CLOSED) {
                    // Tell all of the affordances to remove themselves by
                    // posting an event to the input system as such. Also tell
                    // the affordance panel it has closed
                    affordanceHUDPanel.closed();
                    InputManager.inputManager().postEvent(new AffordanceRemoveEvent());
                }
            }
        });

        // add affordances HUD panel to main HUD
        mainHUD.addComponent(affordanceHUD);
    }
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUD

        labels.put(300, new JLabel("4.0"));
        labels.put(400, new JLabel("5.0"));
        sizeSlider.setLabelTable(labels);

        // Create the Details frame for later use.
        HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");
        positionHUDPanel = new PositionHUDPanel();
        positionHUD = mainHUD.createComponent(positionHUDPanel);
        positionHUD.setName("Details");
        positionHUD.setPreferredLocation(Layout.SOUTHEAST);

        // add affordances HUD panel to main HUD
        mainHUD.addComponent(positionHUD);

        // Listen for selections to update the HUD panel
        InputManager.inputManager().addGlobalEventListener(new SelectionListener());
    }
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUD

                // First create the asset meter frame
                assetMeterJPanel =
                        new AssetMeterJPanel(AssetMeterClientPlugin.this);

                // Now create the HUD component
                HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");
                assetMeterHUDComponent =
                        mainHUD.createComponent(assetMeterJPanel);
                assetMeterHUDComponent.setPreferredTransparency(0.0f);
                assetMeterHUDComponent.setPreferredLocation(Layout.SOUTHEAST);
                assetMeterHUDComponent.setName(
                        BUNDLE.getString("Downloading"));
                mainHUD.addComponent(assetMeterHUDComponent);
               
                assetMeterJPanel.register();
            }
        });
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUD

     */
    void handleAppExitted(final AppConventionalCellAppExittedMessage message) {
        String text = BUNDLE.getString("App_Exit");
        text = MessageFormat.format(text, message.getAppName(), message.getExitValue());
       
        HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");
        HUDMessage hudMessage = mainHUD.createMessage(text);
        hudMessage.setPreferredLocation(Layout.NORTHEAST);
        mainHUD.addComponent(hudMessage);
        hudMessage.setVisible(true);
        hudMessage.setVisible(false, 10000);
    }
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUD

                // First time we've seen an error for this model
                me = new ModelErrors(model);
                errorMap.put(model, me);

                // Notify the user via the HUD.
                HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");
                HUDMessage message = mainHUD.createMessage(java.util.ResourceBundle.getBundle("org/jdesktop/wonderland/modules/artimport/client/jme/resources/Bundle").getString("MODEL_LOADING_GENERATED_WARNINGS"), MESSAGE_TYPE.WARNING, BUTTONS.NONE);
                message.setPreferredLocation(Layout.NORTH);
                mainHUD.addComponent(message);
                message.setVisible(true);
                message.setVisible(false, 5000);
            }
            me.addError(level, msg);
        }
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.