mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-08 05:27:12 +08:00
Fixing unclosed curly bracket in engine.js
This commit is contained in:
+52
-51
@@ -230,51 +230,67 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
exportImport: function() {
|
exportImport: function() {
|
||||||
Events.startEvent({
|
Events.startEvent({
|
||||||
title: _('Export / Import'),
|
title: _('Export / Import'),
|
||||||
scenes: {
|
scenes: {
|
||||||
start: {
|
start: {
|
||||||
text: [
|
|
||||||
_('export or import save data, for backing up'),
|
|
||||||
_('or migrating computers')
|
|
||||||
],
|
|
||||||
buttons: {
|
|
||||||
'export': {
|
|
||||||
text: _('export'),
|
|
||||||
onChoose: Engine.export64
|
|
||||||
},
|
|
||||||
'import': {
|
|
||||||
text: _('import'),
|
|
||||||
nextScene: {1: 'confirm'},
|
|
||||||
},
|
|
||||||
'cancel': {
|
|
||||||
text: _('cancel'),
|
|
||||||
nextScene: 'end'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'confirm': {
|
|
||||||
text: [
|
text: [
|
||||||
_('are you sure?'),
|
_('export or import save data, for backing up'),
|
||||||
_('if the code is invalid, all data will be lost.'),
|
_('or migrating computers')
|
||||||
_('this is irreversible.')
|
|
||||||
],
|
],
|
||||||
buttons: {
|
buttons: {
|
||||||
'yes': {
|
'export': {
|
||||||
text: _('yes'),
|
text: _('export'),
|
||||||
nextScene: {1: 'inputImport'},
|
onChoose: Engine.export64
|
||||||
onChoose: Engine.enableSelection
|
|
||||||
},
|
},
|
||||||
'no': {
|
'import': {
|
||||||
text: _('no'),
|
text: _('import'),
|
||||||
|
nextScene: {1: 'confirm'},
|
||||||
|
},
|
||||||
|
'cancel': {
|
||||||
|
text: _('cancel'),
|
||||||
nextScene: 'end'
|
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'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'inputImport': {
|
'inputImport': {
|
||||||
text: [
|
text: [_('put the save code here.')],
|
||||||
_('put the save code here.')
|
|
||||||
],
|
|
||||||
textarea: '',
|
textarea: '',
|
||||||
buttons: {
|
buttons: {
|
||||||
'okay': {
|
'okay': {
|
||||||
@@ -288,21 +304,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
'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