From 7186eab65f47c7370925d1a72598ccd8e0656076 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 18 Jun 2015 21:48:27 -0400 Subject: SHERLOCK: RT: Implement loading for the text window widget --- engines/sherlock/tattoo/widget_base.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'engines/sherlock/tattoo/widget_base.h') diff --git a/engines/sherlock/tattoo/widget_base.h b/engines/sherlock/tattoo/widget_base.h index 2a9988bc49..38b6d04b20 100644 --- a/engines/sherlock/tattoo/widget_base.h +++ b/engines/sherlock/tattoo/widget_base.h @@ -31,6 +31,7 @@ namespace Sherlock { class SherlockEngine; +class ImageFile; namespace Tattoo { @@ -39,6 +40,19 @@ protected: SherlockEngine *_vm; Common::Rect _bounds, _oldBounds; Surface _surface; + ImageFile *_images; + + /** + * Used by descendent classes to split up long text for display across multiple lines + */ + Common::String splitLines(const Common::String &str, Common::StringArray &lines, int maxWidth, uint maxLines); + + /** + * Ensure that menu is drawn entirely on-screen + */ + void checkMenuPosition(); + + void makeInfoArea(); public: WidgetBase(SherlockEngine *vm); virtual ~WidgetBase() {} -- cgit v1.2.3