Add color Parameter

This commit is contained in:
2022-04-08 17:39:26 +08:00
parent 3b255245f2
commit 8cc8819cd3
3 changed files with 46 additions and 1 deletions
+12
View File
@@ -7,6 +7,8 @@ type ITemplateBehaviorParameter = {
testNumber: "number";
testString: "string";
testBoolean: "boolean";
testColor: "color";
testOption: "option";
testR: "R";
testG: "G";
testLR: "LR";
@@ -43,6 +45,16 @@ class Template extends Behavior<ITemplateBehaviorParameter, ITemplateBehaviorEve
defaultValue: "default",
maxLength: 12
},
testColor: {
name: "$Test",
type: "color",
defaultValue: [.5, .1, 1],
colorNormal: true
},
testOption: {
name: "$Test",
type: "option"
},
testBoolean: {
name: "$Test",
type: "boolean",