editor saveFloor
This commit is contained in:
parent
b219c374a0
commit
25bd2c5d72
@ -891,7 +891,7 @@ editor.prototype.listen = function () {
|
|||||||
editor_blockly.confirm(); // 保存事件编辑器
|
editor_blockly.confirm(); // 保存事件编辑器
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
editor_mode.onmode('');
|
editor_mode.saveFloor();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -583,7 +583,7 @@ editor_mode = function (editor) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
var saveFloor = document.getElementById('saveFloor');
|
var saveFloor = document.getElementById('saveFloor');
|
||||||
saveFloor.onclick = function () {
|
editor_mode.saveFloor = function () {
|
||||||
editor_mode.onmode('');
|
editor_mode.onmode('');
|
||||||
editor.file.saveFloorFile(function (err) {
|
editor.file.saveFloorFile(function (err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
@ -593,6 +593,7 @@ editor_mode = function (editor) {
|
|||||||
;printf('保存成功');
|
;printf('保存成功');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
saveFloor.onclick = editor_mode.saveFloor;
|
||||||
|
|
||||||
var newMap = document.getElementById('newMap');
|
var newMap = document.getElementById('newMap');
|
||||||
var newFileName = document.getElementById('newFileName');
|
var newFileName = document.getElementById('newFileName');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user