Update JSON UI schemas (#192)
* Implement some missing `ui/` schemas - Add `allow_debug_missing_texture` - Add `propagate_alpha` - Add `use_child_anchors` * Tweak descriptions of `item_ref` It should be noted that UI are referred to as "elements." Moreover, the examples used colon (`:`) instead of dots (`.`) which contradicts the given description. * Add more enum values to the `easing` property These are all known values, aside from the five that was given.
This commit is contained in:
@@ -2,17 +2,17 @@
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"anyOf": [
|
||||
{
|
||||
"title": "Item reference",
|
||||
"description": "A reference to an item: using the following syntax: [element_name]@[namespace_reference].[element_name_reference]",
|
||||
"title": "Element reference",
|
||||
"description": "A reference to an element: using the following syntax: [element_name]@[namespace_reference].[element_name_reference]",
|
||||
"type": "string",
|
||||
"examples": ["button@minecraft", "button@minecraft:ui"],
|
||||
"examples": ["button@minecraft", "button@minecraft.ui"],
|
||||
"pattern": "^[a-zA-Z0-9_]*@[a-zA-Z0-9_]+(\\.[a-zA-Z0-9_]+)?$"
|
||||
},
|
||||
{
|
||||
"title": "Item reference",
|
||||
"description": "A reference to an item: using the following syntax: [namespace_reference].[element_name_reference]",
|
||||
"title": "Element reference",
|
||||
"description": "A reference to an element: using the following syntax: [namespace_reference].[element_name_reference]",
|
||||
"type": "string",
|
||||
"examples": ["button@minecraft", "button@minecraft:ui"],
|
||||
"examples": ["button@minecraft", "button@minecraft.ui"],
|
||||
"pattern": "[a-zA-Z0-9_]+(\\.[a-zA-Z0-9_]+)?$"
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user