diff options
Diffstat (limited to 'engines/macventure/macventure.cpp')
-rw-r--r-- | engines/macventure/macventure.cpp | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/engines/macventure/macventure.cpp b/engines/macventure/macventure.cpp index b6db45c93a..1fca4288e8 100644 --- a/engines/macventure/macventure.cpp +++ b/engines/macventure/macventure.cpp @@ -372,11 +372,25 @@ void MacVentureEngine::updateWindow(WindowReference winID) { bool MacVentureEngine::showTextEntry(ObjID text, ObjID srcObj, ObjID destObj) { debug("Showing speech dialog, asset %d from %d to %d", text, srcObj, destObj); - _userInput = Common::String("epor"); - warning("Show text entry: not fully implemented"); + _gui->getTextFromUser(); + + // HACK WITH FLAGS + _prepared = false; + warning("Show text entry: not fully tested"); return true; } +void MacVentureEngine::setTextInput(Common::String content) { + // HACK WITH FLAGS + _prepared = true; + _userInput = content; + _clickToContinue = false; +} + +Common::String MacVentureEngine::getUserInput() { + return _userInput; +} + const GlobalSettings& MacVentureEngine::getGlobalSettings() const { return _globalSettings; } @@ -591,10 +605,6 @@ Common::String MacVentureEngine::getNoun(ObjID ndx) { return _decodingIndirectArticles->getString(ndx); } -Common::String MacVentureEngine::getUserInput() { - return _userInput; -} - void MacVentureEngine::highlightExit(ObjID objID) { //ObjID ctl = _gui->getWinChild(obj); /*if (ctl) { |