effect properties 属性的 inspector -> editor

This commit is contained in:
caizhitao 2020-02-17 09:38:49 +08:00
parent 722914d5c4
commit 549bbdf5e2
11 changed files with 30 additions and 33 deletions

View File

@ -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启用"
}
}

View File

@ -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 高)"
}
}

View File

@ -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]
}

View File

@ -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]
}

View File

@ -21,7 +21,7 @@ CCEffect %{
# 灰化程度
grayLevel: {
value: 1.0,
inspector: {
editor: {
tooltip: "灰化程度",
range: [0.0, 1.0]
}

View File

@ -18,14 +18,14 @@ CCEffect %{
# X轴方块数量
xBlockCount: {
value: 30.0,
inspector: {
editor: {
tooltip: "X轴方向马赛克方块数量"
}
}
# Y轴方块数量
yBlockCount: {
value: 30.0,
inspector: {
editor: {
tooltip: "Y轴方向马赛克方块数量"
}
}

View File

@ -21,7 +21,7 @@ CCEffect %{
# 老化程度
oldLevel: {
value: 1.0,
inspector: {
editor: {
tooltip: "老化程度",
range: [0.0, 1.0]
}

View File

@ -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]
}

View File

@ -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: "扩散半径"
}
}

View File

@ -21,9 +21,8 @@ CCEffect %{
# 圆角半径
radius: {
value: 0.4,
inspector: {
tooltip: "圆角半径",
range: [0.0, 0.5]
editor: {
tooltip: "圆角半径"
}
}
}%

View File

@ -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轴半径长度相对于纹理高度"
}
}
}%