From f1514c73017d8b7df41c26255608addc781f2366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 9 Nov 2014 01:34:28 +0100 Subject: OkCancel: use Bg instead of Image --- core/src/ch/asynk/tankontank/game/hud/OkCancel.java | 10 ++++------ 1 file 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; } -- cgit v1.1-2-g2b99