diff options
author | Paul Gilbert | 2016-04-28 22:12:16 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:22:39 -0400 |
commit | 487f2cef0f0be9bae3b815623b4dceb02e466ce0 (patch) | |
tree | 3cbda169c4d9ad8627d5e8b00fa8a64c5925983f /engines/titanic/pet_control/pet_text.h | |
parent | 23f5691b97cb53fd45ef411f051b7f10f0523a24 (diff) | |
download | scummvm-rg350-487f2cef0f0be9bae3b815623b4dceb02e466ce0.tar.gz scummvm-rg350-487f2cef0f0be9bae3b815623b4dceb02e466ce0.tar.bz2 scummvm-rg350-487f2cef0f0be9bae3b815623b4dceb02e466ce0.zip |
TITANIC: Handle Conversations double click, PET Text key handling
Diffstat (limited to 'engines/titanic/pet_control/pet_text.h')
-rw-r--r-- | engines/titanic/pet_control/pet_text.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_text.h b/engines/titanic/pet_control/pet_text.h index 6000dd6d0b..4bb699d58e 100644 --- a/engines/titanic/pet_control/pet_text.h +++ b/engines/titanic/pet_control/pet_text.h @@ -23,6 +23,7 @@ #ifndef TITANIC_PET_TEXT_H #define TITANIC_PET_TEXT_H +#include "common/keyboard.h" #include "titanic/support/simple_file.h" #include "titanic/support/screen_manager.h" #include "titanic/support/text_cursor.h" @@ -71,9 +72,9 @@ private: void mergeStrings(); /** - * Change the text + * Append text to the current text line */ - void changeText(const CString &str); + void appendText(const CString &str); void updateStr3(int lineNum); @@ -192,6 +193,13 @@ public: * Add a line to the text */ void addLine(const CString &str, byte r, byte g, byte b); + + /** + * Handles character processing to add or remove characters to + * the current text line + * @returns True if the Enter key was pressed + */ + bool handleKey(const Common::KeyState &keyState); }; } // End of namespace Titanic |