Added blend_weights for animations and animation_controllers

This commit is contained in:
DaanV2
2021-05-10 20:26:09 +02:00
parent 64858af8b8
commit 0ec3926cec
3 changed files with 20 additions and 9 deletions

View File

@@ -14,7 +14,12 @@
"description": "A object specification on how to transition", "description": "A object specification on how to transition",
"maxProperties": 1, "maxProperties": 1,
"minProperties": 1, "minProperties": 1,
"additionalProperties": { "$ref": "../../../molang/1.8.0/string.json" } "additionalProperties": {
"oneOf": [
{ "type": "string", "$ref": "../../../molang/1.8.0/string.json" },
{ "type": "number", "description": "A blend weight" }
]
}
} }
] ]
}, },
@@ -89,7 +94,7 @@
"title": "Animations", "title": "Animations",
"description": "The animations definition for 1.10.0", "description": "The animations definition for 1.10.0",
"type": "array", "type": "array",
"items": { "$ref": "#/definitions/animationspec", "description": "TODO description: animations", "title": "Animations" } "items": { "$ref": "#/definitions/animationspec", "title": "Animations" }
}, },
"blend_transition": { "blend_transition": {
"title": "Blend Transition", "title": "Blend Transition",

View File

@@ -14,7 +14,12 @@
"description": "A object specification on how to transition", "description": "A object specification on how to transition",
"maxProperties": 1, "maxProperties": 1,
"minProperties": 1, "minProperties": 1,
"additionalProperties": { "$ref": "../../../molang/1.8.0/string.json" } "additionalProperties": {
"oneOf": [
{ "type": "string", "$ref": "../../../molang/1.8.0/string.json" },
{ "type": "number", "description": "A blend weight" }
]
}
} }
] ]
}, },
@@ -78,7 +83,7 @@
"title": "Animations", "title": "Animations",
"description": "The animations definition for 1.10.0", "description": "The animations definition for 1.10.0",
"type": "array", "type": "array",
"items": { "$ref": "#/definitions/animationspec", "description": "TODO description: animations", "title": "Animations" } "items": { "$ref": "#/definitions/animationspec", "title": "Animations" }
}, },
"blend_transition": { "blend_transition": {
"title": "Blend Transition", "title": "Blend Transition",
@@ -120,7 +125,7 @@
"description": "The transition definition for 1.8.0", "description": "The transition definition for 1.8.0",
"minProperties": 1, "minProperties": 1,
"type": "array", "type": "array",
"items": { "$ref": "#/definitions/animationspec", "description": "TODO description: transitions", "title": "Transitions" } "items": { "$ref": "#/definitions/animationspec", "description": "The specification on when to transition to a new state", "title": "Transitions" }
}, },
"variables": { "variables": {
"type": "object", "type": "object",

View File

@@ -84,7 +84,7 @@
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"title": "Scripts", "title": "Scripts",
"description": "TODO", "description": "The place where variables, and animations / controller to be run is specified",
"properties": { "properties": {
"animate": { "animate": {
"type": "array", "type": "array",
@@ -101,9 +101,10 @@
"title": "Animation (Controller) Condition", "title": "Animation (Controller) Condition",
"description": "A single animation or animation controller to run on condition", "description": "A single animation or animation controller to run on condition",
"additionalProperties": { "additionalProperties": {
"type": "string", "oneOf": [
"description": "A molang condition", { "type": "string", "description": "A molang condition", "title": "Molang" },
"title": "Molang" { "type": "number", "description": "Blend weight", "title": "Blend weight" }
]
} }
} }
] ]