aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs_input.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen/dialogs_input.h')
-rw-r--r--engines/xeen/dialogs_input.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/engines/xeen/dialogs_input.h b/engines/xeen/dialogs_input.h
index 26fdb47f4b..c6b0e69423 100644
--- a/engines/xeen/dialogs_input.h
+++ b/engines/xeen/dialogs_input.h
@@ -32,18 +32,25 @@ namespace Xeen {
class Input : public ButtonContainer {
private:
/**
- * Draws the cursor and waits until the user presses a key
+ * Draws the text input and cursor and waits until the user presses a key
*/
- Common::KeyCode doCursor(const Common::String &msg);
+ Common::KeyCode waitForKey(const Common::String &msg);
+
+ /**
+ * Animates the box text cursor
+ */
+ void animateCursor();
protected:
Window *_window;
+ int _cursorAnimIndex;
/**
* Allows the user to enter a string
*/
int getString(Common::String &line, uint maxLen, int maxWidth, bool isNumeric);
- Input(XeenEngine *vm, Window *window) : ButtonContainer(vm), _window(window) {}
+ Input(XeenEngine *vm, Window *window) : ButtonContainer(vm),
+ _window(window), _cursorAnimIndex(0) {}
public:
static int show(XeenEngine *vm, Window *window, Common::String &line,
uint maxLen, int maxWidth, bool isNumeric = false);