aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/use.cpp
diff options
context:
space:
mode:
authorBertrand Augereau2011-09-07 03:53:53 +0200
committerBertrand Augereau2011-09-07 03:53:53 +0200
commitef1eb9ba24959b16568f83b8a8a6ddf27ae40bab (patch)
tree476433d50a3d4074d0ff83e94cdc40ee482d4602 /engines/dreamweb/use.cpp
parent3884ec6355d4445c278d9d011d16940c3ef8697b (diff)
downloadscummvm-rg350-ef1eb9ba24959b16568f83b8a8a6ddf27ae40bab.tar.gz
scummvm-rg350-ef1eb9ba24959b16568f83b8a8a6ddf27ae40bab.tar.bz2
scummvm-rg350-ef1eb9ba24959b16568f83b8a8a6ddf27ae40bab.zip
DREAMWEB: 'usetext' ported to C++
Diffstat (limited to 'engines/dreamweb/use.cpp')
-rw-r--r--engines/dreamweb/use.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/dreamweb/use.cpp b/engines/dreamweb/use.cpp
index 194aed461d..38fac02c00 100644
--- a/engines/dreamweb/use.cpp
+++ b/engines/dreamweb/use.cpp
@@ -163,5 +163,20 @@ void DreamGenContext::useroutine() {
data.byte(kCommandtype) = 255;
}
+void DreamGenContext::usetext() {
+ usetext(es.ptr(si, 0));
+}
+
+void DreamGenContext::usetext(const uint8 *string) {
+ createpanel();
+ showpanel();
+ showman();
+ showexit();
+ obicons();
+ uint16 y = 104;
+ printdirect(&string, 36, &y, 241, true);
+ worktoscreenm();
+}
+
} /*namespace dreamgen */