From a23d878934a0669c5539d6b3548d88e698d81f0a Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 23 Jun 2015 20:11:08 -0400 Subject: SHERLOCK: RT: Create WidgetMessage class for displaying messages --- engines/sherlock/tattoo/widget_text.h | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'engines/sherlock/tattoo/widget_text.h') diff --git a/engines/sherlock/tattoo/widget_text.h b/engines/sherlock/tattoo/widget_text.h index c213f2da6d..e77342531e 100644 --- a/engines/sherlock/tattoo/widget_text.h +++ b/engines/sherlock/tattoo/widget_text.h @@ -33,15 +33,39 @@ class SherlockEngine; namespace Tattoo { class WidgetText: public WidgetBase { +private: + /** + * Display the passed text in a window of the given bounds + */ + void load(const Common::String &str, const Common::Rect &bounds); public: Common::String _remainingText; public: WidgetText(SherlockEngine *vm); virtual ~WidgetText() {} + /** + * Load the data for the text window + */ void load(const Common::String &str); +}; - void load(const Common::String &str, const Common::Rect &bounds); +class WidgetMessage : public WidgetBase { +private: + int _menuCounter; +public: + WidgetMessage(SherlockEngine *vm); + virtual ~WidgetMessage() {} + + /** + * Load the data for the text window + */ + void load(const Common::String &str, int time); + + /** + * Handle event processing + */ + virtual void handleEvents(); }; } // End of namespace Tattoo -- cgit v1.2.3