editor saveFloor

This commit is contained in:
oc 2019-02-18 23:05:39 +08:00
parent b219c374a0
commit 25bd2c5d72
2 changed files with 3 additions and 2 deletions

View File

@ -891,7 +891,7 @@ editor.prototype.listen = function () {
editor_blockly.confirm(); // 保存事件编辑器
}
else {
editor_mode.onmode('');
editor_mode.saveFloor();
}
return;
}

View File

@ -583,7 +583,7 @@ editor_mode = function (editor) {
});
var saveFloor = document.getElementById('saveFloor');
saveFloor.onclick = function () {
editor_mode.saveFloor = function () {
editor_mode.onmode('');
editor.file.saveFloorFile(function (err) {
if (err) {
@ -593,6 +593,7 @@ editor_mode = function (editor) {
;printf('保存成功');
});
}
saveFloor.onclick = editor_mode.saveFloor;
var newMap = document.getElementById('newMap');
var newFileName = document.getElementById('newFileName');