From f06e9f39ec341840ef220039fe4bf652ea800259 Mon Sep 17 00:00:00 2001 From: liteng <930372551@qq.com> Date: Thu, 11 Oct 2018 20:58:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=B9=E7=90=86=E7=AE=A1=E7=90=86=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E5=88=A0=E9=99=A4=E7=BA=B9=E7=90=86=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/editor/window/TextureWindow.js | 329 ------------------ 1 file changed, 329 deletions(-) diff --git a/ShadowEditor.Web/src/editor/window/TextureWindow.js b/ShadowEditor.Web/src/editor/window/TextureWindow.js index 8e1315c7..4b148246 100644 --- a/ShadowEditor.Web/src/editor/window/TextureWindow.js +++ b/ShadowEditor.Web/src/editor/window/TextureWindow.js @@ -13,7 +13,6 @@ function TextureWindow(options) { this.app = options.app; this.title = '纹理列表'; - this.width = '920px'; this.imageIcon = 'icon-texture'; // this.cornerTextField = 'Type'; @@ -21,334 +20,6 @@ function TextureWindow(options) { this.preImageUrl = this.app.options.server; this.showUploadButton = true; - this.settingPanel = { - xtype: 'div', - style: { - width: '220px', - borderLeft: '1px solid #ccc', - overflowY: 'auto' - }, - children: [{ - xtype: 'row', - children: [{ - xtype: 'label', - style: { - color: '#555', - fontWeight: 'bold' - }, - text: '纹理设置' - }] - }, { - xtype: 'row', - children: [{ - xtype: 'label', - text: '各向异性' - }, { - xtype: 'int', - id: 'anisotropy', - scope: this.id, - style: { - width: '80px' - }, - range: [1, 16] - }] - }, { - xtype: 'row', - children: [{ - xtype: 'label', - text: '中心点' - }, { - xtype: 'number', - id: 'centerX', - scope: this.id, - style: { - width: '40px' - } - }, { - xtype: 'number', - id: 'centerY', - scope: this.id, - style: { - width: '40px' - } - }] - }, { - xtype: 'row', - children: [{ - xtype: 'label', - text: '偏移' - }, { - xtype: 'number', - id: 'offsetX', - scope: this.id, - style: { - width: '40px' - } - }, { - xtype: 'number', - id: 'offsetY', - scope: this.id, - style: { - width: '40px' - } - }] - }, { - xtype: 'row', - children: [{ - xtype: 'label', - text: '重复' - }, { - xtype: 'int', - id: 'repeatX', - scope: this.id, - style: { - width: '40px' - } - }, { - xtype: 'int', - id: 'repearY', - scope: this.id, - style: { - width: '40px' - } - }] - }, { - xtype: 'row', - children: [{ - xtype: 'label', - text: '旋转' - }, { - xtype: 'number', - id: 'rotation', - scope: this.id, - style: { - width: '40px' - } - }] - }, { - xtype: 'row', - children: [{ - xtype: 'label', - text: '类型' - }, { - xtype: 'select', - id: 'type', - scope: this.id, - options: { - [THREE.UnsignedByteType]: 'UnsignedByteType', - [THREE.ByteType]: 'ByteType', - [THREE.ShortType]: 'ShortType', - [THREE.UnsignedShortType]: 'UnsignedShortType', - [THREE.IntType]: 'IntType', - [THREE.UnsignedIntType]: 'UnsignedIntType', - [THREE.FloatType]: 'FloatType', - [THREE.HalfFloatType]: 'HalfFloatType', - [THREE.UnsignedShort4444Type]: 'UnsignedShort4444Type', - [THREE.UnsignedShort5551Type]: 'UnsignedShort5551Type', - [THREE.UnsignedShort565Type]: 'UnsignedShort565Type', - [THREE.UnsignedInt248Type]: 'UnsignedInt248Type' - }, - style: { - width: '120px' - } - }] - }, { - xtype: 'row', - children: [{ - xtype: 'label', - text: '编码' - }, { - xtype: 'select', - id: 'encoding', - scope: this.id, - options: { - [THREE.LinearEncoding]: 'LinearEncoding', - [THREE.sRGBEncoding]: 'sRGBEncoding', - [THREE.GammaEncoding]: 'GammaEncoding', - [THREE.RGBEEncoding]: 'RGBEEncoding', - [THREE.LogLuvEncoding]: 'LogLuvEncoding', - [THREE.RGBM7Encoding]: 'RGBM7Encoding', - [THREE.RGBM16Encoding]: 'RGBM16Encoding', - [THREE.RGBDEncoding]: 'RGBDEncoding', - [THREE.BasicDepthPacking]: 'BasicDepthPacking', - [THREE.RGBADepthPacking]: 'RGBADepthPacking' - }, - style: { - width: '120px' - } - }] - }, { - xtype: 'row', - children: [{ - xtype: 'label', - text: '反转Y' - }, { - xtype: 'checkbox', - id: 'flipY', - scope: this.id - }] - }, { - xtype: 'row', - children: [{ - xtype: 'label', - text: '格式' - }, { - xtype: 'select', - id: 'format', - scope: this.id, - options: { - [THREE.RGBAFormat]: 'RGBAFormat', - [THREE.AlphaFormat]: 'AlphaFormat', - [THREE.RGBFormat]: 'RGBFormat', - [THREE.LuminanceFormat]: 'LuminanceFormat', - [THREE.LuminanceAlphaFormat]: 'LuminanceAlphaFormat', - [THREE.RGBEFormat]: 'RGBEFormat', - [THREE.DepthFormat]: 'DepthFormat', - [THREE.DepthStencilFormat]: 'DepthStencilFormat' - }, - style: { - width: '120px' - } - }] - }, { - xtype: 'row', - children: [{ - xtype: 'label', - text: '开启层级' - }, { - xtype: 'checkbox', - id: 'generateMipmaps', - scope: this.id - }] - }, { - xtype: 'row', - children: [{ - xtype: 'label', - text: '放大过滤' - }, { - xtype: 'select', - id: 'magFilter', - scope: this.id, - options: { - [THREE.LinearFilter]: 'LinearFilter', - [THREE.NearestFilter]: 'NearestFilter' - }, - style: { - width: '120px' - } - }] - }, { - xtype: 'row', - children: [{ - xtype: 'label', - text: '缩小过滤' - }, { - xtype: 'select', - id: 'minFilter', - scope: this.id, - options: { - [THREE.LinearMipMapLinearFilter]: 'LinearMipMapLinearFilter', - [THREE.NearestFilter]: 'NearestFilter', - [THREE.NearestMipMapNearestFilter]: 'NearestMipMapNearestFilter', - [THREE.NearestMipMapLinearFilter]: 'NearestMipMapLinearFilter', - [THREE.LinearFilter]: 'LinearFilter', - [THREE.LinearMipMapNearestFilter]: 'LinearMipMapNearestFilter' - }, - style: { - width: '120px' - } - }] - }, { - xtype: 'row', - children: [{ - xtype: 'label', - text: '映射' - }, { - xtype: 'select', - id: 'mapping', - scope: this.id, - options: { - [THREE.UVMapping]: 'UVMapping', - [THREE.CubeReflectionMapping]: 'CubeReflectionMapping', - [THREE.CubeRefractionMapping]: 'CubeRefractionMapping', - [THREE.EquirectangularReflectionMapping]: 'EquirectangularReflectionMapping', - [THREE.EquirectangularRefractionMapping]: 'EquirectangularRefractionMapping', - [THREE.SphericalReflectionMapping]: 'SphericalReflectionMapping', - [THREE.CubeUVReflectionMapping]: 'CubeUVReflectionMapping', - [THREE.CubeUVRefractionMapping]: 'CubeUVRefractionMapping' - }, - style: { - width: '120px' - } - }] - }, { - xtype: 'row', - children: [{ - xtype: 'label', - text: '左乘透明' - }, { - xtype: 'checkbox', - id: 'premultiplyAlpha', - scope: this.id - }] - }, { - xtype: 'row', - children: [{ - xtype: 'label', - text: '解压对齐' - }, { - xtype: 'select', - id: 'unpackAlignment', - scope: this.id, - options: { - [4]: '4', - [1]: '1', - [2]: '2', - [8]: '8' - }, - style: { - width: '120px' - } - }] - }, { - xtype: 'row', - children: [{ - xtype: 'label', - text: '横向包装' - }, { - xtype: 'select', - id: 'wrapS', - scope: this.id, - options: { - [THREE.ClampToEdgeWrapping]: 'ClampToEdgeWrapping', - [THREE.RepeatWrapping]: 'RepeatWrapping', - [THREE.MirroredRepeatWrapping]: 'MirroredRepeatWrapping' - }, - style: { - width: '120px' - } - }] - }, { - xtype: 'row', - children: [{ - xtype: 'label', - text: '纵向包装' - }, { - xtype: 'select', - id: 'wrapT', - scope: this.id, - options: { - [THREE.ClampToEdgeWrapping]: 'ClampToEdgeWrapping', - [THREE.RepeatWrapping]: 'RepeatWrapping', - [THREE.MirroredRepeatWrapping]: 'MirroredRepeatWrapping' - }, - style: { - width: '120px' - } - }] - }] - }; - this.onSelect = options.onSelect || null; }