diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-09 23:27:32 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-09 23:27:32 +0100 |
commit | f114fcad33d25d736b2fadc03e5452f6038bf806 (patch) | |
tree | fbbdfd0fbdf1b582aedfbc9142c0a39e64928934 /core/src/ch/asynk/tankontank | |
parent | 13cb30fb9bcc645869c6ce895a5c1fa28d413fbe (diff) | |
download | RustAndDust-f114fcad33d25d736b2fadc03e5452f6038bf806.zip RustAndDust-f114fcad33d25d736b2fadc03e5452f6038bf806.tar.gz |
OptionsScreen: load Skin for itself
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/screens/OptionsScreen.java | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/core/src/ch/asynk/tankontank/screens/OptionsScreen.java b/core/src/ch/asynk/tankontank/screens/OptionsScreen.java index 1d5f64b..07e1f76 100644 --- a/core/src/ch/asynk/tankontank/screens/OptionsScreen.java +++ b/core/src/ch/asynk/tankontank/screens/OptionsScreen.java @@ -85,20 +85,22 @@ public class OptionsScreen implements Screen stage = new Stage(new FitViewport(Gdx.graphics.getWidth(), Gdx.graphics.getHeight())); Gdx.input.setInputProcessor(stage); - title1 = new Label("Options", game.skin); - okButton = new TextButton("OK", game.skin); - showMovesCk = new CheckBox("Show Moves", game.skin); - showTargetsCk = new CheckBox("Show Targets", game.skin); - showMoveAssistsCk = new CheckBox("Show Moves Assists", game.skin); - canCancelCk = new CheckBox("Can Cancel", game.skin); - mustValidateCk = new CheckBox("Must Validate", game.skin); - showEnemyPossibilitiesCk = new CheckBox("Show Enemy Possibilities", game.skin); - debugCk = new CheckBox("Debug", game.skin); - fxLabel = new Label("FX volume", game.skin); - fxValue = new Label(String.format("%.1f", game.config.fxVolume), game.skin); - fxVolume = new Slider(0f, 1f, 0.1f, false, game.skin) ; - title2 = new Label("Scenarios", game.skin); - scenarios = new MyList(game.skin, game.factory.battles); + Skin skin = new Skin(Gdx.files.internal("skin/uiskin.json")); + + title1 = new Label("Options", skin); + okButton = new TextButton("OK", skin); + showMovesCk = new CheckBox("Show Moves", skin); + showTargetsCk = new CheckBox("Show Targets", skin); + showMoveAssistsCk = new CheckBox("Show Moves Assists", skin); + canCancelCk = new CheckBox("Can Cancel", skin); + mustValidateCk = new CheckBox("Must Validate", skin); + showEnemyPossibilitiesCk = new CheckBox("Show Enemy Possibilities", skin); + debugCk = new CheckBox("Debug", skin); + fxLabel = new Label("FX volume", skin); + fxValue = new Label(String.format("%.1f", game.config.fxVolume), skin); + fxVolume = new Slider(0f, 1f, 0.1f, false, skin) ; + title2 = new Label("Scenarios", skin); + scenarios = new MyList(skin, game.factory.battles); showMovesCk.setChecked(game.config.showMoves); showTargetsCk.setChecked(game.config.showTargets); |