summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-22 22:32:16 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-22 22:32:16 +0100
commitcf5a3ff71945fb8bd0714d24c1e09e1a66a1711a (patch)
tree87649a4b98f705d7f393dcfe2ecaf32998fbee9d /core/src
parentfbaa9d2cae81c4bea81d0fafaa1954c6d43e906c (diff)
downloadRustAndDust-cf5a3ff71945fb8bd0714d24c1e09e1a66a1711a.zip
RustAndDust-cf5a3ff71945fb8bd0714d24c1e09e1a66a1711a.tar.gz
Hud: notificytion time is 2 seconds by default
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hud.java7
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)