aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2010-08-02 12:39:01 +0000
committerMartin Kiewitz2010-08-02 12:39:01 +0000
commite59db80dec9460356a4c30c737b605ccf4720d1d (patch)
tree950652afdcd011a7f5ae7579a9f3921a03fa6b82 /engines
parent81aeb6a125947dc8ae7456c7f5898d41d6d1a86c (diff)
downloadscummvm-rg350-e59db80dec9460356a4c30c737b605ccf4720d1d.tar.gz
scummvm-rg350-e59db80dec9460356a4c30c737b605ccf4720d1d.tar.bz2
scummvm-rg350-e59db80dec9460356a4c30c737b605ccf4720d1d.zip
SCI: qfg2/3 import
- change directory button disabled - showing message where to put characters, if saved from original sci interpreter svn-id: r51613
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/kgraphics.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index 07864f5648..ae3394e1c2 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -29,6 +29,8 @@
#include "graphics/cursorman.h"
#include "graphics/surface.h"
+#include "gui/message.h"
+
#include "sci/sci.h"
#include "sci/debug.h" // for g_debug_sleeptime_factor
#include "sci/resource.h"
@@ -894,7 +896,8 @@ reg_t kDrawControl(EngineState *s, int argc, reg_t *argv) {
// Disable the "Change Directory" button, as we don't allow the game engine to
// change the directory where saved games are placed
- if (objName == "changeDirI") {
+ // "changeDirItem" is used in the import windows of QFG2&3
+ if ((objName == "changeDirI") || (objName == "changeDirItem")) {
int state = readSelectorValue(s->_segMan, controlObject, SELECTOR(state));
writeSelectorValue(s->_segMan, controlObject, SELECTOR(state), (state | SCI_CONTROLS_STYLE_DISABLED) & ~SCI_CONTROLS_STYLE_ENABLED);
}
@@ -910,6 +913,12 @@ reg_t kDrawControl(EngineState *s, int argc, reg_t *argv) {
}
}
}
+ if (objName == "savedHeros") {
+ // Import of QfG character files dialog is shown
+ // display additional popup information before letting user use it
+ GUI::MessageDialog dialog("characters saved inside ScummVM will get shown automatically. Character files saved in the original interpreter need to get put inside ScummVM saved games directory and a prefix need to get added depending on which game it was saved in 'qfg1-' for Quest for Glory 1, 'qfg2-' for Quest for Glory 2 e.g. 'qfg2-thief.sav'", "OK");
+ dialog.runModal();
+ }
_k_GenericDrawControl(s, controlObject, false);
return NULL_REG;