diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-09 01:34:28 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-09 01:34:28 +0100 |
commit | f1514c73017d8b7df41c26255608addc781f2366 (patch) | |
tree | d83523dd846cb1ce3189c5137cd5c458ffd56893 /core/src/ch/asynk/tankontank/game | |
parent | e3a1e2affc02555b5718493ac7f0a2ec8affa588 (diff) | |
download | RustAndDust-f1514c73017d8b7df41c26255608addc781f2366.zip RustAndDust-f1514c73017d8b7df41c26255608addc781f2366.tar.gz |
OkCancel: use Bg instead of Image
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/hud/OkCancel.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/OkCancel.java b/core/src/ch/asynk/tankontank/game/hud/OkCancel.java index 45fb572..59d345c 100644 --- a/core/src/ch/asynk/tankontank/game/hud/OkCancel.java +++ b/core/src/ch/asynk/tankontank/game/hud/OkCancel.java @@ -6,22 +6,20 @@ import com.badlogic.gdx.graphics.g2d.TextureAtlas; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; -import ch.asynk.tankontank.engine.gfx.Image; - public class OkCancel extends Bg { public boolean ok; public float padding; protected Label label; - protected Image okBtn; - protected Image cancelBtn; + protected Bg okBtn; + protected Bg cancelBtn; public OkCancel(BitmapFont font, TextureRegion region, TextureAtlas atlas, float padding) { super(region); this.label = new Label(font); - this.okBtn = new Image(atlas.findRegion("ok")); - this.cancelBtn = new Image(atlas.findRegion("cancel")); + this.okBtn = new Bg(atlas.findRegion("ok")); + this.cancelBtn = new Bg(atlas.findRegion("cancel")); this.visible = false; this.padding = padding; } |