summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-02-09 20:57:21 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-02-09 20:57:21 +0100
commit104872acbf8b2f5d894230127afe8494a15a2d28 (patch)
treeb0ee2e1652a8410a621ab14d12563eb292355f95 /core/src
parent34a39b090df3f05b3780b72c080aa48d6e14dfea (diff)
downloadRustAndDust-104872acbf8b2f5d894230127afe8494a15a2d28.zip
RustAndDust-104872acbf8b2f5d894230127afe8494a15a2d28.tar.gz
add ui/frame.9.png -> game.framePatch
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/rustanddust/RustAndDust.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/RustAndDust.java b/core/src/ch/asynk/rustanddust/RustAndDust.java
index 161ba81..a02974b 100644
--- a/core/src/ch/asynk/rustanddust/RustAndDust.java
+++ b/core/src/ch/asynk/rustanddust/RustAndDust.java
@@ -24,6 +24,7 @@ import ch.asynk.rustanddust.ui.Bg;
public class RustAndDust extends Game
{
public static final String BG_PATCH = "bg";
+ public static final String FRAME_PATCH = "frame";
public static final String TTF_FONT = "skin/veteran-typewriter.ttf";
public static final String ATLAS_UI = "data/ui.atlas";
public static final String ATLAS_HUD = "data/hud.atlas";
@@ -71,6 +72,7 @@ public class RustAndDust extends Game
public TextureAtlas uiAtlas;
public BitmapFont font;
public NinePatch bgPatch;
+ public NinePatch framePatch;
public enum State
{
@@ -215,6 +217,7 @@ public class RustAndDust extends Game
parameter.color = Color.BLACK;
font = generator.generateFont(parameter);
bgPatch = uiAtlas.createPatch(BG_PATCH);
+ framePatch = uiAtlas.createPatch(FRAME_PATCH);
}
private void unloadUiAssets()