From 0d13cc43de24ea41bedb0424b275686036df9155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Latner?= <matyas.latner@nic.cz> Date: Wed, 8 Apr 2015 10:55:00 +0200 Subject: [PATCH] #7 Game difficulty settings from game menu --- .../cz/nic/tablexia/screen/gamemenu/pages/GameMenuPage.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/cz/nic/tablexia/screen/gamemenu/pages/GameMenuPage.java b/core/src/cz/nic/tablexia/screen/gamemenu/pages/GameMenuPage.java index 4243708a5..54666a561 100644 --- a/core/src/cz/nic/tablexia/screen/gamemenu/pages/GameMenuPage.java +++ b/core/src/cz/nic/tablexia/screen/gamemenu/pages/GameMenuPage.java @@ -103,6 +103,7 @@ public class GameMenuPage extends MenuPage implements ViewPager.ScrollListener { float diffHeight = screen.getStage().getHeight() * 0.12f; float diffWidth = diffHeight * ((float) diff.getWidth() / (float) diff.getHeight()); + //TODO load initial difficulty from TablexiaSettings // Difficulty bar Texture diffBar = getScreen().getTexture(GameMenuAssets.DIFF_BAR); Image diffBarImage = new Image(diffBar); @@ -219,7 +220,7 @@ public class GameMenuPage extends MenuPage implements ViewPager.ScrollListener { */ public void difficultyChanged(GameDifficulty difficulty) { gameDifficulty = difficulty; - // TODO + TablexiaSettings.getInstance().setGameDifficulty(game, difficulty); } /** -- GitLab