diff --git a/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/MyGdxGame.java b/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/MyGdxGame.java deleted file mode 100644 index 4a704cd..0000000 --- a/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/MyGdxGame.java +++ /dev/null @@ -1,31 +0,0 @@ -package eu.jonahbauer.wizard.client.libgdx; - -import com.badlogic.gdx.ApplicationAdapter; -import com.badlogic.gdx.graphics.Texture; -import com.badlogic.gdx.graphics.g2d.SpriteBatch; -import com.badlogic.gdx.utils.ScreenUtils; - -public class MyGdxGame extends ApplicationAdapter { - SpriteBatch batch; - Texture img; - - @Override - public void create () { - batch = new SpriteBatch(); - img = new Texture("badlogic.jpg"); - } - - @Override - public void render () { - ScreenUtils.clear(1, 0, 0, 1); - batch.begin(); - batch.draw(img, 0, 0); - batch.end(); - } - - @Override - public void dispose () { - batch.dispose(); - img.dispose(); - } -} diff --git a/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/WizardGame.java b/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/WizardGame.java new file mode 100644 index 0000000..b5d0de4 --- /dev/null +++ b/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/WizardGame.java @@ -0,0 +1,28 @@ +package eu.jonahbauer.wizard.client.libgdx; + +import com.badlogic.gdx.Game; +import com.badlogic.gdx.graphics.g2d.SpriteBatch; +import eu.jonahbauer.wizard.client.libgdx.screens.MainMenuScreen; + +public class WizardGame extends Game { + public static final int HEIGHT = 1010; + public static final int WIDTH = 1920; + + public SpriteBatch batch; + + @Override + public void create () { + batch = new SpriteBatch(); + + this.setScreen(new MainMenuScreen(this)); + } + + public WizardGame getGame() { + return this; + } + + + @Override + public void dispose () { + } +} diff --git a/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/screens/CreateGameScreen.java b/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/screens/CreateGameScreen.java new file mode 100644 index 0000000..4c7371e --- /dev/null +++ b/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/screens/CreateGameScreen.java @@ -0,0 +1,152 @@ +package eu.jonahbauer.wizard.client.libgdx.screens; + +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.Screen; +import com.badlogic.gdx.graphics.GL20; +import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.scenes.scene2d.InputEvent; +import com.badlogic.gdx.scenes.scene2d.InputListener; +import com.badlogic.gdx.scenes.scene2d.Stage; +import com.badlogic.gdx.scenes.scene2d.ui.Skin; +import com.badlogic.gdx.scenes.scene2d.ui.TextButton; +import com.badlogic.gdx.scenes.scene2d.ui.TextField; +import com.badlogic.gdx.utils.viewport.ScreenViewport; +import eu.jonahbauer.wizard.client.libgdx.WizardGame; + +public class CreateGameScreen implements Screen { + + Texture background; + Texture topLeft; + Texture topRight; + Texture bottomLeft; + Texture bottomRight; + Texture wizard; + + TextButton backButton; + TextButton continueButton; + + TextField option1; + TextField option2; + TextField option3; + TextField option4; + TextField option5; + TextField option6; + + Skin skin; + Stage stage; + public WizardGame game; + + public CreateGameScreen(WizardGame game) { + this.game = game; + } + + @Override + public void show() { + skin = new Skin(Gdx.files.internal("skin/uiskin.json")); + stage = new Stage(new ScreenViewport()); + + background = new Texture(Gdx.files.internal("background.png")); + + topLeft = new Texture(Gdx.files.internal("ecke_lo.png")); + topRight = new Texture(Gdx.files.internal("ecke_ro.png")); + bottomLeft = new Texture(Gdx.files.internal("ecke_lu.png")); + bottomRight = new Texture(Gdx.files.internal("ecke_ru.png")); + + wizard = new Texture(Gdx.files.internal("schriftzug_s.png")); + + backButton = new TextButton("Zurück", skin); + backButton.setPosition(WizardGame.WIDTH * 0.3f, WizardGame.HEIGHT * 0.18f); + backButton.setSize(120, backButton.getHeight()); + continueButton = new TextButton("Fortfahren", skin); + continueButton.setPosition(WizardGame.WIDTH * 0.7f - continueButton.getWidth(), WizardGame.HEIGHT * 0.18f); + + option1 = new TextField("1", skin); + option1.setPosition(WizardGame.WIDTH * 0.3f, WizardGame.HEIGHT * 0.6f); + option1.setSize(250, continueButton.getHeight()); + option2 = new TextField("2", skin); + option2.setPosition(option1.getX(), option1.getY() - WizardGame.HEIGHT * 0.12f); + option2.setSize(250, continueButton.getHeight()); + option3 = new TextField("3", skin); + option3.setPosition(option2.getX(), option2.getY() - WizardGame.HEIGHT * 0.12f); + option3.setSize(250, continueButton.getHeight()); + + option4 = new TextField("4", skin); + option4.setPosition(WizardGame.WIDTH * 0.65f - option4.getWidth(), option1.getY()); + option4.setSize(250, continueButton.getHeight()); + option5 = new TextField("5", skin); + option5.setPosition(option4.getX(), option2.getY()); + option5.setSize(250, continueButton.getHeight()); + option6 = new TextField("6", skin); + option6.setPosition(option4.getX(), option3.getY()); + option6.setSize(250, continueButton.getHeight()); + + + Gdx.input.setInputProcessor(stage); + stage.addActor(backButton); + stage.addActor(continueButton); + stage.addActor(option1); + stage.addActor(option2); + stage.addActor(option3); + stage.addActor(option4); + stage.addActor(option5); + stage.addActor(option6); + + backButton.addListener(new InputListener() { + @Override + public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) { + MainMenuScreen.buttonClickSound.play(0.6f); + game.setScreen(new SessionListScreen(game)); + return true; + } + }); + + continueButton.addListener(new InputListener() { + @Override + public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) { + MainMenuScreen.buttonClickSound.play(0.6f); + game.setScreen(new WaitingScreen(game)); + return true; + } + }); + } + + @Override + public void render(float delta) { + Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); + stage.act(Gdx.graphics.getDeltaTime()); + this.game.batch.begin(); + this.game.batch.draw(background, 0, 0); + this.game.batch.draw(topLeft, 0, WizardGame.HEIGHT - topLeft.getHeight()); + this.game.batch.draw(topRight, WizardGame.WIDTH - topRight.getWidth(), WizardGame.HEIGHT - topRight.getHeight()); + this.game.batch.draw(bottomLeft, 0, 0); + this.game.batch.draw(bottomRight, WizardGame.WIDTH - bottomRight.getWidth(), 0); + this.game.batch.draw(wizard, (WizardGame.WIDTH / 2f) - (wizard.getWidth() / 2f), WizardGame.HEIGHT * 0.75f); + this.game.batch.end(); + stage.draw(); + } + + @Override + public void resize(int width, int height) { + + } + + @Override + public void pause() { + + } + + @Override + public void resume() { + + } + + @Override + public void hide() { + + } + + @Override + public void dispose() { + + } +} diff --git a/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/screens/MainMenuScreen.java b/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/screens/MainMenuScreen.java new file mode 100644 index 0000000..79b730d --- /dev/null +++ b/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/screens/MainMenuScreen.java @@ -0,0 +1,147 @@ +package eu.jonahbauer.wizard.client.libgdx.screens; + +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.Screen; +import com.badlogic.gdx.audio.Music; +import com.badlogic.gdx.audio.Sound; +import com.badlogic.gdx.graphics.GL20; +import com.badlogic.gdx.graphics.Pixmap; +import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.scenes.scene2d.InputEvent; +import com.badlogic.gdx.scenes.scene2d.InputListener; +import com.badlogic.gdx.scenes.scene2d.Stage; +import com.badlogic.gdx.scenes.scene2d.ui.Skin; +import com.badlogic.gdx.scenes.scene2d.ui.Table; +import com.badlogic.gdx.scenes.scene2d.ui.TextButton; +import com.badlogic.gdx.utils.viewport.ScreenViewport; +import eu.jonahbauer.wizard.client.libgdx.WizardGame; + +public class MainMenuScreen implements Screen { + + public static Music backgroundSound = Gdx.audio.newMusic(Gdx.files.internal("background.wav")); + public static Sound buttonClickSound = Gdx.audio.newSound(Gdx.files.internal("button_click_s.mp3")); + + Pixmap pm; + + Texture background; + Texture topLeft; + Texture topRight; + Texture bottomLeft; + Texture bottomRight; + Texture wizard; + Texture leftSymbol; + Texture middleSymbol; + Texture rightSymbol; + + TextButton chooseServerButton; + TextButton exitButton; + + Skin skin; + Stage stage; + public WizardGame game; + + public MainMenuScreen(WizardGame game) { + this.game = game; + } + + @Override + public void show() { + pm = new Pixmap(Gdx.files.internal("cursor.png")); + Gdx.graphics.setCursor(Gdx.graphics.newCursor(pm, 0, 0)); + pm.dispose(); + + backgroundSound.setLooping(true); + backgroundSound.setVolume(0.07f); + backgroundSound.play(); + skin = new Skin(Gdx.files.internal("skin/uiskin.json")); + stage = new Stage(new ScreenViewport()); + + background = new Texture(Gdx.files.internal("background.png")); + leftSymbol = new Texture(Gdx.files.internal("symbol3.png")); + middleSymbol = new Texture(Gdx.files.internal("symbol1.png")); + rightSymbol = new Texture(Gdx.files.internal("symbol2.png")); + + topLeft = new Texture(Gdx.files.internal("ecke_lo.png")); + topRight = new Texture(Gdx.files.internal("ecke_ro.png")); + bottomLeft = new Texture(Gdx.files.internal("ecke_lu.png")); + bottomRight = new Texture(Gdx.files.internal("ecke_ru.png")); + + wizard = new Texture(Gdx.files.internal("schriftzug.png")); + + chooseServerButton = new TextButton("Spiel beitreten", skin); + chooseServerButton.setPosition((WizardGame.WIDTH / 2f) - (chooseServerButton.getWidth() / 2f), WizardGame.HEIGHT * 0.35f); + exitButton = new TextButton("Verlassen", skin); + exitButton.setPosition(WizardGame.WIDTH / 2f - exitButton.getWidth() / 2f, chooseServerButton.getY() - WizardGame.HEIGHT * 0.1f); + + Gdx.input.setInputProcessor(stage); + stage.addActor(chooseServerButton); + stage.addActor(exitButton); + + chooseServerButton.addListener(new InputListener() { + @Override + public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) { + buttonClickSound.play(0.6f); + game.setScreen(new ServerScreen(game)); + return true; + } + }); + + exitButton.addListener(new InputListener() { + @Override + public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) { + buttonClickSound.play(0.6f); + try { + Thread.sleep(450); + } catch (InterruptedException e) { + //e.printStackTrace(); + } + Gdx.app.exit(); + return true; + } + }); + } + + @Override + public void render(float delta) { + + Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); + stage.act(Gdx.graphics.getDeltaTime()); + this.game.batch.begin(); + this.game.batch.draw(background, 0, 0); + this.game.batch.draw(topLeft, 0, WizardGame.HEIGHT - topLeft.getHeight()); + this.game.batch.draw(topRight, WizardGame.WIDTH - topRight.getWidth(), WizardGame.HEIGHT - topRight.getHeight()); + this.game.batch.draw(bottomLeft, 0, 0); + this.game.batch.draw(bottomRight, WizardGame.WIDTH - bottomRight.getWidth(), 0); + this.game.batch.draw(wizard, (WizardGame.WIDTH / 2f) - (wizard.getWidth() / 2f), WizardGame.HEIGHT * 0.73f); + this.game.batch.draw(leftSymbol, WizardGame.WIDTH * 0.32f, WizardGame.HEIGHT * 0.45f); + this.game.batch.draw(middleSymbol, WizardGame.WIDTH / 2f - middleSymbol.getWidth() / 2f, WizardGame.HEIGHT * 0.49f); + this.game.batch.draw(rightSymbol, WizardGame.WIDTH * 0.68f - rightSymbol.getWidth(), WizardGame.HEIGHT * 0.45f); + this.game.batch.end(); + stage.draw(); + + } + + @Override + public void resize(int width, int height) { + + } + + @Override + public void pause() { + + } + + @Override + public void resume() { + + } + + @Override + public void hide() { + + } + + @Override + public void dispose() { + } +} diff --git a/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/screens/ServerScreen.java b/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/screens/ServerScreen.java new file mode 100644 index 0000000..e10478f --- /dev/null +++ b/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/screens/ServerScreen.java @@ -0,0 +1,146 @@ +package eu.jonahbauer.wizard.client.libgdx.screens; + +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.Screen; +import com.badlogic.gdx.graphics.GL20; +import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.scenes.scene2d.Group; +import com.badlogic.gdx.scenes.scene2d.InputEvent; +import com.badlogic.gdx.scenes.scene2d.InputListener; +import com.badlogic.gdx.scenes.scene2d.Stage; +import com.badlogic.gdx.scenes.scene2d.ui.Skin; +import com.badlogic.gdx.scenes.scene2d.ui.TextButton; +import com.badlogic.gdx.scenes.scene2d.ui.TextField; +import com.badlogic.gdx.utils.viewport.ScreenViewport; +import eu.jonahbauer.wizard.client.libgdx.WizardGame; + +public class ServerScreen implements Screen { + + Texture background; + Texture topLeft; + Texture topRight; + Texture bottomLeft; + Texture bottomRight; + Texture wizard; + + TextButton backButton; + TextButton continueButton; + + TextField ip; + TextField port; + TextField playerName; + + Group inputs; + + Skin skin; + Stage stage; + public WizardGame game; + + public ServerScreen(WizardGame game) { + this.game = game; + } + + @Override + public void show() { + skin = new Skin(Gdx.files.internal("skin/uiskin.json")); + stage = new Stage(new ScreenViewport()); + + background = new Texture(Gdx.files.internal("background.png")); + + topLeft = new Texture(Gdx.files.internal("ecke_lo.png")); + topRight = new Texture(Gdx.files.internal("ecke_ro.png")); + bottomLeft = new Texture(Gdx.files.internal("ecke_lu.png")); + bottomRight = new Texture(Gdx.files.internal("ecke_ru.png")); + + wizard = new Texture(Gdx.files.internal("schriftzug_s.png")); + + backButton = new TextButton("Zurück", skin); + backButton.setPosition(WizardGame.WIDTH * 0.3f, WizardGame.HEIGHT * 0.18f); + backButton.setSize(120, backButton.getHeight()); + continueButton = new TextButton("Fortfahren", skin); + continueButton.setPosition(WizardGame.WIDTH * 0.7f - continueButton.getWidth(), WizardGame.HEIGHT * 0.18f); + + inputs = new Group(); + inputs.setSize(300, continueButton.getHeight()); + inputs.setPosition(WizardGame.WIDTH / 2f - inputs.getWidth() / 2, WizardGame.HEIGHT * 0.5f); + + ip = new TextField("", skin); + //ip.setPosition(WizardGame.WIDTH*0.4f, WizardGame.HEIGHT*0.5f); + ip.setSize(200, continueButton.getHeight()); + port = new TextField("", skin); + port.setPosition(ip.getX() + ip.getWidth() + WizardGame.WIDTH * 0.005f, ip.getY()); + port.setSize(80, continueButton.getHeight()); + playerName = new TextField("", skin); + playerName.setSize(250, continueButton.getHeight()); + playerName.setPosition(WizardGame.WIDTH / 2f - playerName.getWidth() / 2, inputs.getY() - WizardGame.HEIGHT * 0.12f); + + inputs.addActor(ip); + inputs.addActor(port); + + Gdx.input.setInputProcessor(stage); + stage.addActor(backButton); + stage.addActor(continueButton); + stage.addActor(playerName); + stage.addActor(inputs); + //stage.addActor(port); + + backButton.addListener(new InputListener() { + @Override + public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) { + MainMenuScreen.buttonClickSound.play(0.6f); + game.setScreen(new MainMenuScreen(game)); + return true; + } + }); + + continueButton.addListener(new InputListener() { + @Override + public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) { + MainMenuScreen.buttonClickSound.play(0.6f); + game.setScreen(new SessionListScreen(game)); + return true; + } + }); + + } + + @Override + public void render(float delta) { + Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); + stage.act(Gdx.graphics.getDeltaTime()); + this.game.batch.begin(); + this.game.batch.draw(background, 0, 0); + this.game.batch.draw(topLeft, 0, WizardGame.HEIGHT - topLeft.getHeight()); + this.game.batch.draw(topRight, WizardGame.WIDTH - topRight.getWidth(), WizardGame.HEIGHT - topRight.getHeight()); + this.game.batch.draw(bottomLeft, 0, 0); + this.game.batch.draw(bottomRight, WizardGame.WIDTH - bottomRight.getWidth(), 0); + this.game.batch.draw(wizard, (WizardGame.WIDTH / 2f) - (wizard.getWidth() / 2f), WizardGame.HEIGHT * 0.75f); + this.game.batch.end(); + stage.draw(); + } + + @Override + public void resize(int width, int height) { + + } + + @Override + public void pause() { + + } + + @Override + public void resume() { + + } + + @Override + public void hide() { + + } + + @Override + public void dispose() { + + } +} diff --git a/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/screens/SessionListScreen.java b/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/screens/SessionListScreen.java new file mode 100644 index 0000000..f3b906b --- /dev/null +++ b/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/screens/SessionListScreen.java @@ -0,0 +1,167 @@ +package eu.jonahbauer.wizard.client.libgdx.screens; + +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.Screen; +import com.badlogic.gdx.graphics.GL20; +import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.scenes.scene2d.InputEvent; +import com.badlogic.gdx.scenes.scene2d.InputListener; +import com.badlogic.gdx.scenes.scene2d.Stage; +import com.badlogic.gdx.scenes.scene2d.ui.List; +import com.badlogic.gdx.scenes.scene2d.ui.ScrollPane; +import com.badlogic.gdx.scenes.scene2d.ui.Skin; +import com.badlogic.gdx.scenes.scene2d.ui.TextButton; +import com.badlogic.gdx.utils.viewport.ScreenViewport; +import eu.jonahbauer.wizard.client.libgdx.WizardGame; + +import static eu.jonahbauer.wizard.client.libgdx.screens.MainMenuScreen.buttonClickSound; + +public class SessionListScreen implements Screen { + + Texture background; + Texture topLeft; + Texture topRight; + Texture bottomLeft; + Texture bottomRight; + Texture wizard; + + TextButton backButton; + TextButton continueButton; + TextButton createGameButton; + + List gameList; + ScrollPane listContainer; + + Skin skin; + Stage stage; + public WizardGame game; + + public SessionListScreen(WizardGame game) { + this.game = game; + } + + @Override + public void show() { + skin = new Skin(Gdx.files.internal("skin/uiskin.json")); + stage = new Stage(new ScreenViewport()); + + background = new Texture(Gdx.files.internal("background.png")); + + topLeft = new Texture(Gdx.files.internal("ecke_lo.png")); + topRight = new Texture(Gdx.files.internal("ecke_ro.png")); + bottomLeft = new Texture(Gdx.files.internal("ecke_lu.png")); + bottomRight = new Texture(Gdx.files.internal("ecke_ru.png")); + + wizard = new Texture(Gdx.files.internal("schriftzug_s.png")); + + backButton = new TextButton("Zurück", skin); + backButton.setPosition(WizardGame.WIDTH * 0.3f, WizardGame.HEIGHT * 0.18f); + backButton.setSize(120, backButton.getHeight()); + continueButton = new TextButton("Fortfahren", skin); + continueButton.setPosition(WizardGame.WIDTH * 0.6f, WizardGame.HEIGHT * 0.45f); + createGameButton = new TextButton("Spiel erstellen", skin); + createGameButton.setPosition(WizardGame.WIDTH * 0.7f - continueButton.getWidth(), WizardGame.HEIGHT * 0.18f); + createGameButton.setSize(120, backButton.getHeight()); + + gameList = new List<>(skin); + String[] items = new String[]{ + "testgame1", + "testgame2", + "testgame3", + "testgame4", + "testgame5", + "testgame6", + "testgame7", + "testgame8", + "testgame9", + "testgame10", + "testgame11", + "testgame12", + "testgame13", + "testgame14" + }; + gameList.setItems(items); + //gameList.setPosition(WizardGame.WIDTH*0.3f, WizardGame.HEIGHT*0.2f); + gameList.setSize(250, 400); + + listContainer = new ScrollPane(gameList); + listContainer.setSize(250, 300); + listContainer.setPosition(WizardGame.WIDTH * 0.3f, WizardGame.HEIGHT * 0.3f); + + Gdx.input.setInputProcessor(stage); + stage.addActor(backButton); + stage.addActor(continueButton); + stage.addActor(createGameButton); + stage.addActor(listContainer); + + backButton.addListener(new InputListener() { + @Override + public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) { + buttonClickSound.play(0.6f); + game.setScreen(new ServerScreen(game)); + return true; + } + }); + + continueButton.addListener(new InputListener() { + @Override + public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) { + buttonClickSound.play(0.6f); + game.setScreen(new WaitingScreen(game)); + return true; + } + }); + + createGameButton.addListener(new InputListener() { + @Override + public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) { + buttonClickSound.play(0.6f); + game.setScreen(new CreateGameScreen(game)); + return true; + } + }); + + + } + + @Override + public void render(float delta) { + Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); + stage.act(Gdx.graphics.getDeltaTime()); + this.game.batch.begin(); + this.game.batch.draw(background, 0, 0); + this.game.batch.draw(topLeft, 0, WizardGame.HEIGHT - topLeft.getHeight()); + this.game.batch.draw(topRight, WizardGame.WIDTH - topRight.getWidth(), WizardGame.HEIGHT - topRight.getHeight()); + this.game.batch.draw(bottomLeft, 0, 0); + this.game.batch.draw(bottomRight, WizardGame.WIDTH - bottomRight.getWidth(), 0); + this.game.batch.draw(wizard, (WizardGame.WIDTH / 2f) - (wizard.getWidth() / 2f), WizardGame.HEIGHT * 0.75f); + this.game.batch.end(); + stage.draw(); + + } + + @Override + public void resize(int width, int height) { + + } + + @Override + public void pause() { + + } + + @Override + public void resume() { + + } + + @Override + public void hide() { + + } + + @Override + public void dispose() { + + } +} diff --git a/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/screens/WaitingScreen.java b/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/screens/WaitingScreen.java new file mode 100644 index 0000000..58f24e9 --- /dev/null +++ b/wizard-client/wizard-client-libgdx/core/src/main/java/eu/jonahbauer/wizard/client/libgdx/screens/WaitingScreen.java @@ -0,0 +1,45 @@ +package eu.jonahbauer.wizard.client.libgdx.screens; + +import com.badlogic.gdx.Screen; +import eu.jonahbauer.wizard.client.libgdx.WizardGame; + +public class WaitingScreen implements Screen { + + WizardGame game; + + public WaitingScreen(WizardGame game) { this.game = game; } + @Override + public void show() { + + } + + @Override + public void render(float delta) { + + } + + @Override + public void resize(int width, int height) { + + } + + @Override + public void pause() { + + } + + @Override + public void resume() { + + } + + @Override + public void hide() { + + } + + @Override + public void dispose() { + + } +} diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/background.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/background.png new file mode 100644 index 0000000..ca9d698 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/background.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/background.wav b/wizard-client/wizard-client-libgdx/core/src/main/resources/background.wav new file mode 100644 index 0000000..871efda Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/background.wav differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/button_click.mp3 b/wizard-client/wizard-client-libgdx/core/src/main/resources/button_click.mp3 new file mode 100644 index 0000000..a22a66c Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/button_click.mp3 differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/button_click_s.mp3 b/wizard-client/wizard-client-libgdx/core/src/main/resources/button_click_s.mp3 new file mode 100644 index 0000000..a3b6495 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/button_click_s.mp3 differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/cursor.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/cursor.png new file mode 100644 index 0000000..bbd804e Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/cursor.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/cursor_big.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/cursor_big.png new file mode 100644 index 0000000..e6730bb Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/cursor_big.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/default.fnt b/wizard-client/wizard-client-libgdx/core/src/main/resources/default.fnt new file mode 100644 index 0000000..d581ea8 --- /dev/null +++ b/wizard-client/wizard-client-libgdx/core/src/main/resources/default.fnt @@ -0,0 +1,102 @@ +info face="Enchanted Land" size=32 bold=0 italic=0 charset="" unicode=0 stretchH=100 smooth=1 aa=1 padding=1,1,1,1 spacing=-2,-2 +common lineHeight=38 base=28 scaleW=512 scaleH=512 pages=1 packed=0 +page id=0 file="font.png" +chars count=98 +char id=0 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=0 page=0 chnl=0 +char id=10 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=0 page=0 chnl=0 +char id=32 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=3 page=0 chnl=0 +char id=33 x=0 y=0 width=7 height=22 xoffset=-1 yoffset=8 xadvance=5 page=0 chnl=0 +char id=34 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=6 page=0 chnl=0 +char id=35 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=11 page=0 chnl=0 +char id=36 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0 +char id=37 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=9 page=0 chnl=0 +char id=38 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=10 page=0 chnl=0 +char id=39 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=3 page=0 chnl=0 +char id=40 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0 +char id=41 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0 +char id=42 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0 +char id=43 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0 +char id=44 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=5 page=0 chnl=0 +char id=45 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0 +char id=46 x=0 y=0 width=7 height=6 xoffset=-1 yoffset=23 xadvance=5 page=0 chnl=0 +char id=47 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=14 page=0 chnl=0 +char id=48 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=9 page=0 chnl=0 +char id=49 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=9 page=0 chnl=0 +char id=50 x=0 y=0 width=12 height=23 xoffset=-1 yoffset=7 xadvance=11 page=0 chnl=0 +char id=51 x=0 y=0 width=11 height=22 xoffset=-1 yoffset=8 xadvance=10 page=0 chnl=0 +char id=52 x=0 y=0 width=15 height=23 xoffset=-1 yoffset=7 xadvance=13 page=0 chnl=0 +char id=53 x=0 y=0 width=12 height=23 xoffset=-1 yoffset=7 xadvance=11 page=0 chnl=0 +char id=54 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=10 page=0 chnl=0 +char id=55 x=0 y=0 width=15 height=22 xoffset=-1 yoffset=8 xadvance=13 page=0 chnl=0 +char id=56 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=9 page=0 chnl=0 +char id=57 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=10 page=0 chnl=0 +char id=58 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=4 page=0 chnl=0 +char id=59 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=4 page=0 chnl=0 +char id=60 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0 +char id=61 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0 +char id=62 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0 +char id=63 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=10 page=0 chnl=0 +char id=64 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=19 page=0 chnl=0 +char id=65 x=0 y=0 width=27 height=28 xoffset=-2 yoffset=6 xadvance=24 page=0 chnl=0 +char id=66 x=0 y=0 width=19 height=26 xoffset=-1 yoffset=5 xadvance=17 page=0 chnl=0 +char id=67 x=0 y=0 width=17 height=24 xoffset=-1 yoffset=7 xadvance=15 page=0 chnl=0 +char id=68 x=0 y=0 width=21 height=26 xoffset=-2 yoffset=6 xadvance=18 page=0 chnl=0 +char id=69 x=0 y=0 width=19 height=25 xoffset=-2 yoffset=6 xadvance=16 page=0 chnl=0 +char id=70 x=0 y=0 width=18 height=25 xoffset=-1 yoffset=6 xadvance=16 page=0 chnl=0 +char id=71 x=0 y=0 width=19 height=24 xoffset=-2 yoffset=7 xadvance=16 page=0 chnl=0 +char id=72 x=0 y=0 width=20 height=23 xoffset=-2 yoffset=8 xadvance=17 page=0 chnl=0 +char id=73 x=0 y=0 width=13 height=24 xoffset=-2 yoffset=7 xadvance=10 page=0 chnl=0 +char id=74 x=0 y=0 width=15 height=25 xoffset=-1 yoffset=6 xadvance=13 page=0 chnl=0 +char id=75 x=0 y=0 width=21 height=27 xoffset=-2 yoffset=7 xadvance=19 page=0 chnl=0 +char id=76 x=0 y=0 width=17 height=26 xoffset=-2 yoffset=6 xadvance=14 page=0 chnl=0 +char id=77 x=0 y=0 width=27 height=25 xoffset=-2 yoffset=7 xadvance=23 page=0 chnl=0 +char id=78 x=0 y=0 width=20 height=24 xoffset=-2 yoffset=7 xadvance=17 page=0 chnl=0 +char id=79 x=0 y=0 width=21 height=24 xoffset=-2 yoffset=7 xadvance=19 page=0 chnl=0 +char id=80 x=0 y=0 width=20 height=26 xoffset=-2 yoffset=5 xadvance=18 page=0 chnl=0 +char id=81 x=0 y=0 width=21 height=24 xoffset=-2 yoffset=8 xadvance=19 page=0 chnl=0 +char id=82 x=0 y=0 width=21 height=28 xoffset=-2 yoffset=5 xadvance=19 page=0 chnl=0 +char id=83 x=0 y=0 width=19 height=25 xoffset=-2 yoffset=7 xadvance=16 page=0 chnl=0 +char id=84 x=0 y=0 width=18 height=25 xoffset=-1 yoffset=6 xadvance=16 page=0 chnl=0 +char id=85 x=0 y=0 width=17 height=25 xoffset=-2 yoffset=7 xadvance=14 page=0 chnl=0 +char id=86 x=0 y=0 width=16 height=25 xoffset=-1 yoffset=7 xadvance=15 page=0 chnl=0 +char id=87 x=0 y=0 width=26 height=25 xoffset=-2 yoffset=7 xadvance=23 page=0 chnl=0 +char id=88 x=0 y=0 width=19 height=25 xoffset=-1 yoffset=7 xadvance=18 page=0 chnl=0 +char id=89 x=0 y=0 width=19 height=31 xoffset=-1 yoffset=7 xadvance=16 page=0 chnl=0 +char id=90 x=0 y=0 width=16 height=24 xoffset=-1 yoffset=7 xadvance=14 page=0 chnl=0 +char id=91 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=4 page=0 chnl=0 +char id=92 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=14 page=0 chnl=0 +char id=93 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=4 page=0 chnl=0 +char id=94 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0 +char id=95 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=9 page=0 chnl=0 +char id=96 x=0 y=0 width=7 height=8 xoffset=-1 yoffset=7 xadvance=5 page=0 chnl=0 +char id=97 x=0 y=0 width=12 height=16 xoffset=-1 yoffset=13 xadvance=10 page=0 chnl=0 +char id=98 x=0 y=0 width=12 height=22 xoffset=-2 yoffset=7 xadvance=10 page=0 chnl=0 +char id=99 x=0 y=0 width=11 height=16 xoffset=-1 yoffset=13 xadvance=9 page=0 chnl=0 +char id=100 x=0 y=0 width=12 height=22 xoffset=-1 yoffset=7 xadvance=10 page=0 chnl=0 +char id=101 x=0 y=0 width=11 height=16 xoffset=-1 yoffset=13 xadvance=9 page=0 chnl=0 +char id=102 x=0 y=0 width=12 height=22 xoffset=-2 yoffset=7 xadvance=9 page=0 chnl=0 +char id=103 x=0 y=0 width=10 height=24 xoffset=-1 yoffset=12 xadvance=9 page=0 chnl=0 +char id=104 x=0 y=0 width=14 height=22 xoffset=-2 yoffset=7 xadvance=11 page=0 chnl=0 +char id=105 x=0 y=0 width=8 height=20 xoffset=-2 yoffset=9 xadvance=5 page=0 chnl=0 +char id=106 x=0 y=0 width=12 height=27 xoffset=-2 yoffset=9 xadvance=9 page=0 chnl=0 +char id=107 x=0 y=0 width=14 height=22 xoffset=-2 yoffset=7 xadvance=11 page=0 chnl=0 +char id=108 x=0 y=0 width=8 height=22 xoffset=-2 yoffset=7 xadvance=5 page=0 chnl=0 +char id=109 x=0 y=0 width=19 height=16 xoffset=-2 yoffset=13 xadvance=16 page=0 chnl=0 +char id=110 x=0 y=0 width=14 height=16 xoffset=-2 yoffset=13 xadvance=11 page=0 chnl=0 +char id=111 x=0 y=0 width=12 height=17 xoffset=-1 yoffset=12 xadvance=10 page=0 chnl=0 +char id=112 x=0 y=0 width=12 height=22 xoffset=-2 yoffset=13 xadvance=10 page=0 chnl=0 +char id=113 x=0 y=0 width=12 height=22 xoffset=-1 yoffset=13 xadvance=10 page=0 chnl=0 +char id=114 x=0 y=0 width=12 height=16 xoffset=-2 yoffset=13 xadvance=9 page=0 chnl=0 +char id=115 x=0 y=0 width=11 height=17 xoffset=-1 yoffset=13 xadvance=9 page=0 chnl=0 +char id=116 x=0 y=0 width=9 height=21 xoffset=-2 yoffset=8 xadvance=6 page=0 chnl=0 +char id=117 x=0 y=0 width=14 height=16 xoffset=-2 yoffset=13 xadvance=11 page=0 chnl=0 +char id=118 x=0 y=0 width=12 height=16 xoffset=-2 yoffset=13 xadvance=10 page=0 chnl=0 +char id=119 x=0 y=0 width=18 height=16 xoffset=-2 yoffset=13 xadvance=15 page=0 chnl=0 +char id=120 x=0 y=0 width=12 height=18 xoffset=-1 yoffset=12 xadvance=10 page=0 chnl=0 +char id=121 x=0 y=0 width=12 height=22 xoffset=-2 yoffset=13 xadvance=10 page=0 chnl=0 +char id=122 x=0 y=0 width=11 height=16 xoffset=-1 yoffset=13 xadvance=9 page=0 chnl=0 +char id=123 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0 +char id=124 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=3 page=0 chnl=0 +char id=125 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0 +char id=126 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=10 page=0 chnl=0 +char id=127 x=0 y=0 width=41 height=25 xoffset=-1 yoffset=0 xadvance=38 page=0 chnl=0 diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/ecke_lo.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/ecke_lo.png index 6e801c1..2a4e4dc 100644 Binary files a/wizard-client/wizard-client-libgdx/core/src/main/resources/ecke_lo.png and b/wizard-client/wizard-client-libgdx/core/src/main/resources/ecke_lo.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/ecke_lu.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/ecke_lu.png index af5400a..90c28cf 100644 Binary files a/wizard-client/wizard-client-libgdx/core/src/main/resources/ecke_lu.png and b/wizard-client/wizard-client-libgdx/core/src/main/resources/ecke_lu.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/ecke_ro.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/ecke_ro.png index 0701b25..c4bbfcb 100644 Binary files a/wizard-client/wizard-client-libgdx/core/src/main/resources/ecke_ro.png and b/wizard-client/wizard-client-libgdx/core/src/main/resources/ecke_ro.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/ecke_ru.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/ecke_ru.png index b80ce94..55a39ef 100644 Binary files a/wizard-client/wizard-client-libgdx/core/src/main/resources/ecke_ru.png and b/wizard-client/wizard-client-libgdx/core/src/main/resources/ecke_ru.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/font.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/font.png new file mode 100644 index 0000000..dd70d80 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/font.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/schriftzug_s.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/schriftzug_s.png new file mode 100644 index 0000000..dae59fc Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/schriftzug_s.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/check-off.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/check-off.png new file mode 100644 index 0000000..14b6512 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/check-off.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/check-on.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/check-on.png new file mode 100644 index 0000000..5d21b76 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/check-on.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/cursor.9.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/cursor.9.png new file mode 100644 index 0000000..aeed93c Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/cursor.9.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-pane-noborder.9.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-pane-noborder.9.png new file mode 100644 index 0000000..d2c3e66 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-pane-noborder.9.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-pane.9.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-pane.9.png new file mode 100644 index 0000000..6b3f904 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-pane.9.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-rect-down.9.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-rect-down.9.png new file mode 100644 index 0000000..81a63e0 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-rect-down.9.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-rect-pad.9.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-rect-pad.9.png new file mode 100644 index 0000000..6b3f904 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-rect-pad.9.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-rect.9.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-rect.9.png new file mode 100644 index 0000000..f1f5363 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-rect.9.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-round-down.9.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-round-down.9.png new file mode 100644 index 0000000..e017404 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-round-down.9.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-round-large.9.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-round-large.9.png new file mode 100644 index 0000000..ffc12fd Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-round-large.9.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-round.9.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-round.9.png new file mode 100644 index 0000000..adf9568 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-round.9.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-scroll.9.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-scroll.9.png new file mode 100644 index 0000000..832c1a3 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-scroll.9.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-select-selection.9.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-select-selection.9.png new file mode 100644 index 0000000..4649412 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-select-selection.9.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-select.9.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-select.9.png new file mode 100644 index 0000000..38b951a Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-select.9.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-slider-knob.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-slider-knob.png new file mode 100644 index 0000000..e03d374 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-slider-knob.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-slider.9.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-slider.9.png new file mode 100644 index 0000000..5d7a781 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-slider.9.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-splitpane-vertical.9.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-splitpane-vertical.9.png new file mode 100644 index 0000000..f6cffa3 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-splitpane-vertical.9.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-splitpane.9.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-splitpane.9.png new file mode 100644 index 0000000..bd72370 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-splitpane.9.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-window.9.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-window.9.png new file mode 100644 index 0000000..0db9e67 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default-window.9.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default.fnt b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default.fnt new file mode 100644 index 0000000..d581ea8 --- /dev/null +++ b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default.fnt @@ -0,0 +1,102 @@ +info face="Enchanted Land" size=32 bold=0 italic=0 charset="" unicode=0 stretchH=100 smooth=1 aa=1 padding=1,1,1,1 spacing=-2,-2 +common lineHeight=38 base=28 scaleW=512 scaleH=512 pages=1 packed=0 +page id=0 file="font.png" +chars count=98 +char id=0 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=0 page=0 chnl=0 +char id=10 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=0 page=0 chnl=0 +char id=32 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=3 page=0 chnl=0 +char id=33 x=0 y=0 width=7 height=22 xoffset=-1 yoffset=8 xadvance=5 page=0 chnl=0 +char id=34 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=6 page=0 chnl=0 +char id=35 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=11 page=0 chnl=0 +char id=36 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0 +char id=37 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=9 page=0 chnl=0 +char id=38 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=10 page=0 chnl=0 +char id=39 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=3 page=0 chnl=0 +char id=40 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0 +char id=41 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0 +char id=42 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0 +char id=43 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0 +char id=44 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=5 page=0 chnl=0 +char id=45 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0 +char id=46 x=0 y=0 width=7 height=6 xoffset=-1 yoffset=23 xadvance=5 page=0 chnl=0 +char id=47 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=14 page=0 chnl=0 +char id=48 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=9 page=0 chnl=0 +char id=49 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=9 page=0 chnl=0 +char id=50 x=0 y=0 width=12 height=23 xoffset=-1 yoffset=7 xadvance=11 page=0 chnl=0 +char id=51 x=0 y=0 width=11 height=22 xoffset=-1 yoffset=8 xadvance=10 page=0 chnl=0 +char id=52 x=0 y=0 width=15 height=23 xoffset=-1 yoffset=7 xadvance=13 page=0 chnl=0 +char id=53 x=0 y=0 width=12 height=23 xoffset=-1 yoffset=7 xadvance=11 page=0 chnl=0 +char id=54 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=10 page=0 chnl=0 +char id=55 x=0 y=0 width=15 height=22 xoffset=-1 yoffset=8 xadvance=13 page=0 chnl=0 +char id=56 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=9 page=0 chnl=0 +char id=57 x=0 y=0 width=11 height=23 xoffset=-1 yoffset=7 xadvance=10 page=0 chnl=0 +char id=58 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=4 page=0 chnl=0 +char id=59 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=4 page=0 chnl=0 +char id=60 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0 +char id=61 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0 +char id=62 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=8 page=0 chnl=0 +char id=63 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=10 page=0 chnl=0 +char id=64 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=19 page=0 chnl=0 +char id=65 x=0 y=0 width=27 height=28 xoffset=-2 yoffset=6 xadvance=24 page=0 chnl=0 +char id=66 x=0 y=0 width=19 height=26 xoffset=-1 yoffset=5 xadvance=17 page=0 chnl=0 +char id=67 x=0 y=0 width=17 height=24 xoffset=-1 yoffset=7 xadvance=15 page=0 chnl=0 +char id=68 x=0 y=0 width=21 height=26 xoffset=-2 yoffset=6 xadvance=18 page=0 chnl=0 +char id=69 x=0 y=0 width=19 height=25 xoffset=-2 yoffset=6 xadvance=16 page=0 chnl=0 +char id=70 x=0 y=0 width=18 height=25 xoffset=-1 yoffset=6 xadvance=16 page=0 chnl=0 +char id=71 x=0 y=0 width=19 height=24 xoffset=-2 yoffset=7 xadvance=16 page=0 chnl=0 +char id=72 x=0 y=0 width=20 height=23 xoffset=-2 yoffset=8 xadvance=17 page=0 chnl=0 +char id=73 x=0 y=0 width=13 height=24 xoffset=-2 yoffset=7 xadvance=10 page=0 chnl=0 +char id=74 x=0 y=0 width=15 height=25 xoffset=-1 yoffset=6 xadvance=13 page=0 chnl=0 +char id=75 x=0 y=0 width=21 height=27 xoffset=-2 yoffset=7 xadvance=19 page=0 chnl=0 +char id=76 x=0 y=0 width=17 height=26 xoffset=-2 yoffset=6 xadvance=14 page=0 chnl=0 +char id=77 x=0 y=0 width=27 height=25 xoffset=-2 yoffset=7 xadvance=23 page=0 chnl=0 +char id=78 x=0 y=0 width=20 height=24 xoffset=-2 yoffset=7 xadvance=17 page=0 chnl=0 +char id=79 x=0 y=0 width=21 height=24 xoffset=-2 yoffset=7 xadvance=19 page=0 chnl=0 +char id=80 x=0 y=0 width=20 height=26 xoffset=-2 yoffset=5 xadvance=18 page=0 chnl=0 +char id=81 x=0 y=0 width=21 height=24 xoffset=-2 yoffset=8 xadvance=19 page=0 chnl=0 +char id=82 x=0 y=0 width=21 height=28 xoffset=-2 yoffset=5 xadvance=19 page=0 chnl=0 +char id=83 x=0 y=0 width=19 height=25 xoffset=-2 yoffset=7 xadvance=16 page=0 chnl=0 +char id=84 x=0 y=0 width=18 height=25 xoffset=-1 yoffset=6 xadvance=16 page=0 chnl=0 +char id=85 x=0 y=0 width=17 height=25 xoffset=-2 yoffset=7 xadvance=14 page=0 chnl=0 +char id=86 x=0 y=0 width=16 height=25 xoffset=-1 yoffset=7 xadvance=15 page=0 chnl=0 +char id=87 x=0 y=0 width=26 height=25 xoffset=-2 yoffset=7 xadvance=23 page=0 chnl=0 +char id=88 x=0 y=0 width=19 height=25 xoffset=-1 yoffset=7 xadvance=18 page=0 chnl=0 +char id=89 x=0 y=0 width=19 height=31 xoffset=-1 yoffset=7 xadvance=16 page=0 chnl=0 +char id=90 x=0 y=0 width=16 height=24 xoffset=-1 yoffset=7 xadvance=14 page=0 chnl=0 +char id=91 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=4 page=0 chnl=0 +char id=92 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=14 page=0 chnl=0 +char id=93 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=4 page=0 chnl=0 +char id=94 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0 +char id=95 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=9 page=0 chnl=0 +char id=96 x=0 y=0 width=7 height=8 xoffset=-1 yoffset=7 xadvance=5 page=0 chnl=0 +char id=97 x=0 y=0 width=12 height=16 xoffset=-1 yoffset=13 xadvance=10 page=0 chnl=0 +char id=98 x=0 y=0 width=12 height=22 xoffset=-2 yoffset=7 xadvance=10 page=0 chnl=0 +char id=99 x=0 y=0 width=11 height=16 xoffset=-1 yoffset=13 xadvance=9 page=0 chnl=0 +char id=100 x=0 y=0 width=12 height=22 xoffset=-1 yoffset=7 xadvance=10 page=0 chnl=0 +char id=101 x=0 y=0 width=11 height=16 xoffset=-1 yoffset=13 xadvance=9 page=0 chnl=0 +char id=102 x=0 y=0 width=12 height=22 xoffset=-2 yoffset=7 xadvance=9 page=0 chnl=0 +char id=103 x=0 y=0 width=10 height=24 xoffset=-1 yoffset=12 xadvance=9 page=0 chnl=0 +char id=104 x=0 y=0 width=14 height=22 xoffset=-2 yoffset=7 xadvance=11 page=0 chnl=0 +char id=105 x=0 y=0 width=8 height=20 xoffset=-2 yoffset=9 xadvance=5 page=0 chnl=0 +char id=106 x=0 y=0 width=12 height=27 xoffset=-2 yoffset=9 xadvance=9 page=0 chnl=0 +char id=107 x=0 y=0 width=14 height=22 xoffset=-2 yoffset=7 xadvance=11 page=0 chnl=0 +char id=108 x=0 y=0 width=8 height=22 xoffset=-2 yoffset=7 xadvance=5 page=0 chnl=0 +char id=109 x=0 y=0 width=19 height=16 xoffset=-2 yoffset=13 xadvance=16 page=0 chnl=0 +char id=110 x=0 y=0 width=14 height=16 xoffset=-2 yoffset=13 xadvance=11 page=0 chnl=0 +char id=111 x=0 y=0 width=12 height=17 xoffset=-1 yoffset=12 xadvance=10 page=0 chnl=0 +char id=112 x=0 y=0 width=12 height=22 xoffset=-2 yoffset=13 xadvance=10 page=0 chnl=0 +char id=113 x=0 y=0 width=12 height=22 xoffset=-1 yoffset=13 xadvance=10 page=0 chnl=0 +char id=114 x=0 y=0 width=12 height=16 xoffset=-2 yoffset=13 xadvance=9 page=0 chnl=0 +char id=115 x=0 y=0 width=11 height=17 xoffset=-1 yoffset=13 xadvance=9 page=0 chnl=0 +char id=116 x=0 y=0 width=9 height=21 xoffset=-2 yoffset=8 xadvance=6 page=0 chnl=0 +char id=117 x=0 y=0 width=14 height=16 xoffset=-2 yoffset=13 xadvance=11 page=0 chnl=0 +char id=118 x=0 y=0 width=12 height=16 xoffset=-2 yoffset=13 xadvance=10 page=0 chnl=0 +char id=119 x=0 y=0 width=18 height=16 xoffset=-2 yoffset=13 xadvance=15 page=0 chnl=0 +char id=120 x=0 y=0 width=12 height=18 xoffset=-1 yoffset=12 xadvance=10 page=0 chnl=0 +char id=121 x=0 y=0 width=12 height=22 xoffset=-2 yoffset=13 xadvance=10 page=0 chnl=0 +char id=122 x=0 y=0 width=11 height=16 xoffset=-1 yoffset=13 xadvance=9 page=0 chnl=0 +char id=123 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0 +char id=124 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=3 page=0 chnl=0 +char id=125 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=7 page=0 chnl=0 +char id=126 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=10 page=0 chnl=0 +char id=127 x=0 y=0 width=41 height=25 xoffset=-1 yoffset=0 xadvance=38 page=0 chnl=0 diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default.png new file mode 100644 index 0000000..e203acc Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/default.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/font.ttf b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/font.ttf new file mode 100644 index 0000000..8febf37 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/font.ttf differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/pack.json b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/pack.json new file mode 100644 index 0000000..6604f29 --- /dev/null +++ b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/pack.json @@ -0,0 +1,5 @@ +{ + "duplicatePadding": false, + "paddingX": 1, + "paddingY": 1 +} \ No newline at end of file diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/selection.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/selection.png new file mode 100644 index 0000000..d2533cb Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/selection.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/textfield.9.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/textfield.9.png new file mode 100644 index 0000000..cb8ad31 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/textfield.9.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/tree-minus.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/tree-minus.png new file mode 100644 index 0000000..f8e4079 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/tree-minus.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/tree-plus.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/tree-plus.png new file mode 100644 index 0000000..85d23cc Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/tree-plus.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/uiskin.atlas b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/uiskin.atlas new file mode 100644 index 0000000..e51dee1 --- /dev/null +++ b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/uiskin.atlas @@ -0,0 +1,201 @@ + +uiskin.png +size: 256,128 +format: RGBA8888 +filter: Linear,Linear +repeat: none +check-off + rotate: false + xy: 11, 5 + size: 14, 14 + orig: 14, 14 + offset: 0, 0 + index: -1 +textfield + rotate: false + xy: 11, 5 + size: 14, 14 + split: 3, 3, 3, 3 + orig: 14, 14 + offset: 0, 0 + index: -1 +check-on + rotate: false + xy: 125, 35 + size: 14, 14 + orig: 14, 14 + offset: 0, 0 + index: -1 +cursor + rotate: false + xy: 23, 1 + size: 3, 3 + split: 1, 1, 1, 1 + orig: 3, 3 + offset: 0, 0 + index: -1 +default + rotate: false + xy: 1, 50 + size: 254, 77 + orig: 254, 77 + offset: 0, 0 + index: -1 +default-pane + rotate: false + xy: 11, 1 + size: 5, 3 + split: 1, 1, 1, 1 + orig: 5, 3 + offset: 0, 0 + index: -1 +default-rect-pad + rotate: false + xy: 11, 1 + size: 5, 3 + split: 1, 1, 1, 1 + orig: 5, 3 + offset: 0, 0 + index: -1 +default-pane-noborder + rotate: false + xy: 170, 44 + size: 1, 1 + split: 0, 0, 0, 0 + orig: 1, 1 + offset: 0, 0 + index: -1 +default-rect + rotate: false + xy: 38, 25 + size: 3, 3 + split: 1, 1, 1, 1 + orig: 3, 3 + offset: 0, 0 + index: -1 +default-rect-down + rotate: false + xy: 170, 46 + size: 3, 3 + split: 1, 1, 1, 1 + orig: 3, 3 + offset: 0, 0 + index: -1 +default-round + rotate: false + xy: 112, 29 + size: 12, 20 + split: 5, 5, 5, 4 + pad: 4, 4, 1, 1 + orig: 12, 20 + offset: 0, 0 + index: -1 +default-round-down + rotate: false + xy: 99, 29 + size: 12, 20 + split: 5, 5, 5, 4 + pad: 4, 4, 1, 1 + orig: 12, 20 + offset: 0, 0 + index: -1 +default-round-large + rotate: false + xy: 57, 29 + size: 20, 20 + split: 5, 5, 5, 4 + orig: 20, 20 + offset: 0, 0 + index: -1 +default-scroll + rotate: false + xy: 78, 29 + size: 20, 20 + split: 2, 2, 2, 2 + orig: 20, 20 + offset: 0, 0 + index: -1 +default-select + rotate: false + xy: 29, 29 + size: 27, 20 + split: 4, 14, 4, 4 + orig: 27, 20 + offset: 0, 0 + index: -1 +default-select-selection + rotate: false + xy: 26, 16 + size: 3, 3 + split: 1, 1, 1, 1 + orig: 3, 3 + offset: 0, 0 + index: -1 +default-slider + rotate: false + xy: 29, 20 + size: 8, 8 + split: 2, 2, 2, 2 + orig: 8, 8 + offset: 0, 0 + index: -1 +default-slider-knob + rotate: false + xy: 1, 1 + size: 9, 18 + orig: 9, 18 + offset: 0, 0 + index: -1 +default-splitpane + rotate: false + xy: 17, 1 + size: 5, 3 + split: 0, 5, 0, 0 + orig: 5, 3 + offset: 0, 0 + index: -1 +default-splitpane-vertical + rotate: false + xy: 125, 29 + size: 3, 5 + split: 0, 0, 0, 5 + orig: 3, 5 + offset: 0, 0 + index: -1 +default-window + rotate: false + xy: 1, 20 + size: 27, 29 + split: 4, 3, 20, 3 + orig: 27, 29 + offset: 0, 0 + index: -1 +selection + rotate: false + xy: 174, 48 + size: 1, 1 + orig: 1, 1 + offset: 0, 0 + index: -1 +tree-minus + rotate: false + xy: 140, 35 + size: 14, 14 + orig: 14, 14 + offset: 0, 0 + index: -1 +tree-plus + rotate: false + xy: 155, 35 + size: 14, 14 + orig: 14, 14 + offset: 0, 0 + index: -1 +white + rotate: false + xy: 129, 31 + size: 3, 3 + orig: 3, 3 + offset: 0, 0 + index: -1 + diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/uiskin.json b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/uiskin.json new file mode 100644 index 0000000..2bc365c --- /dev/null +++ b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/uiskin.json @@ -0,0 +1,187 @@ +{ + "com.badlogic.gdx.graphics.g2d.BitmapFont":{ + "default-font":{ + "file":"default.fnt" + } + }, + "com.badlogic.gdx.graphics.Color":{ + "green":{ + "a":1, + "b":0, + "g":1, + "r":0 + }, + "white":{ + "a":1, + "b":1, + "g":1, + "r":1 + }, + "red":{ + "a":1, + "b":0, + "g":0, + "r":1 + }, + "black":{ + "a":1, + "b":0, + "g":0, + "r":0 + } + }, + "com.badlogic.gdx.scenes.scene2d.ui.Skin$TintedDrawable":{ + "dialogDim":{ + "name":"white", + "color":{ + "r":0, + "g":0, + "b":0, + "a":0.45 + } + } + }, + "com.badlogic.gdx.scenes.scene2d.ui.Button$ButtonStyle":{ + "default":{ + "down":"default-round-down", + "up":"default-round" + }, + "toggle":{ + "down":"default-round-down", + "checked":"default-round-down", + "up":"default-round" + } + }, + "com.badlogic.gdx.scenes.scene2d.ui.TextButton$TextButtonStyle":{ + "default":{ + "down":"default-round-down", + "up":"default-round", + "font":"default-font", + "fontColor":"white" + }, + "toggle":{ + "down":"default-round-down", + "up":"default-round", + "checked":"default-round-down", + "font":"default-font", + "fontColor":"white", + "downFontColor":"red" + } + }, + "com.badlogic.gdx.scenes.scene2d.ui.ScrollPane$ScrollPaneStyle":{ + "default":{ + "vScroll":"default-scroll", + "hScrollKnob":"default-round-large", + "background":"default-rect", + "hScroll":"default-scroll", + "vScrollKnob":"default-round-large" + } + }, + "com.badlogic.gdx.scenes.scene2d.ui.SelectBox$SelectBoxStyle":{ + "default":{ + "font":"default-font", + "fontColor":"white", + "background":"default-select", + "scrollStyle":"default", + "listStyle":{ + "font":"default-font", + "selection":"default-select-selection" + } + } + }, + "com.badlogic.gdx.scenes.scene2d.ui.SplitPane$SplitPaneStyle":{ + "default-vertical":{ + "handle":"default-splitpane-vertical" + }, + "default-horizontal":{ + "handle":"default-splitpane" + } + }, + "com.badlogic.gdx.scenes.scene2d.ui.Window$WindowStyle":{ + "default":{ + "titleFont":"default-font", + "background":"default-window", + "titleFontColor":"white" + }, + "dialog":{ + "titleFont":"default-font", + "background":"default-window", + "titleFontColor":"white", + "stageBackground":"dialogDim" + } + }, + "com.badlogic.gdx.scenes.scene2d.ui.ProgressBar$ProgressBarStyle":{ + "default-horizontal":{ + "background":"default-slider", + "knob":"default-slider-knob" + }, + "default-vertical":{ + "background":"default-slider", + "knob":"default-round-large" + } + }, + "com.badlogic.gdx.scenes.scene2d.ui.Slider$SliderStyle":{ + "default-horizontal":{ + "background":"default-slider", + "knob":"default-slider-knob" + }, + "default-vertical":{ + "background":"default-slider", + "knob":"default-round-large" + } + }, + "com.badlogic.gdx.scenes.scene2d.ui.Label$LabelStyle":{ + "default":{ + "font":"default-font", + "fontColor":"white" + } + }, + "com.badlogic.gdx.scenes.scene2d.ui.TextField$TextFieldStyle":{ + "default":{ + "selection":"selection", + "background":"textfield", + "font":"default-font", + "fontColor":"white", + "cursor":"cursor" + } + }, + "com.badlogic.gdx.scenes.scene2d.ui.CheckBox$CheckBoxStyle":{ + "default":{ + "checkboxOn":"check-on", + "checkboxOff":"check-off", + "font":"default-font", + "fontColor":"white" + } + }, + "com.badlogic.gdx.scenes.scene2d.ui.List$ListStyle":{ + "default":{ + "fontColorUnselected":"white", + "selection":"selection", + "fontColorSelected":"white", + "font":"default-font" + } + }, + "com.badlogic.gdx.scenes.scene2d.ui.Touchpad$TouchpadStyle":{ + "default":{ + "background":"default-pane", + "knob":"default-round-large" + } + }, + "com.badlogic.gdx.scenes.scene2d.ui.Tree$TreeStyle":{ + "default":{ + "minus":"tree-minus", + "plus":"tree-plus", + "selection":"default-select-selection" + } + }, + "com.badlogic.gdx.scenes.scene2d.ui.TextTooltip$TextTooltipStyle":{ + "default":{ + "label":{ + "font":"default-font", + "fontColor":"white" + }, + "background":"default-pane", + "wrapWidth":150 + } + } +} diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/uiskin.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/uiskin.png new file mode 100644 index 0000000..c1e5f1a Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/uiskin.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/white.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/white.png new file mode 100644 index 0000000..5c94704 Binary files /dev/null and b/wizard-client/wizard-client-libgdx/core/src/main/resources/skin/white.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/symbol1.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/symbol1.png index 05fbb76..36ad4f7 100644 Binary files a/wizard-client/wizard-client-libgdx/core/src/main/resources/symbol1.png and b/wizard-client/wizard-client-libgdx/core/src/main/resources/symbol1.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/symbol2.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/symbol2.png index cf896b7..3791efa 100644 Binary files a/wizard-client/wizard-client-libgdx/core/src/main/resources/symbol2.png and b/wizard-client/wizard-client-libgdx/core/src/main/resources/symbol2.png differ diff --git a/wizard-client/wizard-client-libgdx/core/src/main/resources/symbol3.png b/wizard-client/wizard-client-libgdx/core/src/main/resources/symbol3.png index 07a3be3..3dbc956 100644 Binary files a/wizard-client/wizard-client-libgdx/core/src/main/resources/symbol3.png and b/wizard-client/wizard-client-libgdx/core/src/main/resources/symbol3.png differ diff --git a/wizard-client/wizard-client-libgdx/desktop/src/main/java/eu/jonahbauer/wizard/client/libgdx/desktop/DesktopLauncher.java b/wizard-client/wizard-client-libgdx/desktop/src/main/java/eu/jonahbauer/wizard/client/libgdx/desktop/DesktopLauncher.java index 213bd70..bdc716b 100644 --- a/wizard-client/wizard-client-libgdx/desktop/src/main/java/eu/jonahbauer/wizard/client/libgdx/desktop/DesktopLauncher.java +++ b/wizard-client/wizard-client-libgdx/desktop/src/main/java/eu/jonahbauer/wizard/client/libgdx/desktop/DesktopLauncher.java @@ -2,11 +2,16 @@ package eu.jonahbauer.wizard.client.libgdx.desktop; import com.badlogic.gdx.backends.lwjgl.LwjglApplication; import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration; -import eu.jonahbauer.wizard.client.libgdx.MyGdxGame; +import eu.jonahbauer.wizard.client.libgdx.WizardGame; public class DesktopLauncher { public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); - new LwjglApplication(new MyGdxGame(), config); + config.title = "Wizard Jubilaeumsedition 2021"; + config.height = WizardGame.HEIGHT; + config.width = WizardGame.WIDTH; + config.foregroundFPS = 60; + config.resizable = false; + LwjglApplication app = new LwjglApplication(new WizardGame(), config); } }