Add modifications to JSON UI and refactor a bit (#198)
- Added modifications to JSON UI - Moved grouped-ui definition to grouped-ui.json file - Added all animation types to anim_type
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"title": "Animation Type",
|
||||
"description": "The type of the animation.",
|
||||
"anyOf": [
|
||||
{
|
||||
"enum": ["wait", "offset", "alpha", "flip_book"]
|
||||
"enum": ["wait", "offset", "alpha", "flip_book", "aseprite_flip_book", "clip", "color", "size", "uv"]
|
||||
},
|
||||
{
|
||||
"$ref": "../../general/item_ref.json"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"title": "Bindings",
|
||||
"description": "The bindings that are contained within this element.",
|
||||
"anyOf": [
|
||||
|
||||
56
source/resource/ui/elements/properties/modifications.json
Normal file
56
source/resource/ui/elements/properties/modifications.json
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"title": "Modifications",
|
||||
"description": "Modifications to the element.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"control_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"array_name": {
|
||||
"type": "string",
|
||||
"enum": ["bindings", "controls"]
|
||||
},
|
||||
"operation": {
|
||||
"type": "string",
|
||||
"enum": ["insert_back", "insert_front", "insert_after", "insert_before", "move_back", "move_front", "move_after", "move_before", "swap", "remove", "replace"]
|
||||
},
|
||||
"where": {
|
||||
"$ref": "./bindings.json"
|
||||
},
|
||||
"target": {
|
||||
"$ref": "./bindings.json"
|
||||
},
|
||||
"target_control": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "./bindings.json"
|
||||
},
|
||||
{
|
||||
"title": "Controls",
|
||||
"description": "The controls to add.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"additionalProperties": {
|
||||
"title": "Sub Element",
|
||||
"$ref": "../../grouped-ui.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "../../general/item_ref.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user