diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-22 22:32:16 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-22 22:32:16 +0100 |
commit | cf5a3ff71945fb8bd0714d24c1e09e1a66a1711a (patch) | |
tree | 87649a4b98f705d7f393dcfe2ecaf32998fbee9d /core/src/ch/asynk/tankontank | |
parent | fbaa9d2cae81c4bea81d0fafaa1954c6d43e906c (diff) | |
download | RustAndDust-cf5a3ff71945fb8bd0714d24c1e09e1a66a1711a.zip RustAndDust-cf5a3ff71945fb8bd0714d24c1e09e1a66a1711a.tar.gz |
Hud: notificytion time is 2 seconds by default
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hud.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java index 929fc87..7c31aa0 100644 --- a/core/src/ch/asynk/tankontank/game/Hud.java +++ b/core/src/ch/asynk/tankontank/game/Hud.java @@ -20,6 +20,7 @@ import ch.asynk.tankontank.TankOnTank; public class Hud implements Disposable { public static final float OFFSET = 10f; + public static final float NOTIFY_DURATION = 2f; private final TankOnTank game; private final Ctrl ctrl; @@ -104,18 +105,18 @@ public class Hud implements Disposable public void pushNotify(String s) { - notify(s, 1, Position.TOP_CENTER, true); + notify(s, NOTIFY_DURATION, Position.TOP_CENTER, true); } public void notify(String s) { - notify(s, 1, Position.TOP_CENTER, false); + notify(s, NOTIFY_DURATION, Position.TOP_CENTER, false); } public void notify(String s, float duration, Position position, boolean push) { if (push) msg.pushWrite(s, duration, position); - else msg.write(s, 1, position); + else msg.write(s, duration, position); } public boolean touchDown(float x, float y) |