From 47a3080af2ec686957ee813a309fb7704bd31dd8 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 26 Jun 2015 19:42:54 -0400 Subject: SHERLOCK: RT: Code for positioning text windows over characters --- engines/sherlock/tattoo/widget_text.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (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 e77342531e..f027bdae9f 100644 --- a/engines/sherlock/tattoo/widget_text.h +++ b/engines/sherlock/tattoo/widget_text.h @@ -35,9 +35,14 @@ namespace Tattoo { class WidgetText: public WidgetBase { private: /** - * Display the passed text in a window of the given bounds + * Center the area the dialog will be drawn on above a given speaker */ - void load(const Common::String &str, const Common::Rect &bounds); + void centerWindowOnSpeaker(int speaker); + + /** + * Build up the text dialog based on the previously set bounds + */ + void render(const Common::String &str); public: Common::String _remainingText; public: @@ -47,7 +52,7 @@ public: /** * Load the data for the text window */ - void load(const Common::String &str); + void load(const Common::String &str, int speaker = -1); }; class WidgetMessage : public WidgetBase { -- cgit v1.2.3