From d3a5db8ad75200f58f8f5ca7b10504e41aa9f6c2 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 3 Jul 2015 15:55:15 -0400 Subject: SHERLOCK: RT: Implement talk dialog setStatementLines --- engines/sherlock/tattoo/widget_talk.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'engines/sherlock/tattoo/widget_talk.h') 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); @@ -67,6 +74,11 @@ public: */ void load(); + /** + * Refresh the talk display + */ + void refresh(); + /** * Handle event processing */ -- cgit v1.2.3