From b7ad513b0f0c99bc670546dbb3483e93d59652ee Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 28 Apr 2016 19:10:18 -0400 Subject: TITANIC: Implement PET Text scrolling --- engines/titanic/pet_control/pet_conversations.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'engines/titanic/pet_control/pet_conversations.h') 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 -- cgit v1.2.3