[Scummvm-cvs-logs] SF.net SVN: scummvm:[51613] scummvm/trunk/engines/sci/engine/kgraphics.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Mon Aug 2 14:39:02 CEST 2010
Revision: 51613
http://scummvm.svn.sourceforge.net/scummvm/?rev=51613&view=rev
Author: m_kiewitz
Date: 2010-08-02 12:39:01 +0000 (Mon, 02 Aug 2010)
Log Message:
-----------
SCI: qfg2/3 import
- change directory button disabled
- showing message where to put characters, if saved from original sci interpreter
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kgraphics.cpp
Modified: scummvm/trunk/engines/sci/engine/kgraphics.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kgraphics.cpp 2010-08-02 12:18:22 UTC (rev 51612)
+++ scummvm/trunk/engines/sci/engine/kgraphics.cpp 2010-08-02 12:39:01 UTC (rev 51613)
@@ -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 @@
// 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 @@
}
}
}
+ 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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list