diff --git a/script/engine.js b/script/engine.js index 9e3d34c..ff3dbef 100644 --- a/script/engine.js +++ b/script/engine.js @@ -254,47 +254,29 @@ }, 'import': { text: _('import'), - nextScene: {1: 'confirm'}, + nextScene: {1: 'confirm'} }, 'cancel': { text: _('cancel'), nextScene: 'end' } - }, - 'confirm': { - text: [ - _('are you sure?'), - _('if the code is invalid, all data will be lost.'), - _('this is irreversible.') - ], - buttons: { - 'yes': { - text: _('yes'), - nextScene: {1: 'inputImport'}, - onChoose: Engine.enableSelection - }, - 'no': { - text: _('no'), - - nextScene: 'end' - } - } - }, - 'inputImport': { - text: [ - _('put the save code here.') - ], - textarea: '', - buttons: { - 'okay': { - text: _('import'), - nextScene: 'end', - onChoose: Engine.import64 - }, - 'cancel': { - text: _('cancel'), - nextScene: 'end' - } + } + }, + 'confirm': { + text: [ + _('are you sure?'), + _('if the code is invalid, all data will be lost.'), + _('this is irreversible.') + ], + buttons: { + 'yes': { + text: _('yes'), + nextScene: {1: 'inputImport'}, + onChoose: Engine.enableSelection + }, + 'no': { + text: _('no'), + nextScene: 'end' } } },