diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-12 15:25:59 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-12 15:25:59 +0200 |
commit | a73e8da681577e8b28a176dae366fd708b80ed73 (patch) | |
tree | 2062f7a898571450b1452385d2f4633811b859b6 /core/src/ch/asynk | |
parent | 0b45d496943a108c6971abc4f7d2a89fc1b636f3 (diff) | |
download | RustAndDust-a73e8da681577e8b28a176dae366fd708b80ed73.zip RustAndDust-a73e8da681577e8b28a176dae366fd708b80ed73.tar.gz |
add simple skin from libgdx tests
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/tankontank/TankOnTank.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/TankOnTank.java b/core/src/ch/asynk/tankontank/TankOnTank.java index f1958ce..ad04382 100644 --- a/core/src/ch/asynk/tankontank/TankOnTank.java +++ b/core/src/ch/asynk/tankontank/TankOnTank.java @@ -5,12 +5,14 @@ import com.badlogic.gdx.Game; import com.badlogic.gdx.assets.AssetManager; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.TextureAtlas; +import com.badlogic.gdx.scenes.scene2d.ui.Skin; import ch.asynk.tankontank.screens.LoadScreen; public class TankOnTank extends Game { public AssetManager manager; + public Skin skin; @Override public void create () @@ -19,8 +21,10 @@ public class TankOnTank extends Game Gdx.app.debug("TankOnTank", "create() [" + Gdx.graphics.getWidth() + ";" + Gdx.graphics.getHeight() + "]"); manager = new AssetManager(); + skin = new Skin(Gdx.files.internal("skin/uiskin.json")); this.setScreen(new LoadScreen(this)); + } public void loadAssets() |