Adding titles
This commit is contained in:
@@ -5,67 +5,93 @@
|
|||||||
"description": "The file that specifies Aseprite/libresprite flipbook animation.",
|
"description": "The file that specifies Aseprite/libresprite flipbook animation.",
|
||||||
"title": "Aseprite Flipbook File",
|
"title": "Aseprite Flipbook File",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"required": ["meta", "frames"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"meta": {
|
"meta": {
|
||||||
|
"title": "Meta",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "The meta data of the flipbook.",
|
"description": "The meta data of the flipbook.",
|
||||||
"additionalProperties": true,
|
"additionalProperties": true,
|
||||||
|
"required": ["size", "image"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"size": {
|
"size": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"title": "Size",
|
||||||
"description": "The size of the flipbook sprite sheet.",
|
"description": "The size of the flipbook sprite sheet.",
|
||||||
|
"required": ["w", "h"],
|
||||||
|
"examples": [
|
||||||
|
{
|
||||||
|
"w": 16,
|
||||||
|
"h": 16
|
||||||
|
}
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"w": {
|
"w": {
|
||||||
|
"title": "Width",
|
||||||
"description": "The width of the sprite sheet.",
|
"description": "The width of the sprite sheet.",
|
||||||
"type": "integer"
|
"type": "integer",
|
||||||
|
"default": 16
|
||||||
},
|
},
|
||||||
"h": {
|
"h": {
|
||||||
|
"title": "Height",
|
||||||
"description": "The height of the sprite sheet.",
|
"description": "The height of the sprite sheet.",
|
||||||
"type": "integer"
|
"type": "integer",
|
||||||
|
"default": 16
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"required": ["w", "h"]
|
|
||||||
},
|
},
|
||||||
"image": {
|
"image": {
|
||||||
|
"title": "Image",
|
||||||
"description": "The path to the sprite sheet. The value is required, but not used.",
|
"description": "The path to the sprite sheet. The value is required, but not used.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"required": ["size", "image"]
|
|
||||||
},
|
},
|
||||||
"frames": {
|
"frames": {
|
||||||
|
"title": "Frames",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "The frames of the flipbook.",
|
"description": "The frames of the flipbook.",
|
||||||
"items": {
|
"items": {
|
||||||
|
"title": "Frame",
|
||||||
|
"description": "A frame of the flipbook.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": true,
|
"additionalProperties": true,
|
||||||
|
"required": ["duration", "frame"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"duration": {
|
"duration": {
|
||||||
|
"title": "Duration",
|
||||||
"description": "The duration of the frame in milliseconds.",
|
"description": "The duration of the frame in milliseconds.",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"minimum": 1
|
"minimum": 1
|
||||||
},
|
},
|
||||||
"frame": {
|
"frame": {
|
||||||
|
"title": "Frame",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "The position of the frame in the sprite sheet (UV).",
|
"description": "The position of the frame in the sprite sheet (UV).",
|
||||||
|
"required": ["x", "y"],
|
||||||
|
"examples": [
|
||||||
|
{
|
||||||
|
"x": 0,
|
||||||
|
"y": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"x": {
|
"x": {
|
||||||
|
"title": "X",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "The x position of the frame in the sprite sheet.",
|
"description": "The x position of the frame in the sprite sheet.",
|
||||||
"minimum": 0
|
"minimum": 0
|
||||||
},
|
},
|
||||||
"y": {
|
"y": {
|
||||||
|
"title": "Y",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "The y position of the frame in the sprite sheet.",
|
"description": "The y position of the frame in the sprite sheet.",
|
||||||
"minimum": 0
|
"minimum": 0
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"required": ["x", "y"]
|
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"required": ["duration", "frame"]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"required": ["meta", "frames"]
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user