diff options
author | Paul Gilbert | 2014-02-22 18:21:18 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-02-22 18:21:18 -0500 |
commit | 6b774d228495e2dc9de08520a3064889d439335d (patch) | |
tree | 49678151bb3fb3042420e2c8c43d313fc674d8ae /engines/mads/nebular/dialogs_nebular.cpp | |
parent | 6c354bccf253118d459f92f16d8f702ae07806fb (diff) | |
download | scummvm-rg350-6b774d228495e2dc9de08520a3064889d439335d.tar.gz scummvm-rg350-6b774d228495e2dc9de08520a3064889d439335d.tar.bz2 scummvm-rg350-6b774d228495e2dc9de08520a3064889d439335d.zip |
MADS: Copy protection dialog is starting to be displayed
Diffstat (limited to 'engines/mads/nebular/dialogs_nebular.cpp')
-rw-r--r-- | engines/mads/nebular/dialogs_nebular.cpp | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp index 76b6162d14..95a485d170 100644 --- a/engines/mads/nebular/dialogs_nebular.cpp +++ b/engines/mads/nebular/dialogs_nebular.cpp @@ -31,13 +31,6 @@ namespace MADS { namespace Nebular { -bool CopyProtectionDialog::show(MADSEngine *vm) { - CopyProtectionDialog *dlg = new CopyProtectionDialog(vm, false); - - delete dlg; - return true; -} - CopyProtectionDialog::CopyProtectionDialog(MADSEngine *vm, bool priorAnswerWrong): TextDialog(vm, FONT_INTERFACE, Common::Point(-1, -1), 32) { getHogAnusEntry(_hogEntry); @@ -76,6 +69,20 @@ CopyProtectionDialog::CopyProtectionDialog(MADSEngine *vm, bool priorAnswerWrong wordWrap(" "); wordWrap("\n"); + // TODO: Rest of setup +} + +bool CopyProtectionDialog::show() { + draw(); + _vm->_events->showCursor(); + + // TODO: Replace with text input + while (!_vm->shouldQuit() && !_vm->_events->_keyPressed && + !_vm->_events->_mouseClicked) { + _vm->_events->delay(1); + } + + return true; } bool CopyProtectionDialog::getHogAnusEntry(HOGANUS &entry) { |