aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_text.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-29 07:54:54 -0400
committerPaul Gilbert2016-07-10 16:22:40 -0400
commitb117bae55a52efdfd0e7593e4e3038d22101d8bc (patch)
tree7d57ee8c7c95bfb2f854fb106cf843f9bd2413e9 /engines/titanic/pet_control/pet_text.h
parent487f2cef0f0be9bae3b815623b4dceb02e466ce0 (diff)
downloadscummvm-rg350-b117bae55a52efdfd0e7593e4e3038d22101d8bc.tar.gz
scummvm-rg350-b117bae55a52efdfd0e7593e4e3038d22101d8bc.tar.bz2
scummvm-rg350-b117bae55a52efdfd0e7593e4e3038d22101d8bc.zip
TITANIC: Implemented conversations text input entry
Diffstat (limited to 'engines/titanic/pet_control/pet_text.h')
-rw-r--r--engines/titanic/pet_control/pet_text.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_text.h b/engines/titanic/pet_control/pet_text.h
index 4bb699d58e..00eab10146 100644
--- a/engines/titanic/pet_control/pet_text.h
+++ b/engines/titanic/pet_control/pet_text.h
@@ -92,6 +92,11 @@ private:
* Ensures the Y scrolling for the text is in the valid range
*/
void constrainScrollDown(CScreenManager *screenManager);
+
+ /**
+ * Get the page height for paging up and down
+ */
+ int getPageHeight(CScreenManager *screenManager);
public:
CPetText(uint count = 10);
@@ -180,6 +185,21 @@ public:
void scrollDown(CScreenManager *screenManager);
/**
+ * Scroll the text up one page
+ */
+ void scrollUpPage(CScreenManager *screenManager);
+
+ /**
+ * Scroll the text down one page
+ */
+ void scrollDownPage(CScreenManager *screenManager);
+
+ /**
+ * Scroll to the top of the text
+ */
+ void scrollToTop(CScreenManager *screenManager);
+
+ /**
* Scroll to the bottom of the text
*/
void scrollToBottom(CScreenManager *screenManager);
@@ -199,7 +219,7 @@ public:
* the current text line
* @returns True if the Enter key was pressed
*/
- bool handleKey(const Common::KeyState &keyState);
+ bool handleKey(char c);
};
} // End of namespace Titanic