diff options
author | Martin Kiewitz | 2010-08-02 21:57:17 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-08-02 21:57:17 +0000 |
commit | 0f339921edc7908fafa4a9098211255abd6ee13c (patch) | |
tree | 8b872fdaff55422f4815ae09be55f30019c9fe86 /engines/sci/engine | |
parent | d42d7ad6c52ad90c53b510f10611cbbb6eb56f5b (diff) | |
download | scummvm-rg350-0f339921edc7908fafa4a9098211255abd6ee13c.tar.gz scummvm-rg350-0f339921edc7908fafa4a9098211255abd6ee13c.tar.bz2 scummvm-rg350-0f339921edc7908fafa4a9098211255abd6ee13c.zip |
SCI: only display qfg-import information dialog once
per room usage
svn-id: r51664
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 2b0e3b3726..e1e92b1cf9 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -918,14 +918,20 @@ 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 are shown " - "automatically. Character files saved in the original " - "interpreter need to be put inside ScummVM's saved games " - "directory and a prefix needs to be added depending on which " - "game it was saved in: 'qfg1-' for Quest for Glory 1, 'qfg2-' " - "for Quest for Glory 2. Example: 'qfg2-thief.sav'.", - "OK"); - dialog.runModal(); + reg_t changeDirButton = s->_segMan->findObjectByName("changeDirItem"); + if (!changeDirButton.isNull()) { + // check if checkDirButton is still enabled, in that case we are called the first time during that room + if (!(readSelectorValue(s->_segMan, changeDirButton, SELECTOR(state)) & SCI_CONTROLS_STYLE_DISABLED)) { + GUI::MessageDialog dialog("Characters saved inside ScummVM are shown " + "automatically. Character files saved in the original " + "interpreter need to be put inside ScummVM's saved games " + "directory and a prefix needs to be added depending on which " + "game it was saved in: 'qfg1-' for Quest for Glory 1, 'qfg2-' " + "for Quest for Glory 2. Example: 'qfg2-thief.sav'.", + "OK"); + dialog.runModal(); + } + } } _k_GenericDrawControl(s, controlObject, false); |