diff options
author | Paul Gilbert | 2016-04-28 19:10:18 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:22:33 -0400 |
commit | b7ad513b0f0c99bc670546dbb3483e93d59652ee (patch) | |
tree | 82b392afae383fba2fffe5b2016fcceb21240432 /engines/titanic/pet_control/pet_conversations.h | |
parent | b324d2ea6cd422bafd846642ed54620abe7e32ea (diff) | |
download | scummvm-rg350-b7ad513b0f0c99bc670546dbb3483e93d59652ee.tar.gz scummvm-rg350-b7ad513b0f0c99bc670546dbb3483e93d59652ee.tar.bz2 scummvm-rg350-b7ad513b0f0c99bc670546dbb3483e93d59652ee.zip |
TITANIC: Implement PET Text scrolling
Diffstat (limited to 'engines/titanic/pet_control/pet_conversations.h')
-rw-r--r-- | engines/titanic/pet_control/pet_conversations.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_conversations.h b/engines/titanic/pet_control/pet_conversations.h index 89dbc5eb96..8a3ca886a5 100644 --- a/engines/titanic/pet_control/pet_conversations.h +++ b/engines/titanic/pet_control/pet_conversations.h @@ -31,8 +31,8 @@ namespace Titanic { class CPetConversations : public CPetSection { private: - CPetGfxElement _val1; - CPetGfxElement _val2; + CPetGfxElement _scrollUp; + CPetGfxElement _scrollDown; CPetGfxElement _val3; CPetGfxElement _gfxList[3]; CPetGfxElement _val4; @@ -55,6 +55,16 @@ private: * Sets up the control */ bool setupControl(CPetControl *petControl); + + /** + * Scroll down the conversation log + */ + void scrollDown(); + + /** + * Scroll up the conversation log + */ + void scrollUp(); public: CPetConversations(); @@ -72,6 +82,12 @@ public: * Returns true if the object is in a valid state */ virtual bool isValid(CPetControl *petControl); + + /** + * Following are handlers for the various messages that the PET can + * pass onto the currently active section/area + */ + virtual bool MouseButtonDownMsg(CMouseButtonDownMsg *msg); }; } // End of namespace Titanic |