diff --git a/assets/effects/sprite-flash-light.effect b/assets/effects/sprite-flash-light.effect index 4f7a180..08925c0 100644 --- a/assets/effects/sprite-flash-light.effect +++ b/assets/effects/sprite-flash-light.effect @@ -22,7 +22,7 @@ CCEffect %{ # 光束颜色 lightColor: { value: [1.0, 1.0, 0.0, 1.0], - inspector: { + editor: { type: color, tooltip: "光束颜色" } @@ -31,7 +31,7 @@ CCEffect %{ # 光束中心点坐标 lightCenterPoint: { value: [0.2, 0.2], - inspector: { + editor: { tooltip: "光束中心点坐标" } } @@ -39,7 +39,7 @@ CCEffect %{ # 光束倾斜角度 lightAngle: { value: 36.0, - inspctor: { + editor: { tooltip: "光束倾斜角度", range: [0.0, 1.0], } @@ -48,7 +48,7 @@ CCEffect %{ # 光束宽度 lightWidth: { value: 0.2, - inspector: { + editor: { tooltip: "光束宽度" } } @@ -56,7 +56,7 @@ CCEffect %{ # 启用光束渐变 enableGradient: { value: 1.0, - inspecator: { + editor: { tooltip: "是否启用光束渐变。0:不启用,非0:启用" } } @@ -64,7 +64,7 @@ CCEffect %{ # 裁剪掉透明区域上的光 cropAlpha: { value: 1.0, - inspecator: { + editor: { tooltip: "是否裁剪透明区域上的光。0:不启用,非0:启用" } } @@ -72,7 +72,7 @@ CCEffect %{ # 是否启用迷雾效果 enableFog: { value: 0.0, - inspecator: { + editor: { tooltip: "是否启用迷雾效果。0:不启用,非0:启用" } } diff --git a/assets/effects/sprite-gaussian-blur-v1.effect b/assets/effects/sprite-gaussian-blur-v1.effect index 811cc08..08dd3ab 100644 --- a/assets/effects/sprite-gaussian-blur-v1.effect +++ b/assets/effects/sprite-gaussian-blur-v1.effect @@ -22,7 +22,7 @@ CCEffect %{ # # 标准方差值 # stDev: { # value: 0.84089642, - # inspector: { + # editor: { # tooltip: "标准方差值" # } # } @@ -30,7 +30,7 @@ CCEffect %{ # 纹理尺寸 textureSize: { value: [100.0, 100.0], - inspector: { + editor: { tooltip: "纹理尺寸px(宽 x 高)" } } diff --git a/assets/effects/sprite-glow-inner.effect b/assets/effects/sprite-glow-inner.effect index a3ddf1b..254a869 100644 --- a/assets/effects/sprite-glow-inner.effect +++ b/assets/effects/sprite-glow-inner.effect @@ -19,7 +19,7 @@ CCEffect %{ # 发光颜色 glowColor: { value: [1.0, 1.0, 0.0, 1.0], - inspector: { + editor: { type: color, tooltip: "发光颜色" } @@ -27,7 +27,7 @@ CCEffect %{ # 发光宽度 glowColorSize: { value: 0.2, - inspector: { + editor: { tooltip: "发光宽度", range: [0.0, 1.0], } @@ -37,7 +37,7 @@ CCEffect %{ # 一般用于解决图像边缘存在渐变透明的时,决定超过这个透明度阈值的边缘点才点发光,具体可以操作一下 glowThreshold: { value: 0.1, - inspector: { + editor: { tooltip: "发光阈值", range: [0.0, 1.0] } diff --git a/assets/effects/sprite-glow-outter.effect b/assets/effects/sprite-glow-outter.effect index 6241f18..2051afa 100644 --- a/assets/effects/sprite-glow-outter.effect +++ b/assets/effects/sprite-glow-outter.effect @@ -19,7 +19,7 @@ CCEffect %{ # 发光颜色 glowColor: { value: [1.0, 1.0, 0.0, 1.0], - inspector: { + editor: { type: color, tooltip: "发光颜色" } @@ -27,7 +27,7 @@ CCEffect %{ # 发光宽度 glowColorSize: { value: 0.15, - inspector: { + editor: { tooltip: "发光宽度", range: [0.0, 1.0], } @@ -36,7 +36,7 @@ CCEffect %{ # 只有小于等于这个透明度的点才会发光 glowThreshold: { value: 1.0, - inspector: { + editor: { tooltip: "发光阈值", range: [0.0, 1.0] } diff --git a/assets/effects/sprite-gray.effect b/assets/effects/sprite-gray.effect index 709971c..6587e94 100644 --- a/assets/effects/sprite-gray.effect +++ b/assets/effects/sprite-gray.effect @@ -21,7 +21,7 @@ CCEffect %{ # 灰化程度 grayLevel: { value: 1.0, - inspector: { + editor: { tooltip: "灰化程度", range: [0.0, 1.0] } diff --git a/assets/effects/sprite-mosaic.effect b/assets/effects/sprite-mosaic.effect index 2cb8c69..e449574 100644 --- a/assets/effects/sprite-mosaic.effect +++ b/assets/effects/sprite-mosaic.effect @@ -18,14 +18,14 @@ CCEffect %{ # X轴方块数量 xBlockCount: { value: 30.0, - inspector: { + editor: { tooltip: "X轴方向马赛克方块数量" } } # Y轴方块数量 yBlockCount: { value: 30.0, - inspector: { + editor: { tooltip: "Y轴方向马赛克方块数量" } } diff --git a/assets/effects/sprite-old-photo.effect b/assets/effects/sprite-old-photo.effect index 9ef393f..b86ecf0 100644 --- a/assets/effects/sprite-old-photo.effect +++ b/assets/effects/sprite-old-photo.effect @@ -21,7 +21,7 @@ CCEffect %{ # 老化程度 oldLevel: { value: 1.0, - inspector: { + editor: { tooltip: "老化程度", range: [0.0, 1.0] } diff --git a/assets/effects/sprite-outline.effect b/assets/effects/sprite-outline.effect index 50ea566..5076b6a 100644 --- a/assets/effects/sprite-outline.effect +++ b/assets/effects/sprite-outline.effect @@ -17,7 +17,7 @@ CCEffect %{ # 描边颜色 outlineColor: { value: [1.0, 0.0, 0.0, 1.0], - inspector: { + editor: { type: color, tooltip: "描边颜色", } @@ -26,7 +26,7 @@ CCEffect %{ # 描边宽度 outlineWidth: { value: 0.002, - inspector: { + editor: { tooltip: "描边宽度", range: [0.0, 1.0] } diff --git a/assets/effects/sprite-point-light.effect b/assets/effects/sprite-point-light.effect index c9dc59a..3b6794c 100644 --- a/assets/effects/sprite-point-light.effect +++ b/assets/effects/sprite-point-light.effect @@ -22,7 +22,7 @@ CCEffect %{ # 扩散颜色 centerColor: { value: [1.0, 1.0, 0.0, 1.0], - inspector: { + editor: { type: color, tooltip: "发光颜色" } @@ -31,7 +31,7 @@ CCEffect %{ # 扩散起点坐标 centerPoint: { value: [0.2, 0.2], - inspector: { + editor: { tooltip: "扩散起点坐标" } } @@ -39,7 +39,7 @@ CCEffect %{ # 扩散半径 radius: { value: 0.4, - inspector: { + editor: { tooltip: "扩散半径" } } diff --git a/assets/effects/sprite-round-corner-crop-v1.effect b/assets/effects/sprite-round-corner-crop-v1.effect index a203fc2..7101fcd 100644 --- a/assets/effects/sprite-round-corner-crop-v1.effect +++ b/assets/effects/sprite-round-corner-crop-v1.effect @@ -21,9 +21,8 @@ CCEffect %{ # 圆角半径 radius: { value: 0.4, - inspector: { - tooltip: "圆角半径", - range: [0.0, 0.5] + editor: { + tooltip: "圆角半径" } } }% diff --git a/assets/effects/sprite-round-corner-crop-v2.effect b/assets/effects/sprite-round-corner-crop-v2.effect index 9bbda70..a642409 100644 --- a/assets/effects/sprite-round-corner-crop-v2.effect +++ b/assets/effects/sprite-round-corner-crop-v2.effect @@ -24,18 +24,16 @@ CCEffect %{ # 圆角x轴半径长度(相对于纹理宽度) xRadius: { value: 0.4, - inspector: { - tooltip: "圆角x轴半径长度(相对于纹理宽度)", - range: [0.0, 0.5] + editor: { + tooltip: "圆角x轴半径长度(相对于纹理宽度)" } } # 圆角y轴半径长度(相对于纹理高度) yRadius: { value: 0.4, - inspector: { - tooltip: "圆角y轴半径长度(相对于纹理高度)", - range: [0.0, 0.5] + editor: { + tooltip: "圆角y轴半径长度(相对于纹理高度)" } } }%