summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/screens
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-18 11:10:21 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-18 11:10:21 +0100
commitcb81f0a8a194ceebaea880f9027635e6a27df69e (patch)
treea64e55aaa5f45d8329737af6633a6d3fe9f3a3ff /core/src/ch/asynk/rustanddust/screens
parent75ff89304eaf9052ab889bb7ec81c96de4fa7908 (diff)
downloadRustAndDust-cb81f0a8a194ceebaea880f9027635e6a27df69e.zip
RustAndDust-cb81f0a8a194ceebaea880f9027635e6a27df69e.tar.gz
UI: merge menu and ui assets, AtlasRegion are known and provided by RustAndDust
Diffstat (limited to 'core/src/ch/asynk/rustanddust/screens')
-rw-r--r--core/src/ch/asynk/rustanddust/screens/MenuScreen.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/core/src/ch/asynk/rustanddust/screens/MenuScreen.java b/core/src/ch/asynk/rustanddust/screens/MenuScreen.java
index d9d2221..48f9656 100644
--- a/core/src/ch/asynk/rustanddust/screens/MenuScreen.java
+++ b/core/src/ch/asynk/rustanddust/screens/MenuScreen.java
@@ -69,19 +69,19 @@ public class MenuScreen implements Screen
this.gameAssetsLoading = false;
- this.bg = game.manager.get("data/map_00.png", Texture.class);
-
- this.unit = new Sprite(game.menuAtlas.findRegion("unit"));
- this.move = new Sprite(game.menuAtlas.findRegion("move"));
- this.from = new Sprite(game.menuAtlas.findRegion("from"));
- this.to = new Sprite(game.menuAtlas.findRegion("to"));
- this.usFlag = new Sprite(game.menuAtlas.findRegion("us-flag"));
- this.geFlag = new Sprite(game.menuAtlas.findRegion("ge-flag"));
-
- this.mainMenu = new MainMenu(game.font, game.uiAtlas);
- this.playMenu = new PlayMenu(game, game.font, game.uiAtlas);
- this.optionsMenu = new OptionsMenu(game, game.font, game.uiAtlas);
- this.tutorialsMenu = new TutorialsMenu(game, game.font, game.uiAtlas);
+ this.bg = game.manager.get(game.PNG_MAP_00, Texture.class);
+
+ this.unit = new Sprite(game.getUiRegion(game.UI_UNIT));
+ this.move = new Sprite(game.getUiRegion(game.UI_MOVE));
+ this.from = new Sprite(game.getUiRegion(game.UI_FROM));
+ this.to = new Sprite(game.getUiRegion(game.UI_TO));
+ this.usFlag = new Sprite(game.getUiRegion(game.UI_US_FLAG));
+ this.geFlag = new Sprite(game.getUiRegion(game.UI_GE_FLAG));
+
+ this.mainMenu = new MainMenu(game);
+ this.playMenu = new PlayMenu(game);
+ this.optionsMenu = new OptionsMenu(game);
+ this.tutorialsMenu = new TutorialsMenu(game);
Gdx.input.setInputProcessor(new InputAdapter() {
@Override