Changed gui node names.

This commit is contained in:
Jeasonfire 2015-05-17 01:49:53 +03:00
parent 63f17d6fd8
commit 2c4f2dbfa3
4 changed files with 12 additions and 12 deletions

View File

@ -12,15 +12,15 @@ public class GameOverGUICreator implements GUICreator {
@Override
public void create() {
TextNode titleText = new TextNode("Game Title", "Gladiator Brawler Game Thing!");
TextNode titleText = new TextNode("game_title", "Gladiator Brawler Game Thing!");
titleText.setPosition(0.23f, 0.8f);
AppUtil.guiManager.getRootNode().addChild(titleText);
TextNode gameOverText = new TextNode("Game Over", "Game over");
TextNode gameOverText = new TextNode("game_over", "Game over");
gameOverText.setPosition(0.415f, 0.6f);
AppUtil.guiManager.getRootNode().addChild(gameOverText);
ButtonNode playButton = new ButtonNode("Return Button", SpriteLoader.loadSprite(Name.BUTTON_BIG),
ButtonNode playButton = new ButtonNode("return_button", SpriteLoader.loadSprite(Name.BUTTON_BIG),
SpriteLoader.loadSprite(Name.BUTTON_BIG_HOVER)) {
@Override
public void pressed(int x, int y, int mouseButton) {
@ -32,7 +32,7 @@ public class GameOverGUICreator implements GUICreator {
}
};
playButton.setPosition(0.5f, 0.4f);
TextNode playButtonText = new TextNode("Return Button Text", "Main Menu");
TextNode playButtonText = new TextNode("return_button_text", "Main Menu");
playButtonText.setPosition(-0.09f, 0.0175f);
playButton.addChild(playButtonText);
AppUtil.guiManager.getRootNode().addChild(playButton);

View File

@ -9,7 +9,7 @@ public class InGameGUICreator implements GUICreator {
@Override
public void create() {
levelChangeText = new TextNode("Level-Change-Text", "Round X");
levelChangeText = new TextNode("level_change_text", "Round X");
levelChangeText.setPosition(0.435f, 0.5f);
AppUtil.guiManager.getRootNode().addChild(levelChangeText);
}

View File

@ -12,11 +12,11 @@ public class MainMenuGUICreator implements GUICreator {
@Override
public void create() {
TextNode titleText = new TextNode("Game Title", "Gladiator Brawler Game Thing!");
TextNode titleText = new TextNode("game_title", "Gladiator Brawler Game Thing!");
titleText.setPosition(0.23f, 0.8f);
AppUtil.guiManager.getRootNode().addChild(titleText);
ButtonNode playButton = new ButtonNode("Play Button", SpriteLoader.loadSprite(Name.BUTTON_BIG),
ButtonNode playButton = new ButtonNode("play_button", SpriteLoader.loadSprite(Name.BUTTON_BIG),
SpriteLoader.loadSprite(Name.BUTTON_BIG_HOVER)) {
@Override
public void pressed(int x, int y, int mouseButton) {
@ -28,7 +28,7 @@ public class MainMenuGUICreator implements GUICreator {
}
};
playButton.setPosition(0.5f, 0.5f);
TextNode playButtonText = new TextNode("Play Button Text", "Play");
TextNode playButtonText = new TextNode("play_button_text", "Play");
playButtonText.setPosition(-0.0325f, 0.0175f);
playButton.addChild(playButtonText);
AppUtil.guiManager.getRootNode().addChild(playButton);

View File

@ -12,15 +12,15 @@ public class WinGUICreator implements GUICreator {
@Override
public void create() {
TextNode titleText = new TextNode("Game Title", "Gladiator Brawler Game Thing!");
TextNode titleText = new TextNode("game_title", "Gladiator Brawler Game Thing!");
titleText.setPosition(0.23f, 0.8f);
AppUtil.guiManager.getRootNode().addChild(titleText);
TextNode gameOverText = new TextNode("Win", "You win!");
TextNode gameOverText = new TextNode("win", "You win!");
gameOverText.setPosition(0.415f, 0.6f);
AppUtil.guiManager.getRootNode().addChild(gameOverText);
ButtonNode playButton = new ButtonNode("Return Button", SpriteLoader.loadSprite(Name.BUTTON_BIG),
ButtonNode playButton = new ButtonNode("return_button", SpriteLoader.loadSprite(Name.BUTTON_BIG),
SpriteLoader.loadSprite(Name.BUTTON_BIG_HOVER)) {
@Override
public void pressed(int x, int y, int mouseButton) {
@ -32,7 +32,7 @@ public class WinGUICreator implements GUICreator {
}
};
playButton.setPosition(0.5f, 0.4f);
TextNode playButtonText = new TextNode("Return Button Text", "Main Menu");
TextNode playButtonText = new TextNode("return_button_text", "Main Menu");
playButtonText.setPosition(-0.09f, 0.0175f);
playButton.addChild(playButtonText);
AppUtil.guiManager.getRootNode().addChild(playButton);