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:
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"title": "Allow Debug Missing Texture",
|
||||
"description": "If true, the element will show the black and purple placeholder texture if the referenced image is not found.",
|
||||
"$ref": "../../general/boolean.json"
|
||||
}
|
||||
@@ -3,7 +3,40 @@
|
||||
"description": "The easing of the animation.",
|
||||
"anyOf": [
|
||||
{
|
||||
"enum": ["spring", "in_sine", "linear", "in_quint", "out_cubic"]
|
||||
"enum": [
|
||||
"linear",
|
||||
"spring",
|
||||
"in_quad",
|
||||
"out_quad",
|
||||
"in_out_quad",
|
||||
"in_cubic",
|
||||
"out_cubic",
|
||||
"in_out_cubic",
|
||||
"in_quart",
|
||||
"out_quart",
|
||||
"in_out_quart",
|
||||
"in_quint",
|
||||
"out_quint",
|
||||
"in_out_quint",
|
||||
"in_sine",
|
||||
"out_sine",
|
||||
"in_out_sine",
|
||||
"in_expo",
|
||||
"out_expo",
|
||||
"in_out_expo",
|
||||
"in_circ",
|
||||
"out_circ",
|
||||
"in_out_circ",
|
||||
"in_bounce",
|
||||
"out_bounce",
|
||||
"in_out_bounce",
|
||||
"in_back",
|
||||
"out_back",
|
||||
"in_out_back",
|
||||
"in_elastic",
|
||||
"out_elastic",
|
||||
"in_out_elastic"
|
||||
]
|
||||
},
|
||||
{
|
||||
"$ref": "../../general/item_ref.json"
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"title": "Propagate Alpha",
|
||||
"description": "If true, this element will apply the same alpha value to its controlled element(s).",
|
||||
"$ref": "../../general/boolean.json"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"title": "Use Child Anchors",
|
||||
"description": "If true, this element will stack its controlled element in respect to their anchor values.",
|
||||
"$ref": "../../general/boolean.json"
|
||||
}
|
||||
@@ -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_]+)?$"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
"initial_uv": { "$ref": "./elements/properties/initial_uv.json" },
|
||||
"next": { "$ref": "./elements/properties/next.json" },
|
||||
"play_event": { "$ref": "./elements/properties/play_event.json" },
|
||||
"propagate_alpha": { "$ref": "./elements/properties/alpha.json" },
|
||||
"propagate_alpha": { "$ref": "./elements/properties/propagate_alpha.json" },
|
||||
"reversible": { "$ref": "./elements/properties/reversible.json" },
|
||||
"scale_from_starting_alpha": { "$ref": "./elements/properties/scale_from_starting_alpha.json" },
|
||||
"to": { "$ref": "./elements/properties/to.json" },
|
||||
@@ -62,6 +62,7 @@
|
||||
},
|
||||
"properties": {
|
||||
"allow_clipping": { "$ref": "./elements/properties/allow_clipping.json" },
|
||||
"allow_debug_missing_texture": { "$ref": "./elements/properties/allow_debug_missing_texture.json" },
|
||||
"allow_scroll_even_when_content_fits": { "$ref": "./elements/properties/allow_scroll_even_when_content_fits.json" },
|
||||
"alpha": { "$ref": "./elements/properties/alpha.json" },
|
||||
"always_handle_pointer": { "$ref": "./elements/properties/always_handle_pointer.json" },
|
||||
@@ -183,7 +184,7 @@
|
||||
"primary_color": { "$ref": "./elements/properties/color.json" },
|
||||
"progress_control": { "$ref": "./elements/properties/progress_control.json" },
|
||||
"progress_hover_control": { "$ref": "./elements/properties/progress_hover_control.json" },
|
||||
"propagate_alpha": { "$ref": "./elements/properties/alpha.json" },
|
||||
"propagate_alpha": { "$ref": "./elements/properties/propagate_alpha.json" },
|
||||
"property_bag": { "$ref": "./elements/properties/property_bag.json" },
|
||||
"radio_toggle_group": { "$ref": "./elements/properties/radio_toggle_group.json" },
|
||||
"render_game_behind": { "$ref": "./elements/properties/render_game_behind.json" },
|
||||
@@ -258,6 +259,7 @@
|
||||
"unchecked_locked_control": { "$ref": "./elements/properties/unchecked_locked_control.json" },
|
||||
"unchecked_locked_hover_control": { "$ref": "./elements/properties/unchecked_locked_hover_control.json" },
|
||||
"use_anchored_offset": { "$ref": "./elements/properties/use_anchored_offset.json" },
|
||||
"use_child_anchors": { "$ref": "./elements/properties/use_child_anchors.json" },
|
||||
"use_last_focus": { "$ref": "./elements/properties/use_last_focus.json" },
|
||||
"uv_size": { "$ref": "./elements/properties/uv_size.json" },
|
||||
"uv": { "$ref": "./elements/properties/uv.json" },
|
||||
|
||||
Reference in New Issue
Block a user