summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-02-16 12:25:36 -0500
committerStarla Insigna <hatkirby@fourisland.com>2009-02-16 12:25:36 -0500
commit6b188d5f1415c69cc62fcbd853802f279fcd690d (patch)
treee6ae2b26e46874896f7eea1c8eed99b3a82dd50e
parent112d6b869467e4d5756227e4a5bfc8359bd5d884 (diff)
downloadfourpuzzle-6b188d5f1415c69cc62fcbd853802f279fcd690d.tar.gz
fourpuzzle-6b188d5f1415c69cc62fcbd853802f279fcd690d.tar.bz2
fourpuzzle-6b188d5f1415c69cc62fcbd853802f279fcd690d.zip
Engine: Added delay to MessageWindow
Previously, if a conversation was going on and a specific message was short, the user simply still holding down the action key would trigger the next message and it wouldn't be seen. To fix this, the KeyInput is reset every tick during a message.
-rw-r--r--src/com/fourisland/fourpuzzle/window/MessageWindow.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/fourisland/fourpuzzle/window/MessageWindow.java b/src/com/fourisland/fourpuzzle/window/MessageWindow.java index ca916a3..413805d 100644 --- a/src/com/fourisland/fourpuzzle/window/MessageWindow.java +++ b/src/com/fourisland/fourpuzzle/window/MessageWindow.java
@@ -68,9 +68,11 @@ public class MessageWindow implements Renderable {
68 if ((key.getKey() == KeyEvent.VK_ENTER) || (key.getKey() == KeyEvent.VK_SPACE)) 68 if ((key.getKey() == KeyEvent.VK_ENTER) || (key.getKey() == KeyEvent.VK_SPACE))
69 { 69 {
70 if (mw.pushEnter()) 70 if (mw.pushEnter())
71 { 71 {
72 cdl.countDown(); 72 cdl.countDown();
73 } 73 }
74
75 key.letGo();
74 } 76 }
75 } 77 }
76 }; 78 };