summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-05-17 17:34:30 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-05-17 17:34:30 +0200
commit8bf85d12922e2824bf9569239a3c71e47b654feb (patch)
treedd92d407cb1f320343f330e931eb8e3675e58a71 /core/src
parente46565deab0f725af547096c7eac8e3cccd5b72a (diff)
downloadRustAndDust-8bf85d12922e2824bf9569239a3c71e47b654feb.zip
RustAndDust-8bf85d12922e2824bf9569239a3c71e47b654feb.tar.gz
LabelImage: del setPosition(), add update() called by translate(float, float)
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/rustanddust/ui/LabelImage.java9
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)