List of usage examples for com.badlogic.gdx.graphics Color ORANGE
Color ORANGE
To view the source code for com.badlogic.gdx.graphics Color ORANGE.
Click Source Link
From source file:CB_UI.RouteOverlay.java
License:Open Source License
private static void initialColorField() { ColorField[0] = Color.RED;/* w ww .ja v a 2 s . com*/ ColorField[1] = Color.YELLOW; ColorField[2] = Color.BLACK; ColorField[3] = Color.LIGHT_GRAY; ColorField[4] = Color.GREEN; ColorField[5] = Color.BLUE; ColorField[6] = Color.CYAN; ColorField[7] = Color.GRAY; ColorField[8] = Color.MAGENTA; ColorField[9] = Color.ORANGE; ColorField[10] = Color.DARK_GRAY; ColorField[11] = Color.PINK; ColorField[12] = Color.WHITE; }
From source file:ch.coldpixel.game.MapDrawing.java
public void background() { shape.begin(ShapeRenderer.ShapeType.Filled); shape.rect(0, 0, LEVEL_1_WIDTH, LEVEL_1_HEIGTH, Color.BLUE, Color.BLUE, Color.ORANGE, Color.ORANGE); shape.setColor(Color.YELLOW); shape.circle(100, WINDOW_HEIGTH - 100, 50, 5); shape.end();// ww w. jav a2 s . co m }
From source file:com.a2client.dialogs.dlg_Chars.java
License:Open Source License
static public void AddChar(final int char_id, String name) { if (dlg == null) return;/* w w w. j av a 2s . co m*/ GUI_Button btn = new GUI_Button(dlg.wnd) { public void DoClick() { new CharacterSelect(char_id).Send(); dlg.DisableButtons(); } }; dlg.buttons.add(btn); btn.caption = name; btn.SetPos(100, dlg.buttons.size() * 30 + 60); btn.SetSize(200, 20); btn.CenterX(); btn.enabled = false; if (char_id == dlg.last_char_id) { GUI_Panel panel = new GUI_Panel(dlg.wnd); panel.bg_color = Color.ORANGE; panel.render_mode = RenderMode.rmColor; panel.SetPos(25, dlg.buttons.size() * 30 + 60); panel.SetSize(20, 20); } dlg.wnd.SetSize(250, btn.pos.y + 40); }
From source file:com.andgate.pokeadot.MainMenuScreen.java
License:Open Source License
public MainMenuScreen(final PokeADot newGame) { game = newGame;//from ww w. jav a 2s . co m stage = new Stage(); Gdx.input.setInputProcessor(stage); final LabelStyle titleLabelStyle = new LabelStyle(game.largeFont, Color.CYAN); final Label titleLabel = new Label(Constants.GAME_NAME, titleLabelStyle); final TextButtonStyle buttonStyle = new TextButtonStyle(game.skin.getDrawable("default-round"), game.skin.getDrawable("default-round-down"), game.skin.getDrawable("default-round"), game.mediumFont); final TextButton playButton = new TextButton(PLAY_BUTTON_TEXT, buttonStyle); final TextButton practiceButton = new TextButton(PRACTICE_BUTTON_TEXT, buttonStyle); final TextButton buyButton = new TextButton(BUY_BUTTON_TEXT, buttonStyle); playButton.addListener(new ClickListener() { @Override public void clicked(InputEvent event, float x, float y) { game.buttonPressedSound.play(); game.setScreen(new GameScreen(game, PokeADot.GameMode.PLAY)); MainMenuScreen.this.dispose(); } }); practiceButton.addListener(new ClickListener() { @Override public void clicked(InputEvent event, float x, float y) { game.buttonPressedSound.play(); game.setScreen(new GameScreen(game, PokeADot.GameMode.PRACTICE)); MainMenuScreen.this.dispose(); } }); buyButton.addListener(new ClickListener() { @Override public void clicked(InputEvent event, float x, float y) { Gdx.net.openURI("https://play.google.com/store/apps/details?id=com.andgate.pokeadot"); } }); final LabelStyle currentHighScoreLabelStyle = new LabelStyle(game.smallFont, Color.ORANGE); final String currentHighScore = String.format("%.2f", HighScoreService.get().time); final Label currentHighScoreLabel = new Label("Best time: " + currentHighScore, currentHighScoreLabelStyle); Table table = new Table(); table.add(titleLabel).center().spaceBottom(25.0f).row(); table.add(currentHighScoreLabel).center().spaceBottom(25.0f).row(); float buttonWidth = practiceButton.getWidth(); table.add(playButton).width(buttonWidth).spaceBottom(20.0f).center().row(); table.add(practiceButton).spaceBottom(20.0f).center().row(); if (game.isFree) { table.add(buyButton).width(buttonWidth).spaceBottom(20.0f).center().row(); } table.setFillParent(true); stage.addActor(table); }
From source file:com.andgate.pokeadot.PlayResultsScreen.java
License:Open Source License
public PlayResultsScreen(PokeADot currentGame) { game = currentGame;/*w w w. ja va 2s. c o m*/ stage = new Stage(); Gdx.input.setInputProcessor(stage); boolean newHighScore = false; if (game.mode == PokeADot.GameMode.PLAY) { HighScore currentHighScore = HighScoreService.get(); if (game.gameTime >= currentHighScore.time) { HighScoreService.set(new HighScore(game.gameTime)); newHighScore = true; } } // Retry and exit buttons final ImageButton nextButton = game.createIconButton(Constants.GO_ICON_LOCATION, Constants.GO_ICON_DOWN_LOCATION, new ClickListener() { @Override public void clicked(InputEvent event, float x, float y) { game.buttonPressedSound.play(); goMainMenu(); } }); final ImageButton replayButton = game.createIconButton(Constants.REPLAY_ICON_LOCATION, Constants.REPLAY_ICON_DOWN_LOCATION, new ClickListener() { @Override public void clicked(InputEvent event, float x, float y) { game.buttonPressedSound.play(); goReplay(); } }); // display information about the game depending on the currently selected mode. final Label.LabelStyle titleLabelStyle = new Label.LabelStyle(game.largeFont, Color.ORANGE); final Label.LabelStyle infoLabelStyle = new Label.LabelStyle(game.mediumSmallFont, Color.LIGHT_GRAY); final Label.LabelStyle newHighScoreLabelStyle = new Label.LabelStyle(game.mediumSmallFont, Color.RED); final Label resultsLabel = new Label("Result", titleLabelStyle); final Label timeLabel = new Label(String.format("Time: %.2f", game.gameTime) + " seconds", infoLabelStyle); final Label newHighScoreLabel = new Label("New high score!", newHighScoreLabelStyle); //table.debugAll(); final Table resultsTable = new Table(); resultsTable.add(resultsLabel).center().spaceBottom(25.0f).row(); resultsTable.add(timeLabel).top().center().row(); if (newHighScore) { resultsTable.add(newHighScoreLabel).top().center().row(); } final Table buttonsTable = new Table(); buttonsTable.add(replayButton).left(); buttonsTable.add(nextButton).expandX().right(); final Table table = new Table(); table.setFillParent(true); table.add(resultsTable).top().center().spaceBottom(25.0f).row(); //table.add(replayButton).left(); //table.add(nextButton).right(); table.add(buttonsTable).fill(); stage.addActor(table); }
From source file:com.andgate.pokeadot.PracticeResultsScreen.java
License:Open Source License
public PracticeResultsScreen(PokeADot currentGame) { game = currentGame;//from ww w.j a v a 2 s . c om stage = new Stage(); Gdx.input.setInputProcessor(stage); // Retry and exit buttons ImageButton nextButton = game.createIconButton(Constants.GO_ICON_LOCATION, Constants.GO_ICON_DOWN_LOCATION, new ClickListener() { @Override public void clicked(InputEvent event, float x, float y) { game.buttonPressedSound.play(); goMainMenu(); } }); ImageButton replayButton = game.createIconButton(Constants.REPLAY_ICON_LOCATION, Constants.REPLAY_ICON_DOWN_LOCATION, new ClickListener() { @Override public void clicked(InputEvent event, float x, float y) { game.buttonPressedSound.play(); goReplay(); } }); // display information about the game depending on the currently selected mode. LabelStyle titleLabelStyle = new LabelStyle(game.largeFont, Color.ORANGE); LabelStyle infoLabelStyle = new LabelStyle(game.mediumSmallFont, Color.LIGHT_GRAY); Label resultsLabel = new Label("Results", titleLabelStyle); Label timeTitleLabel = new Label("Time: ", infoLabelStyle); Label timeLabel = new Label(doubleDecimal.format(game.gameTime) + " seconds", infoLabelStyle); Label hitsTitleLabel = new Label("Hit: ", infoLabelStyle); Label hitsLabel = new Label(((int) game.hits) + " p", infoLabelStyle); Label missedTitleLabel = new Label("Missed: ", infoLabelStyle); Label missedLabel = new Label(((int) game.missed) + " p", infoLabelStyle); String accuracyString; if (game.missed > 0) { float accuracy = (float) game.hits / (game.hits + game.missed); accuracyString = doubleDecimal.format(accuracy) + "%"; } else { accuracyString = "-"; } Label acurracyTitleLabel = new Label("Accuracy: ", infoLabelStyle); Label accuracyLabel = new Label(accuracyString, infoLabelStyle); Table table = new Table(); //table.debugAll(); table.add(resultsLabel).center().spaceBottom(25.0f).row(); table.add(timeTitleLabel).top().left(); table.add(timeLabel).expand().top().left().row(); table.add(hitsTitleLabel).top().left(); table.add(hitsLabel).expand().top().left().row(); table.add(missedTitleLabel).top().left(); table.add(missedLabel).expand().top().left().row(); table.add(acurracyTitleLabel).top().left(); table.add(accuracyLabel).expand().top().left().row(); table.add(replayButton).bottom().center(); table.add(nextButton).expand().bottom().center(); table.setFillParent(true); stage.addActor(table); }
From source file:com.dagondev.drop.GameScreen.java
License:Apache License
/** * Resetting all game values to default//from w ww . j ava2s .co m */ private void createGameSettings() { //for reset mostly backToMenu = false; endOfRound = false; player1Died = false; player2Died = false; //drawSun = false; slowMotionMultiplier = 1; sundirection = -90f; currentSunColor = Color.ORANGE; checkLightCounter = 0; }
From source file:com.github.ykrasik.jerminal.libgdx.impl.LibGdxTerminal.java
License:Apache License
private Color translateColor(TerminalColor color) { switch (color) { case BLACK://from w w w . j a va 2s . co m return Color.BLACK; case WHITE: return Color.WHITE; case GRAY: return Color.DARK_GRAY; case RED: return Color.PINK; case ORANGE: return Color.ORANGE; case YELLOW: return Color.YELLOW; case GREEN: return Color.GREEN; case BLUE: return BLUE; case VIOLET: return Color.MAGENTA; default: throw new IllegalArgumentException("Invalid color: " + color); } }
From source file:com.izacc.ability.Hibernation.java
@Override public void render(float delta) { shapeRenderer.setColor(Color.ORANGE); shapeRenderer.begin(ShapeRenderer.ShapeType.Filled); shapeRenderer.circle(x, y, r);// w w w . j a va2 s . c o m shapeRenderer.end(); }
From source file:com.jumpbuttonstudios.vikingdodge.ui.popup.LoginPopup.java
License:Apache License
@Override public void create() { setScreenPositions(vikingDodge.getUi().getWidth() / 2 - (background.getWidth() / 2), 850, vikingDodge.getUi().getWidth() / 2 - (background.getWidth() / 2), vikingDodge.getUi().getHeight() / 2 - (background.getHeight() / 2)); usernameAndPasswordTable = new Table(); style = new TextFieldStyle(); style.font = Assets.get(Assets.UI_FONT_TEXT_FIELD); style.fontColor = Color.WHITE; style.disabledFontColor = Color.ORANGE; username = new TextField("", style); password = new TextField("", style); password.setPasswordCharacter('*'); password.setPasswordMode(true);//from w ww .j a v a 2 s. c o m buttonsTable = new Table(); help = new Button(Assets.skin.get("helpButton", ButtonStyle.class)); ok = new Button(Assets.skin.get("okButton", ButtonStyle.class)); register = new Button(Assets.skin.get("registerButton", ButtonStyle.class)); // TODO Remove later, testing // username.setText("gibbo"); // password.setText("tycoon"); }