Added loop_delay

This commit is contained in:
DaanV2
2021-02-16 01:00:41 +01:00
parent 0bcdac7ea3
commit 672ae1aa25
2 changed files with 14 additions and 11 deletions

View File

@@ -309,7 +309,11 @@
} }
] ]
}, },
"loop_delay": {
"title": "Loop delay",
"description": "How long to wait in seconds before looping this animation. Note that this expression is evaluated after each loop and on looping animation only.",
"$ref": "../../../molang/1.8.0/number.json"
},
"override_previous_animation": { "override_previous_animation": {
"title": "Override previous animation", "title": "Override previous animation",
"description": "Reset bones in this animation to the default pose before applying this animation.", "description": "Reset bones in this animation to the default pose before applying this animation.",
@@ -343,12 +347,8 @@
"title": "Sound effect", "title": "Sound effect",
"description": "TODO", "description": "TODO",
"type": "object", "type": "object",
"propertyNames": { "propertyNames": { "pattern": "^[\\d.]+$" },
"pattern": "^[\\d.]+$" "additionalProperties": { "$ref": "#/definitions/SoundEffect" }
},
"additionalProperties": {
"$ref": "#/definitions/SoundEffect"
}
}, },
"timeline": { "timeline": {
"title": "Timeline", "title": "Timeline",

View File

@@ -135,7 +135,7 @@
"description": "The animation specification for 1.8.0", "description": "The animation specification for 1.8.0",
"properties": { "properties": {
"anim_time_update": { "anim_time_update": {
"title": "Start delay", "title": "Anim time update",
"description": "How does time pass when playing the animation. Defaults to \"query.anim_time + query.delta_time\" which means advance in seconds.", "description": "How does time pass when playing the animation. Defaults to \"query.anim_time + query.delta_time\" which means advance in seconds.",
"$ref": "../../../molang/1.8.0/number.json" "$ref": "../../../molang/1.8.0/number.json"
}, },
@@ -300,15 +300,18 @@
"title": "Loop", "title": "Loop",
"description": "Should this animation stop, loop, or stay on the last frame when finished (true, false, hold_on_last_frame)", "description": "Should this animation stop, loop, or stay on the last frame when finished (true, false, hold_on_last_frame)",
"oneOf": [ "oneOf": [
{ { "type": "boolean" },
"type": "boolean"
},
{ {
"type": "string", "type": "string",
"enum": ["hold_on_last_frame"] "enum": ["hold_on_last_frame"]
} }
] ]
}, },
"loop_delay": {
"title": "Loop delay",
"description": "How long to wait in seconds before looping this animation. Note that this expression is evaluated after each loop and on looping animation only.",
"$ref": "../../../molang/1.8.0/number.json"
},
"override_previous_animation": { "override_previous_animation": {
"title": "Override previous animation", "title": "Override previous animation",
"description": "Reset bones in this animation to the default pose before applying this animation.", "description": "Reset bones in this animation to the default pose before applying this animation.",