From 8bf85d12922e2824bf9569239a3c71e47b654feb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 17 May 2016 17:34:30 +0200 Subject: LabelImage: del setPosition(), add update() called by translate(float, float) --- core/src/ch/asynk/rustanddust/ui/LabelImage.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/src/ch/asynk/rustanddust/ui/LabelImage.java b/core/src/ch/asynk/rustanddust/ui/LabelImage.java index d730d91..eb26f7f 100644 --- a/core/src/ch/asynk/rustanddust/ui/LabelImage.java +++ b/core/src/ch/asynk/rustanddust/ui/LabelImage.java @@ -36,13 +36,14 @@ public class LabelImage extends Bg public void translate(float dx, float dy) { super.translate(dx, dy); - label.translate(dx, dy); + label.update(); } - public void setPosition(float x, float y) + @Override + public void update() { - super.setPosition(x, y); - label.setPosition(x, y); + super.update(); + label.update(); } public void setLabelPosition(Position position) -- cgit v1.1-2-g2b99