aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo/widget_talk.h
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-03 15:55:15 -0400
committerPaul Gilbert2015-07-03 15:55:15 -0400
commitd3a5db8ad75200f58f8f5ca7b10504e41aa9f6c2 (patch)
tree6d278b0d0356dfad92c4861487a11c4e4f624636 /engines/sherlock/tattoo/widget_talk.h
parentd6464b48fc91bd52b65a2d6985b36f25f1c7b1ef (diff)
downloadscummvm-rg350-d3a5db8ad75200f58f8f5ca7b10504e41aa9f6c2.tar.gz
scummvm-rg350-d3a5db8ad75200f58f8f5ca7b10504e41aa9f6c2.tar.bz2
scummvm-rg350-d3a5db8ad75200f58f8f5ca7b10504e41aa9f6c2.zip
SHERLOCK: RT: Implement talk dialog setStatementLines
Diffstat (limited to 'engines/sherlock/tattoo/widget_talk.h')
-rw-r--r--engines/sherlock/tattoo/widget_talk.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/widget_talk.h b/engines/sherlock/tattoo/widget_talk.h
index 11b1b64ce4..1dbbc22a69 100644
--- a/engines/sherlock/tattoo/widget_talk.h
+++ b/engines/sherlock/tattoo/widget_talk.h
@@ -41,6 +41,9 @@ class WidgetTalk: public WidgetBase {
struct StatementLine {
Common::String _line;
int _num;
+
+ StatementLine() : _num(0) {}
+ StatementLine(const Common::String &line, int num) : _line(line), _num(num) {}
};
private:
int _talkScrollIndex;
@@ -56,6 +59,10 @@ private:
*/
void render(Highlight highlightMode);
+ /**
+ * This initializes the _statementLines array, which contains the talk options split up line
+ * by line, as well as which statement a particular line is part of.
+ */
void setStatementLines();
public:
WidgetTalk(SherlockEngine *vm);
@@ -68,6 +75,11 @@ public:
void load();
/**
+ * Refresh the talk display
+ */
+ void refresh();
+
+ /**
* Handle event processing
*/
virtual void handleEvents();