summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-09 01:34:28 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-09 01:34:28 +0100
commitf1514c73017d8b7df41c26255608addc781f2366 (patch)
treed83523dd846cb1ce3189c5137cd5c458ffd56893 /core/src
parente3a1e2affc02555b5718493ac7f0a2ec8affa588 (diff)
downloadRustAndDust-f1514c73017d8b7df41c26255608addc781f2366.zip
RustAndDust-f1514c73017d8b7df41c26255608addc781f2366.tar.gz
OkCancel: use Bg instead of Image
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/OkCancel.java10
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;
}