This commit is contained in:
DaanV2
2021-02-10 02:02:46 +01:00
parent 178be36f29
commit 9a2f8790c5
6 changed files with 41 additions and 36 deletions

View File

@@ -113,9 +113,7 @@
"type": "array", "type": "array",
"description": "Events, commands or transitions to preform on entry of this state", "description": "Events, commands or transitions to preform on entry of this state",
"title": "On entry", "title": "On entry",
"items": { "items": { "$ref": "#/definitions/commands" }
"$ref": "#/definitions/commands"
}
}, },
"on_exit": { "on_exit": {
"type": "array", "type": "array",

View File

@@ -93,10 +93,7 @@
}, },
"additionalProperties": { "additionalProperties": {
"oneOf": [ "oneOf": [
{ { "type": "string", "$ref": "#/definitions/commands" },
"type": "string",
"$ref": "#/definitions/commands"
},
{ {
"type": "array", "type": "array",
"title": "Collection timelime items", "title": "Collection timelime items",

View File

@@ -47,7 +47,8 @@
"pre_effect_script": { "pre_effect_script": {
"type": "string", "type": "string",
"title": "Pre effect script", "title": "Pre effect script",
"description": "A molang script that will be run when the particle emitter is initialized" "description": "A molang script that will be run when the particle emitter is initialized",
"pattern": "^.+;$"
} }
} }
}, },
@@ -197,6 +198,18 @@
} }
} }
} }
},
"on_entry": {
"title": "On Entry",
"description": "UNDOCUMENTATED",
"type": "array",
"items": { "pattern": "^.+=.+;$", "title": "Molang", "description": "UNDOCUMENTATED", "type": "string" }
},
"on_exit": {
"title": "On Exit",
"description": "UNDOCUMENTATED",
"type": "array",
"items": { "pattern": "^.+=.+;$", "title": "Molang", "description": "UNDOCUMENTATED", "type": "string" }
} }
} }
} }

View File

@@ -47,7 +47,8 @@
"pre_effect_script": { "pre_effect_script": {
"type": "string", "type": "string",
"title": "Pre effect script", "title": "Pre effect script",
"description": "A molang script that will be run when the particle emitter is initialized" "description": "A molang script that will be run when the particle emitter is initialized",
"pattern": "^.+;$"
} }
} }
}, },
@@ -179,6 +180,18 @@
} }
} }
} }
},
"on_entry": {
"title": "On Entry",
"description": "UNDOCUMENTATED",
"type": "array",
"items": { "pattern": "^.+;$", "title": "Molang", "description": "UNDOCUMENTATED", "type": "string" }
},
"on_exit": {
"title": "On Exit",
"description": "UNDOCUMENTATED",
"type": "array",
"items": { "pattern": "^.+;$", "title": "Molang", "description": "UNDOCUMENTATED", "type": "string" }
} }
} }
} }

View File

@@ -309,6 +309,7 @@
} }
] ]
}, },
"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.",

View File

@@ -317,33 +317,16 @@
"particle_effects": { "particle_effects": {
"title": "Particle effects", "title": "Particle effects",
"description": "TODO", "description": "TODO",
"oneOf": [ "type": "object",
{ "propertyNames": {
"$ref": "#/definitions/ParticleEffect" "pattern": "^[\\d.]+$",
}, "examples": ["0.0", "1.0", "2.3"]
{ },
"type": "object", "additionalProperties": {
"propertyNames": { "title": "Timeline object",
"pattern": "^[\\d.]+$" "description": "A single point in time",
}, "$ref": "#/definitions/ParticleEffect"
"additionalProperties": { }
"title": "Timeline object",
"description": "A single point in time",
"oneOf": [
{
"type": "object",
"$ref": "#/definitions/ParticleEffect"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/ParticleEffect"
}
}
]
}
}
]
}, },
"start_delay": { "start_delay": {
"title": "Start delay", "title": "Start delay",