1 line
36 KiB
JSON
1 line
36 KiB
JSON
|
|
{"$schema":"http://json-schema.org/draft-07/schema","title":"Minecraft JSON UI","type":"object","properties":{"namespace":{"title":"Namespace","type":"string","pattern":"^[a-zA-Z0-9_-]+$"}},"definitions":{"control_ids":{"title":"Control IDs","description":"The IDs of the controls that will be created by the factory.","oneOf":[{"type":"string"},{"type":"object","additionalProperties":{"title":"Control ID","type":"string"}}]},"variables":{"title":"Variable Definition","description":"A variable is a reference to a value that can be used in the UI."},"control":{"title":"Element","description":"An element is a control that can be added to a screen. It can be a button, a label, an image, etc.","type":"object","propertyNames":{"examples":["$variable"]},"additionalProperties":false,"patternProperties":{"^\\$.*":{"$ref":"#/definitions/variables"}},"properties":{"allow_scroll_even_when_content_fits":{"title":"Allow Scroll Even When Content Fits","description":"If true, the element will allow scrolling even when the content fits.","$ref":"#/definitions/A"},"always_handle_scrolling":{"title":"Always Handle Scrolling","description":"If true, the element will always handle scrolling.","$ref":"#/definitions/A"},"always_rotate":{"title":"Always Rotate","description":"If true, the element will always rotate.","$ref":"#/definitions/A"},"always_listen_to_input":{"title":"Always Listen To Input","description":"If true, the element will always listen to input.","$ref":"#/definitions/A"},"always_handle_pointer":{"title":"Always Handle Pointer","description":"If true, the element will always handle the pointer.","$ref":"#/definitions/A"},"anims":{"title":"Animations","description":"The animations that are contained within this element.","oneOf":[{"$ref":"#/definitions/B"},{"type":"array","items":{"$ref":"#/definitions/B"}}]},"alpha":{"title":"Alpha","description":"The alpha of the element.","oneOf":[{"$ref":"#/definitions/B"},{"type":"number","minimum":0,"maximum":1}]},"anchor_from":{"title":"Anchor From","description":"The anchor point of the element. This is the point that the element will be positioned relative to.","oneOf":[{"$ref":"#/definitions/C"},{"$ref":"#/definitions/D"}]},"anchor_to":{"title":"Anchor To","description":"The anchor point of the element. This is the point that the element will be positioned relative to.","oneOf":[{"$ref":"#/definitions/C"},{"$ref":"#/definitions/D"}]},"bindings":{"title":"Bindings","description":"The bindings that are contained within this element.","oneOf":[{"$ref":"#/definitions/B"},{"type":"array","items":{"type":"object","title":"Bindings","additionalProperties":false,"properties":{"binding_collection_name":{"title":"Binding Collection Name","description":"The name of the collection that the binding is in.","$ref":"#/definitions/E"},"binding_collection_prefix":{"title":"Binding Collection Prefix","description":"The prefix of the collection that the binding is in.","$ref":"#/definitions/E"},"binding_condition":{"title":"Binding Condition","description":"The condition that must be met for the binding to be applied.","anyOf":[{"enum":["once","always","always_when_visible","visible"]},{"$ref":"#/definitions/B"}]},"binding_name":{"title":"Binding Name","description":"The name of the binding. This is used to reference the binding in the element's properties.","$ref":"#/definitions/E"},"binding_name_override":{"title":"Binding Name Override","description":"The name of the binding. This is used to reference the binding in the element's properties.","$ref":"#/definitions/E"},"binding_type":{"title":"Binding Type","description":"The type of the binding.","anyOf":[{"enum":["collection","global","collection_details","none","view"]},{"$ref":"#/definitions/D"}]},"ignored":{"title":"Ignored","description":"If true, the binding will be ignored.","$ref":"#/definitions/A"},"resolve_sibling_scope":{"title":"Resolve Sibling Scope","description":"If true, the binding will resolve sibling scope.","$ref":"#/definitions/A"},"source_control_name":{"title":"Source Control Name","description":"The name of the control that t
|