Package org.xith3d.ui.hud.widgets

Examples of org.xith3d.ui.hud.widgets.Label


        foods = new ArrayList<Food>();
       
        /*
         * UI
         */
        status = new Label(290f, 100f);
        status.setLocation(480f, 130f);
        status.setBackgroundColor(new Colorf(1f, 1f, 1f, .5f));
        status.setFontColor(Colorf.BLACK);
        status.setZIndex(2);
       
View Full Code Here


        /*
         * HUD
         */
        hud = new HUD(canvas, 800f);
        env.addHUD(hud);
        hud.getContentPane().addWidget(new Label(100f, 100f, "Terrain Editor", HUDFont.getFont("Arial", HUDFont.BOLD, 32), TextAlignment.TOP_CENTER), canvas.getWidth() / 2f - 100f / 2f, 0f, 1);
        label = new Label(200f, 600f,
                "Ctrl + O = Open a terrain\n" +
                "Ctrl + W = Save the terrain\n" +
                "Ctrl + Q = Quit\n" +
                "Middle button + Drag = rotate the camera\n" +
                "Mouse wheel = Zoom\n" +
View Full Code Here

       
        saveButton = new Button(600, 40, Messages.getString("ParametersAsker.2")); //$NON-NLS-1$
        panel.addWidget(saveButton, 10, 70);
        saveButton.addButtonListener(this);
       
        panel.addWidget(new Label(280, 40, Messages.getString("ParametersAsker.3")), 10, 120); //$NON-NLS-1$
        initialDigibotsCount = new TextField(300, 40);
        panel.addWidget(initialDigibotsCount, 290, 120);
       
        panel.addWidget(new Label(280, 40, Messages.getString("ParametersAsker.4")), 10, 170); //$NON-NLS-1$
        foodFrequency = new TextField(300, 40);
        panel.addWidget(foodFrequency, 290, 170);
       
        panel.addWidget(new Label(280, 40, Messages.getString("ParametersAsker.5")), 10, 220); //$NON-NLS-1$
        terrainFile = new TextField(300, 40);
        panel.addWidget(terrainFile, 290, 220);
        loadTerrainButton = new Button(120, 40, Messages.getString("ParametersAsker.6")); //$NON-NLS-1$
        panel.addWidget(loadTerrainButton, 610, 220);
        loadTerrainButton.addButtonListener(this);
View Full Code Here

        Panel panel = new Panel(300f, 180f, new Colorf(1f, 1f, 1f, .2f));
        frame = new Frame(panel, "Digibot Information");
        frame.setDefaultCloseOperation(null);
        frame.setCloseButtonVisible(false);
       
        genomeLabel = new Label(panel.getWidth(), panel.getHeight());
        panel.addWidget(genomeLabel, 6f, 6f);
       
        panel.addWidget(new Label(panel.getResX() - 20f, 30f, "Food level :"), 6f, 71f);
        foodBar = new ProgressBar(panel.getResX() - 20f, 30f);
        foodBar.setMinValue(0);
        foodBar.setMaxValue(100);
        panel.addWidget(foodBar, 6f, 92f);
       
        action = new Label(panel.getResX() - 20f, 30f, "Action :");
        panel.addWidget(action, 6f, 121f);
       
        final Button button = new Button(100f, 30f, "Tuer");
        button.addButtonListener(new ButtonListener() {
            public void onButtonClicked(AbstractButton clickedButton, Object userObject) {
View Full Code Here

TOP

Related Classes of org.xith3d.ui.hud.widgets.Label

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.