aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo/widget_text.h
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-26 19:42:54 -0400
committerPaul Gilbert2015-06-26 19:42:54 -0400
commit47a3080af2ec686957ee813a309fb7704bd31dd8 (patch)
tree5945f606de913e3753368e3dc3d1a6460d970fd1 /engines/sherlock/tattoo/widget_text.h
parent53e65d2e94b068e3cea3b588dcb32c698499382e (diff)
downloadscummvm-rg350-47a3080af2ec686957ee813a309fb7704bd31dd8.tar.gz
scummvm-rg350-47a3080af2ec686957ee813a309fb7704bd31dd8.tar.bz2
scummvm-rg350-47a3080af2ec686957ee813a309fb7704bd31dd8.zip
SHERLOCK: RT: Code for positioning text windows over characters
Diffstat (limited to 'engines/sherlock/tattoo/widget_text.h')
-rw-r--r--engines/sherlock/tattoo/widget_text.h11
1 files changed, 8 insertions, 3 deletions
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 {