Package cz.cube.mtheory.hud.component

Examples of cz.cube.mtheory.hud.component.HudQuad


    private Vector3f pivot;

    public SpeedBarNode() {
        super("speed_bar_node");

        sb = new HudQuad("speed_bar", new Vector3f(0, 0, 0), HudTextures.SPEED_BAR);

        throttle = new ProgressBar("speed_bar_throttle", new Vector3f(-0.5f, -11, 0), HudTextures.SPEED_BAR_THROTTLE, Orientation.NORTH);
        brake = new ProgressBar("speed_bar_brake", new Vector3f(-9f, -10, 0), HudTextures.SPEED_BAR_BRAKE, Orientation.SOUTH);

        attachChild(sb);
View Full Code Here


        setRenderState(zs);
        //lock();
    }

    private void initChildren() {
        centerCross = new HudQuad("middlecross", new Vector3f(width / 2, height / 2, 0), HudTextures.CENTER_CROSS);

        controlCrossNode = new ControlCrossNode();
        controlCrossNode.setPivot(new Vector3f(width - controlCrossNode.getWidth() / 2 - 20, controlCrossNode.getHeight() / 2 + 20, 0));

        speedBarNode = new SpeedBarNode();
View Full Code Here

    private Vector3f pivot;

    public ControlCrossNode() {
        super("control_cross_node");

        cc = new HudQuad("control_cross", new Vector3f(0, 0, 0), HudTextures.CONTROL_CROSS);
        strafe = new HudQuad("strafe", new Vector3f(25, 25, 0), HudTextures.STRAFE);
        north = new ProgressBar("control_cross_north", new Vector3f(-0.5f, 4, 0), HudTextures.CONTROL_CROSS_NORTH, Orientation.NORTH);
        east = new ProgressBar("control_cross_east", new Vector3f(4, 0, 0), HudTextures.CONTROL_CROSS_EAST, Orientation.EAST);
        south = new ProgressBar("control_cross_south", new Vector3f(-0.5f, -5, 0), HudTextures.CONTROL_CROSS_SOUTH, Orientation.SOUTH);
        west = new ProgressBar("control_cross_west", new Vector3f(-4, 0, 0), HudTextures.CONTROL_CROSS_WEST, Orientation.WEST);
View Full Code Here

TOP

Related Classes of cz.cube.mtheory.hud.component.HudQuad

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.