From 3dfc5db559504609e2ce35269cd5de2dcf66ba02 Mon Sep 17 00:00:00 2001 From: liteng <930372551@qq.com> Date: Sat, 15 Dec 2018 09:35:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=BA=E6=99=AF=E7=BC=96=E8=BE=91=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E9=80=9A=E7=94=A8=E7=BC=96=E8=BE=91=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/editor/bottom/ScenePanel.js | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/ShadowEditor.Web/src/editor/bottom/ScenePanel.js b/ShadowEditor.Web/src/editor/bottom/ScenePanel.js index bef0ed82..6e398fe8 100644 --- a/ShadowEditor.Web/src/editor/bottom/ScenePanel.js +++ b/ShadowEditor.Web/src/editor/bottom/ScenePanel.js @@ -1,6 +1,6 @@ import UI from '../../ui/UI'; import Ajax from '../../utils/Ajax'; -import SceneEditWindow from '../window/SceneEditWindow'; +import EditWindow from '../window/EditWindow'; import Converter from '../../serialization/Converter'; import AnimationGroup from '../../animation/AnimationGroup'; import Animation from '../../animation/Animation'; @@ -63,13 +63,6 @@ ScenePanel.prototype.renderUI = function () { display: 'flex' }, children: [{ - xtype: 'iconbutton', - icon: 'icon-save', - style: { - padding: '2px' - }, - onClick: this.onSave.bind(this) - }, { xtype: 'searchfield', id: 'search', scope: this.id, @@ -348,19 +341,16 @@ ScenePanel.prototype.onLoadScene = function (obj) { this.app.call('sceneLoaded', this); }; -// ------------------------------- 保存场景 -------------------------------------- - -ScenePanel.prototype.onSave = function () { - UI.msg('场景保存成功!'); -}; - // ------------------------------- 编辑场景 --------------------------------------- ScenePanel.prototype.onEdit = function (data) { if (this.editWindow === undefined) { - this.editWindow = new SceneEditWindow({ + this.editWindow = new EditWindow({ app: this.app, parent: document.body, + type: 'Scene', + typeName: '场景', + saveUrl: '/api/Scene/Edit', callback: this.update.bind(this) }); this.editWindow.render();