aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo/tattoo_talk.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-22 21:38:52 -0400
committerPaul Gilbert2015-06-22 21:38:52 -0400
commit239784b13dd12c3f731312c5277dbc9fb0ab47ed (patch)
tree3cffd9c7017d186c460789c7821e2d639617a1c1 /engines/sherlock/tattoo/tattoo_talk.cpp
parentf7644f10aa3b921627a338926a87c35e7114cbea (diff)
downloadscummvm-rg350-239784b13dd12c3f731312c5277dbc9fb0ab47ed.tar.gz
scummvm-rg350-239784b13dd12c3f731312c5277dbc9fb0ab47ed.tar.bz2
scummvm-rg350-239784b13dd12c3f731312c5277dbc9fb0ab47ed.zip
SHERLOCK: RT: Beginnings of look window display
Diffstat (limited to 'engines/sherlock/tattoo/tattoo_talk.cpp')
-rw-r--r--engines/sherlock/tattoo/tattoo_talk.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/sherlock/tattoo/tattoo_talk.cpp b/engines/sherlock/tattoo/tattoo_talk.cpp
index 2da30057c7..52b6b51213 100644
--- a/engines/sherlock/tattoo/tattoo_talk.cpp
+++ b/engines/sherlock/tattoo/tattoo_talk.cpp
@@ -22,6 +22,7 @@
#include "sherlock/tattoo/tattoo_talk.h"
#include "sherlock/tattoo/tattoo_people.h"
+#include "sherlock/tattoo/tattoo_user_interface.h"
#include "sherlock/sherlock.h"
#include "sherlock/screen.h"
@@ -182,7 +183,7 @@ TattooTalk::TattooTalk(SherlockEngine *vm) : Talk(vm) {
}
void TattooTalk::talkInterface(const byte *&str) {
- drawTalk(str);
+ drawTalk((const char *)str);
_charCount = 0;
while ((*str < TATTOO_OPCODES[0] || *str == TATTOO_OPCODES[OP_NULL]) && *str) {
@@ -193,8 +194,12 @@ void TattooTalk::talkInterface(const byte *&str) {
_wait = true;
}
-void TattooTalk::drawTalk(const byte *str) {
- // TODO
+void TattooTalk::drawTalk(const char *str) {
+ TattooUserInterface &ui = *(TattooUserInterface *)_vm->_ui;
+
+ ui.banishWindow();
+ ui._textWidget.load(str);
+ ui._textWidget.summonWindow();
}
OpcodeReturn TattooTalk::cmdSwitchSpeaker(const byte *&str) {