mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-25 13:52:30 +08:00
Fixed broken import event
This commit is contained in:
+18
-36
@@ -254,47 +254,29 @@
|
|||||||
},
|
},
|
||||||
'import': {
|
'import': {
|
||||||
text: _('import'),
|
text: _('import'),
|
||||||
nextScene: {1: 'confirm'},
|
nextScene: {1: 'confirm'}
|
||||||
},
|
},
|
||||||
'cancel': {
|
'cancel': {
|
||||||
text: _('cancel'),
|
text: _('cancel'),
|
||||||
nextScene: 'end'
|
nextScene: 'end'
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
'confirm': {
|
},
|
||||||
text: [
|
'confirm': {
|
||||||
_('are you sure?'),
|
text: [
|
||||||
_('if the code is invalid, all data will be lost.'),
|
_('are you sure?'),
|
||||||
_('this is irreversible.')
|
_('if the code is invalid, all data will be lost.'),
|
||||||
],
|
_('this is irreversible.')
|
||||||
buttons: {
|
],
|
||||||
'yes': {
|
buttons: {
|
||||||
text: _('yes'),
|
'yes': {
|
||||||
nextScene: {1: 'inputImport'},
|
text: _('yes'),
|
||||||
onChoose: Engine.enableSelection
|
nextScene: {1: 'inputImport'},
|
||||||
},
|
onChoose: Engine.enableSelection
|
||||||
'no': {
|
},
|
||||||
text: _('no'),
|
'no': {
|
||||||
|
text: _('no'),
|
||||||
nextScene: 'end'
|
nextScene: 'end'
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'inputImport': {
|
|
||||||
text: [
|
|
||||||
_('put the save code here.')
|
|
||||||
],
|
|
||||||
textarea: '',
|
|
||||||
buttons: {
|
|
||||||
'okay': {
|
|
||||||
text: _('import'),
|
|
||||||
nextScene: 'end',
|
|
||||||
onChoose: Engine.import64
|
|
||||||
},
|
|
||||||
'cancel': {
|
|
||||||
text: _('cancel'),
|
|
||||||
nextScene: 'end'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user