diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/rustanddust/ui/LabelImage.java | 9 |
1 files 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) |