Changed gui node names.
This commit is contained in:
parent
63f17d6fd8
commit
2c4f2dbfa3
@ -12,15 +12,15 @@ public class GameOverGUICreator implements GUICreator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void create() {
|
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);
|
titleText.setPosition(0.23f, 0.8f);
|
||||||
AppUtil.guiManager.getRootNode().addChild(titleText);
|
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);
|
gameOverText.setPosition(0.415f, 0.6f);
|
||||||
AppUtil.guiManager.getRootNode().addChild(gameOverText);
|
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)) {
|
SpriteLoader.loadSprite(Name.BUTTON_BIG_HOVER)) {
|
||||||
@Override
|
@Override
|
||||||
public void pressed(int x, int y, int mouseButton) {
|
public void pressed(int x, int y, int mouseButton) {
|
||||||
@ -32,7 +32,7 @@ public class GameOverGUICreator implements GUICreator {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
playButton.setPosition(0.5f, 0.4f);
|
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);
|
playButtonText.setPosition(-0.09f, 0.0175f);
|
||||||
playButton.addChild(playButtonText);
|
playButton.addChild(playButtonText);
|
||||||
AppUtil.guiManager.getRootNode().addChild(playButton);
|
AppUtil.guiManager.getRootNode().addChild(playButton);
|
||||||
|
@ -9,7 +9,7 @@ public class InGameGUICreator implements GUICreator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void create() {
|
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);
|
levelChangeText.setPosition(0.435f, 0.5f);
|
||||||
AppUtil.guiManager.getRootNode().addChild(levelChangeText);
|
AppUtil.guiManager.getRootNode().addChild(levelChangeText);
|
||||||
}
|
}
|
||||||
|
@ -12,11 +12,11 @@ public class MainMenuGUICreator implements GUICreator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void create() {
|
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);
|
titleText.setPosition(0.23f, 0.8f);
|
||||||
AppUtil.guiManager.getRootNode().addChild(titleText);
|
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)) {
|
SpriteLoader.loadSprite(Name.BUTTON_BIG_HOVER)) {
|
||||||
@Override
|
@Override
|
||||||
public void pressed(int x, int y, int mouseButton) {
|
public void pressed(int x, int y, int mouseButton) {
|
||||||
@ -28,7 +28,7 @@ public class MainMenuGUICreator implements GUICreator {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
playButton.setPosition(0.5f, 0.5f);
|
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);
|
playButtonText.setPosition(-0.0325f, 0.0175f);
|
||||||
playButton.addChild(playButtonText);
|
playButton.addChild(playButtonText);
|
||||||
AppUtil.guiManager.getRootNode().addChild(playButton);
|
AppUtil.guiManager.getRootNode().addChild(playButton);
|
||||||
|
@ -12,15 +12,15 @@ public class WinGUICreator implements GUICreator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void create() {
|
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);
|
titleText.setPosition(0.23f, 0.8f);
|
||||||
AppUtil.guiManager.getRootNode().addChild(titleText);
|
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);
|
gameOverText.setPosition(0.415f, 0.6f);
|
||||||
AppUtil.guiManager.getRootNode().addChild(gameOverText);
|
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)) {
|
SpriteLoader.loadSprite(Name.BUTTON_BIG_HOVER)) {
|
||||||
@Override
|
@Override
|
||||||
public void pressed(int x, int y, int mouseButton) {
|
public void pressed(int x, int y, int mouseButton) {
|
||||||
@ -32,7 +32,7 @@ public class WinGUICreator implements GUICreator {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
playButton.setPosition(0.5f, 0.4f);
|
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);
|
playButtonText.setPosition(-0.09f, 0.0175f);
|
||||||
playButton.addChild(playButtonText);
|
playButton.addChild(playButtonText);
|
||||||
AppUtil.guiManager.getRootNode().addChild(playButton);
|
AppUtil.guiManager.getRootNode().addChild(playButton);
|
||||||
|
Loading…
Reference in New Issue
Block a user