summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-10 09:07:03 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-10 09:07:03 +0100
commit47d6d97f916fc4030e533b0fdb524d494018cdd7 (patch)
treec7d5634780e72da9df35b4d6e47e92cf1d57413a /core/src/ch
parent48959904e8d063e055971d33b2c205236ebbd3e0 (diff)
downloadRustAndDust-47d6d97f916fc4030e533b0fdb524d494018cdd7.zip
RustAndDust-47d6d97f916fc4030e533b0fdb524d494018cdd7.tar.gz
Hud: add notify(String, Position)
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Hud.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Hud.java b/core/src/ch/asynk/rustanddust/game/Hud.java
index 522837e..a368f56 100644
--- a/core/src/ch/asynk/rustanddust/game/Hud.java
+++ b/core/src/ch/asynk/rustanddust/game/Hud.java
@@ -154,6 +154,11 @@ public class Hud implements Disposable, Animation
notify(s, NOTIFY_DURATION, Position.TOP_CENTER, false);
}
+ public void notify(String s, Position pos)
+ {
+ notify(s, NOTIFY_DURATION, pos, false);
+ }
+
public void notify(String s, float duration, Position position, boolean push)
{
if (push) msg.pushWrite(s, duration, position);