diff --git a/StraferDeliberator/core/src/com/straferdeliberator/screens/TitleScreen.java b/StraferDeliberator/core/src/com/straferdeliberator/screens/TitleScreen.java index c912210..7ba599e 100644 --- a/StraferDeliberator/core/src/com/straferdeliberator/screens/TitleScreen.java +++ b/StraferDeliberator/core/src/com/straferdeliberator/screens/TitleScreen.java @@ -1,14 +1,13 @@ package com.straferdeliberator.screens; -import com.badlogic.gdx.Application; import com.badlogic.gdx.Gdx; -import com.badlogic.gdx.Preferences; import com.badlogic.gdx.Screen; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.ui.Table; import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener; +import com.badlogic.gdx.utils.Align; import com.badlogic.gdx.utils.viewport.ScreenViewport; import com.kotcrab.vis.ui.VisUI; import com.kotcrab.vis.ui.VisUI.SkinScale; @@ -24,11 +23,14 @@ public class TitleScreen implements Screen { public TitleScreen(Strafer game) { this.game = game; - VisUI.load(SkinScale.X1); + VisUI.load(SkinScale.X2); stage = new Stage(new ScreenViewport()); root.setFillParent(true); + root.pad(150); + root.defaults().space(20); + root.align(Align.right); stage.addActor(root); makeButtons(); @@ -39,17 +41,17 @@ public TitleScreen(Strafer game) { private void makeButtons() { VisTextButton loadGameButton = new VisTextButton("ia si joaca"); + root.row(); root.add(loadGameButton); loadGameButton.addListener(new ChangeListener() { - @Override public void changed(ChangeEvent event, Actor actor) { - // Dialogs.showOKDialog(stage, "VisUI demo", "Everything is OK!"); showLoadGameMenu(); } }); VisTextButton optionsButton = new VisTextButton("Optiones"); + root.row(); root.add(optionsButton); optionsButton.addListener(new ChangeListener() { @@ -60,6 +62,7 @@ public void changed(ChangeEvent event, Actor actor) { }); VisTextButton quitButton = new VisTextButton("Afara"); + root.row(); root.add(quitButton); quitButton.addListener(new ChangeListener() { @@ -76,8 +79,7 @@ private void showLoadGameMenu() { } private void showSettingsMenu() { - - + } @Override @@ -98,27 +100,33 @@ public void dispose() { stage.dispose(); } + /** + * changed to another screen + */ @Override public void hide() { - // TODO Auto-generated method stub - } + /** + * app out of focus or closed + */ @Override public void pause() { - // TODO Auto-generated method stub } + /** + * app returned to focus + */ @Override public void resume() { - // TODO Auto-generated method stub - } + /** + * changed to this screen + */ @Override public void show() { - // TODO Auto-generated method stub } diff --git a/StraferDeliberator/desktop/src/com/game/straferdeliberator/DesktopLauncher.java b/StraferDeliberator/desktop/src/com/game/straferdeliberator/DesktopLauncher.java index 1f02726..18d07b3 100644 --- a/StraferDeliberator/desktop/src/com/game/straferdeliberator/DesktopLauncher.java +++ b/StraferDeliberator/desktop/src/com/game/straferdeliberator/DesktopLauncher.java @@ -15,7 +15,7 @@ public static void main(String[] arg) { //config.setDecorated(true); config.setResizable(true); - //config.setFullscreenMode(Lwjgl3ApplicationConfiguration.getDisplayMode() ); + //config.setFullscreenMode(Lwjgl3ApplicationConfiguration.getDisplayMode()); new Lwjgl3Application(new Strafer(), config); }