summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/src/ch/asynk/rustanddust/ui/LabelStack.java3
-rw-r--r--core/src/ch/asynk/rustanddust/ui/Msg.java4
2 files changed, 5 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/ui/LabelStack.java b/core/src/ch/asynk/rustanddust/ui/LabelStack.java
index 15b0117..b534f45 100644
--- a/core/src/ch/asynk/rustanddust/ui/LabelStack.java
+++ b/core/src/ch/asynk/rustanddust/ui/LabelStack.java
@@ -57,13 +57,14 @@ public class LabelStack extends Label implements Animation
@Override
public boolean animate(float delta)
{
- if (!visible) return true;
+ if (!visible) return false;
elapsed += delta;
if (elapsed >= duration) {
visible = false;
if (stack.size() > 0) {
MsgInfo info = stack.pop();
write(info.text, info.duration, info.position);
+ return true;
}
}
return false;
diff --git a/core/src/ch/asynk/rustanddust/ui/Msg.java b/core/src/ch/asynk/rustanddust/ui/Msg.java
index 16c4e2d..5e5f4b6 100644
--- a/core/src/ch/asynk/rustanddust/ui/Msg.java
+++ b/core/src/ch/asynk/rustanddust/ui/Msg.java
@@ -58,7 +58,9 @@ public class Msg extends Patch
public boolean animate(float delta)
{
- return label.animate(delta);
+ if (label.animate(delta))
+ resize();
+ return true;
}
@Override