Example usage for com.badlogic.gdx.graphics Color BLACK

List of usage examples for com.badlogic.gdx.graphics Color BLACK

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics Color BLACK.

Prototype

Color BLACK

To view the source code for com.badlogic.gdx.graphics Color BLACK.

Click Source Link

Usage

From source file:com.gmail.bleedobsidian.logicbuilder.utils.InvisibleButton.java

License:Open Source License

@Override
public void render(SpriteBatch spriteBatch) {
    if (this.shouldRenderBorder) {
        this.shapeRenderer.setProjectionMatrix(this.camera.combined);

        this.shapeRenderer.begin(ShapeType.Line);
        this.shapeRenderer.setColor(Color.BLACK);
        this.shapeRenderer.rect(this.locationX, this.locationY, this.sizeX, this.sizeY);
        this.shapeRenderer.end();
    }/*from w w w .jav a 2s  .  c  o m*/
}

From source file:com.hindelid.ld.thirtyfour.HUDDisplay.java

License:Apache License

public boolean renderGameOver(int aPoints) {
    if (aPoints > mHighScore) {
        mHighScore = aPoints;//www  .j a va  2s. co m
    }
    mHUDCamera.update();
    mBatch.setProjectionMatrix(mHUDCamera.combined);
    if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {
        mCounter = 49;
    }
    if (mCounter < 50) {
        mCounter--;
    }
    mShapeRenderer.begin(ShapeRenderer.ShapeType.Filled);
    mShapeRenderer.setColor(Color.BLACK);
    mShapeRenderer.rect(-2f, 0f, 130f, 40f);
    mShapeRenderer.end();

    mBatch.begin();
    if (mCounter >= 0) {
        mFont.getData().setScale(4f + 10f / (mCounter + 1f));
    } else {
        mFont.getData().setScale(4f);
    }
    mFont.draw(mBatch, "game over", 60f, 240f);
    mFont.getData().setScale(2f);
    mFont.draw(mBatch, "points:" + aPoints, 120f, 160f);
    mFont.getData().setScale(1f);
    mFont.setColor(Color.OLIVE);
    mFont.draw(mBatch, "made by chrizdekok", 0f, 40f);
    mFont.draw(mBatch, "www.hindelid.com", 0f, 20f);
    mFont.setColor(Color.RED);
    mBatch.end();

    return mCounter <= 0;
}

From source file:com.holotrash.lazerdeath2.lazerdeath2.java

License:Open Source License

@Override
public void render() {
    delta = Gdx.graphics.getDeltaTime();
    Gdx.gl.glClearColor(0, 0, 0, 1);/*from w  w  w  .  j av a  2 s  .c om*/
    Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA);
    Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);

    if (scrollingUp && camera.position.y < mapData.scrollUpMax) {
        camera.translate(0, SCROLLING_MULTIPLIER * delta);
    }
    if (scrollingDown && camera.position.y > mapData.scrollDownMax) {
        camera.translate(0, (0 - SCROLLING_MULTIPLIER) * delta);
    }
    if (scrollingLeft && camera.position.x > mapData.scrollLeftMax) {
        camera.translate((0 - SCROLLING_MULTIPLIER) * delta, 0);
    }
    if (scrollingRight && camera.position.x < mapData.scrollRightMax) {
        camera.translate(SCROLLING_MULTIPLIER * delta, 0);
    }
    camera.update();
    tiledMapRenderer.setView(camera);
    tiledMapRenderer.render();
    tiledMapRenderer.getBatch().setProjectionMatrix(camera.combined);

    for (Enemy enemy : enemies) {
        if ((selectedUnit == null || !enemy.name().equals(selectedUnit.name()))
                && enemy.position().equals(lastClickedCell)) {
            selectedUnit = enemy;
            System.out.println("selectedUnit equals enemy: " + enemy.name());
        }

    }

    for (Dude dude : dudes) {
        if ((selectedUnit == null || !dude.name().equals(selectedUnit.name()))
                && dude.position().equals(lastClickedCell)) {
            selectedUnit = dude;
            System.out.println("selectedUnit equals dude: " + dude.name());
        }
    }

    //change states of sprites based on dude/enemy flags here
    for (int i = 0; i < dudes.size(); i++) {
        if (!this.playerAttacking && dudes.get(i).position().equals(lastClickedCell) && gm.dudesTurn()) {
            makeRangeHighlight(dudes.get(i));
        }
    }
    for (int i = 0; i < enemies.size(); i++) {
        if (!this.playerAttacking && enemies.get(i).position().equals(lastClickedCell) && gm.dudesTurn()) {
            makeRangeHighlight(enemies.get(i));
        }
    }

    spriteBatch.begin();

    //draw interacted tiles
    for (InteractedTile it : interactedTiles) {
        spriteBatch.draw(it.sprite, 128 * it.position.x(), 128 * it.position.y());
    }
    //draw items

    for (Coord coord : gm.itemWrangler.items.keySet()) {
        tempItem = gm.itemWrangler.items.get(coord);
        spriteBatch.draw(tempItem.tileSprite(), 128 * coord.x(), 128 * coord.y());
    }

    //draw dudes and enemies
    for (int i = 0; i < dudes.size(); i++) {
        spriteBatch.draw(dudes.get(i).sprite(), 128 * (dudes.get(i).position().x()),
                128 * (dudes.get(i).position().y()));

    }
    for (int i = 0; i < enemies.size(); i++) {
        spriteBatch.draw(enemies.get(i).sprite(), 128 * (enemies.get(i).position().x()),
                128 * (enemies.get(i).position().y()));
    }

    //draw cursor
    if (gm.dudesTurn() && selectedUnit != null) {
        spriteBatch.draw(this.unitCursor, 128 * selectedUnit.position().x(), 128 * selectedUnit.position().y());
    }

    if (gm.dudesTurn()) {
        //spriteBatch.setColor(hlColor);
        for (Coord c : highlightTiles.keySet()) {
            spriteBatch.setColor(highlightTiles.get(c).color);
            spriteBatch.draw(highlightTiles.get(c).sprite, 128 * highlightTiles.get(c).position.x(),
                    128 * highlightTiles.get(c).position.y());
        }
        spriteBatch.setColor(Color.WHITE);
    }

    // get a screen-relative point of reference for drawing ui elements
    tempV3 = new Vector3(0, 768, 0);
    tempV3 = camera.unproject(tempV3);

    // draw left side ui buttons
    spriteBatch.draw(this.endTurnButton, tempV3.x + 10, tempV3.y + 625);
    spriteBatch.draw(this.attackButton, tempV3.x + 10, tempV3.y + 500);
    spriteBatch.draw(this.menuButton, tempV3.x + 10, tempV3.y + 375);
    spriteBatch.draw(this.exitGameButton, tempV3.x + 10, tempV3.y + 250);

    // draw left status dialog stuff
    if (this.selectedUnit != null) {
        this.glamourShot = selectedUnit.glamourShot();
        this.currentUnitStats = selectedUnit.toStringz();
        // change left status box text to relevant unit stats:

    }

    spriteBatch.draw(this.leftStatusBox, tempV3.x, tempV3.y);
    spriteBatch.draw(this.rightStatusBox, tempV3.x + 768, tempV3.y - 64);
    spriteBatch.draw(this.glamourShot, tempV3.x, tempV3.y);
    uiFont.setColor(Color.BLACK);
    for (int i = 0; i < 5; i++) {
        if (currentUnitStats.size() > i)
            uiFont.draw(spriteBatch, currentUnitStats.get(i), tempV3.x + 266, tempV3.y + 182 - (i * 32));
    }

    //draw right side ui status console text
    consoleIterator = uiConsole.iterator();
    for (int i = 0; i < 5; i++) {
        if (consoleIterator.hasNext())
            uiFont.draw(spriteBatch, consoleIterator.next(), tempV3.x + 832, tempV3.y + 32 + (i * 32));
    }
    //draw right side ui status console fade out
    spriteBatch.draw(this.rightStatusBoxFade, tempV3.x + 768, tempV3.y - 64);

    if (dialogBox.enabled()) {
        // draw dialog box
        tempV3 = new Vector3(286, 700, 0);
        tempV3 = camera.unproject(tempV3);
        spriteBatch.draw(dialogBox.background(), tempV3.x, tempV3.y);
        tempV3 = new Vector3(384, 635, 0);
        tempV3 = camera.unproject(tempV3);
        spriteBatch.draw(dialogBox.button(), tempV3.x, tempV3.y);
        tempV3 = new Vector3(725, 635, 0);
        tempV3 = camera.unproject(tempV3);
        spriteBatch.draw(dialogBox.button(), tempV3.x, tempV3.y);
        // draw dialog text
        int numLines = dialogBox.currentMessage().size();
        if (numLines > 6)
            numLines = 6;
        tempV3 = new Vector3(384, 150, 0);
        tempV3 = camera.unproject(tempV3);
        for (int i = 0; i < numLines; i++) {
            //dialogFont.draw(spriteBatch, dialogLines.get(i), 384, 625 - (i*50));
            dialogFont.draw(spriteBatch, dialogBox.currentMessage().get(i), tempV3.x, tempV3.y - (i * 50));
        }
        tempV3 = new Vector3(565, 540, 0);
        tempV3 = camera.unproject(tempV3);
        temp = dialogBox.btn1();
        layout.setText(dialogFont, temp);
        dialogFont.draw(spriteBatch, temp, tempV3.x - layout.width, tempV3.y - layout.height);
        tempV3 = new Vector3(965, 540, 0);
        tempV3 = camera.unproject(tempV3);
        temp = dialogBox.btn2();
        layout.setText(dialogFont, temp);
        dialogFont.draw(spriteBatch, temp, tempV3.x - layout.width, tempV3.y - layout.height);
    } else if (this.menuDialog.enabled()) {
        // show menuDialog
        this.screenOrigin = new Vector3(0, 768, 0);
        this.screenOrigin = camera.unproject(this.screenOrigin);
        spriteBatch.draw(menuDialog.background(), screenOrigin.x + 384, screenOrigin.y + 64);
        spriteBatch.draw(menuDialog.buttons(), screenOrigin.x + 384, screenOrigin.y + 64);
        spriteBatch.draw(menuDialog.tabArrows(), screenOrigin.x + 384, screenOrigin.y + 64);
        // show menuDialog components
        for (MenuComponent mc : menuDialog.menuComponents()) {
            if (!Coord.coordsEqual(mc.position, GameMaster.nullCoord)) {
                spriteBatch.draw(mc.sprite, screenOrigin.x + mc.position.x(), screenOrigin.y + mc.position.y());
            }
        }
        // show menu labels
        for (MenuLabel ml : menuDialog.menuLabels()) {
            if (!Coord.coordsEqual(ml.position, GameMaster.nullCoord)) {
                dialogFont.draw(spriteBatch, ml.text, screenOrigin.x + ml.position.x(),
                        screenOrigin.y + ml.position.y());
            }
        }

    } else if (this.ynDialog.enabled()) {
        //show ynDialog
        if (!ynDialog.resultRecorded()) {
            this.screenOrigin = new Vector3(0, 768, 0);
            this.screenOrigin = camera.unproject(this.screenOrigin);
            spriteBatch.draw(ynDialog.background(), screenOrigin.x + 500, screenOrigin.y + 300);
            spriteBatch.draw(ynDialog.buttons(), screenOrigin.x + 500, screenOrigin.y + 300);
            dialogFont.draw(spriteBatch, ynDialog.line1(), screenOrigin.x + 535, screenOrigin.y + 525);
            dialogFont.draw(spriteBatch, ynDialog.line2(), screenOrigin.x + 535, screenOrigin.y + 490);
            dialogFont.draw(spriteBatch, ynDialog.line3(), screenOrigin.x + 535, screenOrigin.y + 455);
            dialogFont.draw(spriteBatch, ynDialog.choice1(), screenOrigin.x + 600, screenOrigin.y + 380);
            dialogFont.draw(spriteBatch, ynDialog.choice2(), screenOrigin.x + 850, screenOrigin.y + 380);
        } else {
            if (this.ynDialog.type() == BooleanDialogType.EXIT_GAME) {
                if (ynDialog.result()) {
                    Gdx.app.exit();
                } else {
                    ynDialog.disable();
                }
            }
        }
    } else {

        //Text overlay? dudes turn? enemies turn?
        tempV3 = new Vector3(0, 768, 0);
        tempV3 = camera.unproject(tempV3);
        if (gm.dudesTurn() && this.overlayFadeCounter > 0) {
            spriteBatch.draw(this.dudesTurnSprite, tempV3.x + 350, tempV3.y + 275);
            overlayFadeCounter--;
        } else if (gm.enemiesTurn() && this.overlayFadeCounter > 0) {
            spriteBatch.draw(this.enemiesTurnSprite, tempV3.x + 350, tempV3.y + 275);
            overlayFadeCounter--;
        }

    }
    spriteBatch.end();
    if (!dialogBox.enabled()) {
        gm.clockTick();
        gm.advanceGame();
    }

}

From source file:com.idp.engine.ui.graphics.base.Navbar.java

public Navbar() {

    // todo: read style from config

    setName("navbar");
    this.contentColor = Color.BLACK;
    this.iconSize = App.dp2px(40);
    float h = App.dp2px(56);

    setSize(Gdx.graphics.getWidth(), h);
    setBorder(0, 0, App.dp2px(1), 0);/*from w ww . ja v a 2s . c  o m*/
    setBorderColor(Color.BLACK);
    setBackgroundColor(Color.CLEAR);
    float padleft = App.dp2px(8);
    float padright = App.dp2px(8);

    textGroup = new Group();
    textGroup.setSize(Gdx.graphics.getWidth() - App.dp2px(168), App.dp2px(24));

    this.text = new com.idp.engine.ui.graphics.actors.Text("", App.getResources().getLabelStyle("navbar"));
    text.setWidth(Gdx.graphics.getWidth() - App.dp2px(168));
    text.setHeight(App.dp2px(24));
    text.setAlignment(Align.center);

    textGroup.addActor(text);
    text.setY((textGroup.getHeight() - text.getHeight()) / 2);
    text.setX((textGroup.getWidth() - text.getWidth()) / 2);

    this.leftIcons = new Group();
    leftIcons.setSize(iconSize, iconSize);
    leftIcons.setX(padleft);
    leftIcons.setY((h - iconSize) / 2);

    this.rightIcons = new Group();
    rightIcons.setSize(iconSize, iconSize);
    rightIcons.setX(getWidth() - padright - iconSize);
    rightIcons.setY((h - iconSize) / 2);

    addActor(leftIcons);
    addActor(textGroup);
    addActor(rightIcons);

    textGroup.setY((getHeight() - text.getHeight()) / 2);
    textGroup.setX((getWidth() - textGroup.getWidth()) / 2);
}

From source file:com.idp.engine.ui.graphics.base.Navbar.java

private void addChevron() {
    com.idp.engine.ui.graphics.actors.ImageActor i = new com.idp.engine.ui.graphics.actors.ImageActor(
            App.getResources().getIcon("chevron"));
    i.setColor(Color.BLACK);
    i.setSize(App.dp2px(12), App.dp2px(12));
    i.setName("chevron");
    textGroup.addActor(i);//  w w w  .j ava2s. c om
    i.setX(text.getX() + (text.getWidth() + text.getGlyphLayout().width) * 0.5f + App.dp2px(8));
    i.setY((textGroup.getHeight() - i.getHeight()) / 2);
}

From source file:com.ixeption.libgdx.transitions.FadingGame.java

License:Apache License

@Override
public void create() {
    this.currentScreenFBO = new FrameBuffer(Pixmap.Format.RGBA8888, Gdx.graphics.getWidth(),
            Gdx.graphics.getHeight(), false);
    this.nextScreenFBO = new FrameBuffer(Pixmap.Format.RGBA8888, Gdx.graphics.getWidth(),
            Gdx.graphics.getHeight(), false);
    batch = new SpriteBatch();
    colorFadeInTransition = new ColorFadeTransition(Color.BLACK, Interpolation.sine);
}

From source file:com.johnogel.astrobros.levels.BonusLevel.java

@Override
public void initialize() {

    this.initializeWorld();

    this.ray_handler = mngr.getRayHandler();
    this.world = mngr.getWorld();
    this.camera = mngr.getCamera();

    width = mngr.getWidth();/*from w  ww  . j  a  v  a2 s. co m*/
    height = mngr.getHeight();

    //this.ray_handler.dispose();

    //this.free_bros.add(new Player(world, camera, 1));
    //this.free_bros.add(new Player(world, camera, 120));
    this.free_bros.add(new Player(world, camera, 100));
    this.free_bros.add(new Player(world, camera, 130));
    this.free_bros.add(new Player(world, camera, 160));
    this.free_bros.add(new Player(world, camera, 190));
    this.free_bros.add(new Player(world, camera, 200));
    //this.free_bros.add(new Player(world, camera, 130));
    //this.free_bros.add(new Player(world, camera, 160));
    //this.free_bros.add(new Player(world, camera, 200));

    //world.createJoint(joint_def);

    this.initializePlayer();
    this.initializeArrays();
    this.initializeContactListener();

    //adds sun to suns array without storing locally
    new Sun(this, suns, 8000, Color.BLACK, 1000, width / 2, height / 2);

    suns.get(0).initializeTexture(texture_handler, TextureHandler.BLACK_HOLE);

    this.setOrbits();

    this.initializeBoundaries();
    this.initializeBackground();
    this.initializeLocators();

}

From source file:com.johnogel.astrobros.managers.screens.AwardScreen.java

@Override
public void initialize() {
    initializeWorld();//w  w w . j  a va 2 s  .co m
    updateReferences();
    String s = "" + mngr.getPreviousScore();
    //middle_text = "YOU SAVED " + s + " BROS";
    System.out.println("score: " + s);

    SoundPlayer sp = mngr.getSuperManager().getSoundPlayer();
    sp.setSong(SoundPlayer.AWARDED);
    sp.setLooping(true);
    sp.setVolume(.9f);
    sp.playSong();

    int total_score = mngr.getTotalScore();
    int top_score = mngr.getTopScore();
    //AnimatedSprite sp;

    //adding moving animation
    Color color;

    if (total_score == top_score) {
        animation = new Animation(FPS,
                mngr.getTextureHandler().getTextureAtlas(TextureHandler.PLATINUM).getRegions());
        middle_text = "PERFECT!";
        bottom_text = "BONUS LEVEL! ONE LIFE!";
        bonus_text = "YOU MUST BE FLAWLESS";
        color = Color.WHITE;
    } else if (mngr.getTotalScore() > mngr.getTopScore() - 2) {
        animation = new Animation(FPS,
                mngr.getTextureHandler().getTextureAtlas(TextureHandler.GOLD).getRegions());
        middle_text = "AWESOME!";
        bottom_text = "TRY FOR PLATINUM!";
        color = Color.GOLD;
    } else if (mngr.getTotalScore() > mngr.getTopScore() - 3) {
        animation = new Animation(FPS,
                mngr.getTextureHandler().getTextureAtlas(TextureHandler.SILVER).getRegions());
        middle_text = "GREAT!";
        bottom_text = "TRY FOR GOLD!";
        color = Color.SLATE;
    } else if (mngr.getTotalScore() > mngr.getTopScore() - 5) {
        animation = new Animation(FPS,
                mngr.getTextureHandler().getTextureAtlas(TextureHandler.BRONZE).getRegions());
        middle_text = "GOOD!";
        bottom_text = "TRY FOR SILVER!";
        color = Color.TAN;
    } else {
        animation = new Animation(FPS,
                mngr.getTextureHandler().getTextureAtlas(TextureHandler.BRONZE).getRegions());
        middle_text = "";
        bottom_text = "WHAT!";
        color = Color.BLACK;
    }

    new PointLight(ray_handler, 5000, color, 500, camera.viewportWidth / 2, -300);
    new PointLight(ray_handler, 5000, Color.BLACK, 500, camera.viewportWidth / 2, 300);
    new PointLight(ray_handler, 5000, Color.BLACK, 500, -camera.viewportWidth / 2, -300);
    new PointLight(ray_handler, 5000, color, 500, -camera.viewportWidth / 2, 300);
    layout_middle = new GlyphLayout(font, middle_text);
    layout_bottom = new GlyphLayout(font, bottom_text);
    sprite = new AnimatedSprite(animation);

    animation.setPlayMode(Animation.PlayMode.LOOP);
    sprite.setTime(0);
    sprite.play();

}

From source file:com.johnogel.astrobros.managers.screens.BonusAwardScreen.java

@Override
public void initialize() {
    initializeWorld();//from   w ww.ja  va  2s  .c  om
    updateReferences();
    String s = "" + mngr.getPreviousScore();
    //middle_text = "YOU SAVED " + s + " BROS";
    System.out.println("score: " + s);

    SoundPlayer sp = mngr.getSuperManager().getSoundPlayer();
    sp.setSong(SoundPlayer.AWARDED);
    sp.setLooping(true);
    sp.setVolume(.9f);
    sp.playSong();

    int total_score = mngr.getTotalScore();
    int top_score = mngr.getTopScore();
    //AnimatedSprite sp;

    //adding moving animation
    Color color;
    animation = new Animation(FPS, mngr.getTextureHandler().getTextureAtlas(TextureHandler.BLACK).getRegions());
    middle_text = "YOU ROCK";
    bottom_text = "SERIOUSLY!";
    color = Color.BLACK;

    new PointLight(ray_handler, 5000, color, 500, camera.viewportWidth / 2, -300);
    new PointLight(ray_handler, 5000, Color.BLACK, 500, camera.viewportWidth / 2, 300);
    new PointLight(ray_handler, 5000, Color.BLACK, 500, -camera.viewportWidth / 2, -300);
    new PointLight(ray_handler, 5000, color, 500, -camera.viewportWidth / 2, 300);
    layout_middle = new GlyphLayout(font, middle_text);
    layout_bottom = new GlyphLayout(font, bottom_text);
    sprite = new AnimatedSprite(animation);

    animation.setPlayMode(Animation.PlayMode.LOOP);
    sprite.setTime(0);
    sprite.play();

}

From source file:com.jumpbuttonstudios.vikingdodge.Assets.java

License:Apache License

/** Add all the requires user interface assets to the skin */
public static void loadUI() {

    /* ALL BUTTON STUFF */
    ButtonStyle style = new ButtonStyle();
    /* Create play button */
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_PLAY)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_PLAY_PRESSED)));
    skin.add("play", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_HOWTO)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_HOWTO_PRESSED)));
    skin.add("howToButton", style);

    /* Create login button */
    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_LOGIN)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_LOGIN_PRESSED)));
    skin.add("login", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_LOGOUT)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_LOGOUT_PRESSED)));
    skin.add("logout", style);

    /* Create highscores button */
    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_HIGHSCORES)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_HIGHSCORES_PRESSED)));
    skin.add("highscores", style);

    /* Create left and right buttons */
    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_LEFT)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_LEFT_PRESSED)));
    style.over = style.down;//from   w  w w  .j  a v a 2s.c om
    skin.add("left", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_RIGHT)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_RIGHT_PRESSED)));
    style.over = style.down;
    skin.add("right", style);

    /* Create jump and throw buttons */
    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_JUMP)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_JUMP_PRESSED)));
    skin.add("jump", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_THROW)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_THROW_PRESSED)));
    skin.add("throw", style);

    /* Create pause popup stuff */
    skin.add("pauseClosed", new TextureRegionDrawable(new TextureRegion(get(UI_WINDOW_PAUSE))));
    skin.add("pauseOpen", new TextureRegionDrawable(new TextureRegion(get(UI_WINDOW_PAUSE_OPEN))));

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_RESUME)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_RESUME_PRESSED)));
    skin.add("resumeButton", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_PAUSE)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_PAUSE_PRESSED)));
    skin.add("pauseButton", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_REDO)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_REDO_PRESSED)));
    skin.add("redoButton", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_MAINMENU)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_MAINMENU_PRESSED)));
    skin.add("exitButton", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_EMPTY)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_EMPTY)));
    skin.add("emptyButton", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_OK)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_OK_PRESSED)));
    skin.add("okButton", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_HELP)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_HELP_PRESSED)));
    skin.add("helpButton", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_REGISTER)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_REGISTER_PRESSED)));
    skin.add("registerButton", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_BACK)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_BACK_PRESSED)));
    skin.add("backButton", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_MAIN_MENU_GO)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_MAIN_MENU_GO_PRESSED)));
    skin.add("mainmenuGoButton", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_PLAYAGAIN)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_PLAYAGAIN_PRESSED)));
    skin.add("playagainButton", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_FACEBOOK)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_FACEBOOK_PRESSED)));
    skin.add("facebookButton", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_TWITTER)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_TWITTER_PRESSED)));
    skin.add("twitterButton", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_JBS)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_JBS_PRESSED)));
    skin.add("jbsButton", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_VOLUME_OFF)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_VOLUME_OFF_PRESSED)));
    skin.add("soundOffButton", style);

    style = new ButtonStyle();
    style.up = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_VOLUME_ON)));
    style.down = new TextureRegionDrawable(new TextureRegion(get(UI_BUTTON_VOLUME_ON_PRESSED)));
    skin.add("soundOnButton", style);

    /* Main menu login/out shit */
    skin.add("loginWindow", new TextureRegionDrawable(new TextureRegion(get(UI_WINDOW_LOGIN))));
    skin.add("logoutWindow", new TextureRegionDrawable(new TextureRegion(get(UI_WINDOW_LOGOUT))));
    skin.add("wrongInfo", new TextureRegionDrawable(new TextureRegion(get(UI_WINDOW_WRONG_INFO))));
    skin.add("noConnection", new TextureRegionDrawable(new TextureRegion(get(UI_WINDOW_NO_CONNECTION))));
    skin.add("avatarBox", new TextureRegionDrawable(new TextureRegion(get(UI_WIDGET_AVATAR_BOX))));
    skin.add("avatarBoxLogged",
            new TextureRegionDrawable(new TextureRegion(get(UI_WIDGET_AVATAR_BOX_LOGGED_IN))));
    skin.add("welcomeBar", new TextureRegionDrawable(new TextureRegion(get(UI_WIDGET_WELCOME_BAR))));

    TextFieldStyle textFieldStyle = new TextFieldStyle();
    textFieldStyle.font = get(UI_FONT);
    textFieldStyle.fontColor = Color.BLACK;
    skin.add("field", TextFieldStyle.class);

    /* HIGHSCORE SCREEN PANELS */
    skin.add("personalPanel", new TextureRegionDrawable(new TextureRegion(get(UI_PANEL_PERSONAL))));
    skin.add("globalPanel", new TextureRegionDrawable(new TextureRegion(get(UI_PANEL_GLOBAL))));
    skin.add("friendsPanel", new TextureRegionDrawable(new TextureRegion(get(UI_PANEL_FRIENDS))));

    skin.add("bronzeHelmet", new TextureRegionDrawable(new TextureRegion(get(UI_WIDGET_HELMET_BRONZE))));
    skin.add("silverHelmet", new TextureRegionDrawable(new TextureRegion(get(UI_WIDGET_HELMET_SILVER))));
    skin.add("goldHelmet", new TextureRegionDrawable(new TextureRegion(get(UI_WIDGET_HELMET_GOLD))));

    skin.add("playerBar", new TextureRegionDrawable(new TextureRegion(get(UI_WIDGET_PLAYERBAR))));

    skin.add("smallLabel", new LabelStyle(get(UI_FONT_SMALL), Color.WHITE));
    skin.add("largeLabel", new LabelStyle(get(UI_FONT_LARGE), Color.WHITE));

    /* That dark panel thing */
    skin.add("darkBG", new TextureRegionDrawable(new TextureRegion(get(EFFECT_DARK_BG))));

    TextButtonStyle textButtonStyle = new TextButtonStyle();
    textButtonStyle.font = get(UI_FONT);
    skin.add("default", textButtonStyle);

    uiLoaded = true;

}