aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular/dialogs_nebular.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-04-15 19:28:29 -0400
committerPaul Gilbert2014-04-15 19:28:29 -0400
commit7b907be93775167eab8efab45bea3b9a2776e288 (patch)
tree5637e0c2adc76e044b2129309df58e8fe470e2a4 /engines/mads/nebular/dialogs_nebular.cpp
parent3db3aced02bd028b41939818b5aa1028733886f3 (diff)
downloadscummvm-rg350-7b907be93775167eab8efab45bea3b9a2776e288.tar.gz
scummvm-rg350-7b907be93775167eab8efab45bea3b9a2776e288.tar.bz2
scummvm-rg350-7b907be93775167eab8efab45bea3b9a2776e288.zip
MADS: General cleanup and minor renamings
Diffstat (limited to 'engines/mads/nebular/dialogs_nebular.cpp')
-rw-r--r--engines/mads/nebular/dialogs_nebular.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp
index 30b28fe9d7..3606830abc 100644
--- a/engines/mads/nebular/dialogs_nebular.cpp
+++ b/engines/mads/nebular/dialogs_nebular.cpp
@@ -242,6 +242,33 @@ bool DialogsNebular::show(int msgId) {
return result;
}
+void DialogsNebular::showItem(int objectId, int messageId, int arg) {
+ show(messageId);
+#if 0
+ Scene &scene = _vm->_game->_scene;
+ byte highPalette[8 * 3];
+ Common::copy(&_vm->_palette->_mainPalette[0x2E8], &_vm->_palette->_mainPalette[PALETTE_SIZE],
+ &highPalette[0]);
+ byte *depthP = scene._depthSurface.getData();
+ byte greyScale[3];
+ greyScale[0] = greyScale[1] = greyScale[2] = 0xFFFF;
+ Common::String setName = Common::String::format("*OBJ%.3d.SS", objectId);
+
+ // Turn off cycling if active
+ bool cyclingActive = scene._cyclingActive;
+ scene._cyclingActive = false;
+
+ // Make a copy of the current screen surface
+ byte *savedSurface = new byte[MADS_SCREEN_WIDTH * MADS_SCREEN_HEIGHT];
+ Common::copy(_vm->_screen.getData(), _vm->_screen.getData() +
+ MADS_SCREEN_WIDTH * MADS_SCREEN_HEIGHT, savedSurface);
+
+
+
+ delete[] savedSurface;
+#endif
+}
+
Common::String DialogsNebular::getVocab(int vocabId) {
assert(vocabId > 0);