diff --git a/source/resource/ui/elements/properties/allow_debug_missing_texture.json b/source/resource/ui/elements/properties/allow_debug_missing_texture.json new file mode 100644 index 00000000..88819144 --- /dev/null +++ b/source/resource/ui/elements/properties/allow_debug_missing_texture.json @@ -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" +} diff --git a/source/resource/ui/elements/properties/easing.json b/source/resource/ui/elements/properties/easing.json index a01e32ab..8a5d8a94 100644 --- a/source/resource/ui/elements/properties/easing.json +++ b/source/resource/ui/elements/properties/easing.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" diff --git a/source/resource/ui/elements/properties/propagate_alpha.json b/source/resource/ui/elements/properties/propagate_alpha.json new file mode 100644 index 00000000..66604a53 --- /dev/null +++ b/source/resource/ui/elements/properties/propagate_alpha.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" +} diff --git a/source/resource/ui/elements/properties/use_child_anchors.json b/source/resource/ui/elements/properties/use_child_anchors.json new file mode 100644 index 00000000..2464c5bf --- /dev/null +++ b/source/resource/ui/elements/properties/use_child_anchors.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" +} diff --git a/source/resource/ui/general/item_ref.json b/source/resource/ui/general/item_ref.json index ef12d4b9..2a5ffd47 100644 --- a/source/resource/ui/general/item_ref.json +++ b/source/resource/ui/general/item_ref.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_]+)?$" }, { diff --git a/source/resource/ui/ui.json b/source/resource/ui/ui.json index 8416454c..5770f20d 100644 --- a/source/resource/ui/ui.json +++ b/source/resource/ui/ui.json @@ -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" },