diff options
author | Paul Gilbert | 2015-06-23 20:11:08 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-06-23 20:11:08 -0400 |
commit | a23d878934a0669c5539d6b3548d88e698d81f0a (patch) | |
tree | bb2e2078b97909cad2c3576ea333be5877b1ccfc /engines/sherlock/tattoo/widget_text.h | |
parent | f0c0fd5922fbad5cfb577abe885c9b8e1ac56174 (diff) | |
download | scummvm-rg350-a23d878934a0669c5539d6b3548d88e698d81f0a.tar.gz scummvm-rg350-a23d878934a0669c5539d6b3548d88e698d81f0a.tar.bz2 scummvm-rg350-a23d878934a0669c5539d6b3548d88e698d81f0a.zip |
SHERLOCK: RT: Create WidgetMessage class for displaying messages
Diffstat (limited to 'engines/sherlock/tattoo/widget_text.h')
-rw-r--r-- | engines/sherlock/tattoo/widget_text.h | 26 |
1 files changed, 25 insertions, 1 deletions
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 |