1 line
36 KiB
JSON
Generated
1 line
36 KiB
JSON
Generated
{"$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 the binding is in.","$ref":"#/definitions/E"},"source_property_name":{"title":"Source Property Name","description":"The name of the property that the binding is in.","$ref":"#/definitions/E"},"target_property_name":{"title":"Target Property Name","description":"The name of the property that the binding is in.","$ref":"#/definitions/E"}}}}]},"bilinear":{"title":"Bilinear","description":"If true, the element will use bilinear filtering.","$ref":"#/definitions/A"},"background_control":{"title":"Background Control","description":"The control that will be used for the background.","$ref":"#/definitions/E"},"background_hover_control":{"title":"Background Hover Control","description":"The control that will be used for the background when hovered.","$ref":"#/definitions/E"},"backup_font_type":{"title":"Backup Font Type","description":"The type of the backup font.","type":"string","oneOf":[{"enum":["UIFont"]},{"$ref":"#/definitions/B"}]},"button_mappings":{"title":"Button Mappings","description":"The button mappings that are contained within this element.","oneOf":[{"$ref":"#/definitions/B"},{"type":"array","items":{"type":"object","title":"Button Mappings","additionalProperties":{"type":["string","boolean"],"title":"Button Mapping","examples":["button.menu","button.back","global"]}}}]},"checked_control":{"title":"Checked Control","description":"The control that will be checked.","anyOf":[{"enum":["checked"]},{"$ref":"#/definitions/B"}]},"checked_hover_control":{"title":"Checked Hover Control","description":"The control that will be checked when hovered.","anyOf":[{"enum":["checked"]},{"$ref":"#/definitions/B"}]},"checked_locked_control":{"title":"Checked Locked Control","description":"The control that will be checked when locked.","anyOf":[{"enum":["checked"]},{"$ref":"#/definitions/B"}]},"checked_locked_hover_control":{"title":"Checked Locked Hover Control","description":"The control that will be checked when locked and hovered.","anyOf":[{"enum":["checked"]},{"$ref":"#/definitions/B"}]},"clips_children":{"title":"Clips Children","description":"If true, the element will clip its children.","$ref":"#/definitions/A"},"clip_direction":{"title":"Clip Direction","description":"The direction that the element will be clipped in.","type":"string","oneOf":[{"enum":["left","right","top","bottom"]},{"$ref":"#/definitions/B"}]},"clip_pixelperfect":{"title":"Clip Pixel Perfect","description":"If true, the element will be clipped pixel perfect.","type":"boolean"},"close_on_player_hurt":{"title":"Close On Player Hurt","description":"If true, the element will close when the player is hurt.","$ref":"#/definitions/A"},"collection_name":{"title":"Collection Name","description":"The name of the collection that the element is in.","type":"string","$ref":"#/definitions/E"},"color":{"title":"Color","description":"The color of the text. This can be a hex color code or a color keyword.","$ref":"#/definitions/F"},"contained":{"title":"Contained","description":"If true, the element will be contained.","$ref":"#/definitions/A"},"controls":{"title":"Controls","description":"The controls that are contained within this element.","oneOf":[{"type":"array","items":{"additionalProperties":{"title":"Sub Element","$ref":"#/definitions/grouped"}}},{"$ref":"#/definitions/B"}]},"control_name":{"title":"Control Name","description":"The name of the control.","$ref":"#/definitions/E"},"consume_hover_events":{"title":"Consume Hover Events","description":"If true, the element will consume hover events.","$ref":"#/definitions/A"},"default_control":{"title":"Default Control","description":"The default control that will be focused.","$ref":"#/definitions/E"},"default_focus_precedence":{"title":"Default Focus Precedence","description":"The default focus precedence of the element.","$ref":"#/definitions/G"},"disable_anim_fast_forward":{"title":"Disable Anim Fast Forward","description":"If true, the animation will not be fast forwarded.","$ref":"#/definitions/A"},"draggable":{"title":"Draggable","description":"If true, the element will be draggable.","$ref":"#/definitions/A"},"dropdown_area":{"title":"Dropdown Area","description":"The area that the dropdown will be in.","$ref":"#/definitions/H"},"dropdown_content_control":{"title":"Dropdown Content Control","description":"The control that will be used for the dropdown content.","$ref":"#/definitions/E"},"dropdown_name":{"title":"Dropdown Name","description":"The name of the dropdown.","$ref":"#/definitions/E"},"enabled":{"title":"Enabled","description":"If true, the element will be enabled.","$ref":"#/definitions/A"},"enabled_newline":{"title":"Enabled Newline","description":"If true, the element will be enabled when a new line is created.","$ref":"#/definitions/A"},"enable_directional_toggling":{"title":"Enable Directional Toggling","description":"If true, the element will enable directional toggling.","$ref":"#/definitions/A"},"enable_profanity_filter":{"title":"Enable Profanity Filter","description":"If true, the element will enable the profanity filter.","$ref":"#/definitions/A"},"factory":{"title":"Factory","description":"The factory that will be used to create the element.","type":"object","additionalProperties":false,"patternProperties":{"^\\$.*":{"$ref":"#/definitions/variables"}},"properties":{"control_ids":{"$ref":"#/definitions/control_ids"},"control_name":{"title":"Control Name","description":"The name of the control that will be created by the factory.","$ref":"#/definitions/E"},"factory_variables":{"title":"Factory Variables","description":"The variables that will be used by the factory.","oneOf":[{"type":"array","items":{"type":"string","title":"Factory Variable"}},{"type":"string"}]},"name":{"title":"Name","description":"The name of the factory.","type":"string"}}},"fill":{"title":"Fill","description":"If true, the element will fill the screen.","$ref":"#/definitions/A"},"focus_enabled":{"title":"Focus Enabled","description":"If true, the element will be focus enabled.","$ref":"#/definitions/A"},"focus_change_left":{"title":"Focus Change Left","oneOf":[{"enum":["FOCUS_OVERRIDE_STOP"]},{"$ref":"#/definitions/B"}]},"focus_change_right":{"title":"Focus Change Right","oneOf":[{"enum":["FOCUS_OVERRIDE_STOP"]},{"$ref":"#/definitions/B"}]},"focus_change_down":{"title":"Focus Change Down","oneOf":[{"enum":["FOCUS_OVERRIDE_STOP"]},{"$ref":"#/definitions/B"}]},"focus_change_up":{"title":"Focus Change Up","oneOf":[{"enum":["FOCUS_OVERRIDE_STOP"]},{"$ref":"#/definitions/B"}]},"focus_identifier":{"title":"Focus Identifier","description":"The identifier of the element that will be focused.","$ref":"#/definitions/E"},"focus_magnet_enabled":{"title":"Focus Magnet Enabled","description":"If true, the element will be focus magnet enabled.","$ref":"#/definitions/A"},"focus_wrap_enabled":{"title":"Focus Wrap Enabled","description":"If true, the element will be focus wrap enabled.","$ref":"#/definitions/A"},"force_render_below":{"title":"Force Render Below","description":"If true, the element will be rendered below the screen.","$ref":"#/definitions/A"},"force_texture_reload":{"title":"Force Texture Reload","description":"If true, the texture will be reloaded.","$ref":"#/definitions/A"},"font_scale_factor":{"title":"Font Scale Factor","description":"The scale factor of the font.","$ref":"#/definitions/I"},"font_size":{"title":"Font Size","description":"The size of the font.","anyOf":[{"enum":["normal"]},{"$ref":"#/definitions/B"}]},"font_type":{"title":"Font Type","description":"The type of the font.","type":"string","oneOf":[{"enum":["smooth","MinecraftTen"]},{"$ref":"#/definitions/D"}]},"grid_item_template":{"title":"Grid Item Template","description":"The template that will be used for the grid item.","type":"string"},"grid_dimensions":{"title":"Grid Dimensions","description":"The dimensions of the grid.","$ref":"#/definitions/J"},"grid_dimension_binding":{"title":"Grid Dimension Binding","description":"The binding that will be used for the grid dimension.","$ref":"#/definitions/D"},"grid_position":{"title":"Grid Position","description":"The position of the grid.","$ref":"#/definitions/J"},"grid_rescaling_type":{"title":"Grid Rescaling Type","description":"The type of the grid rescaling.","type":"string","enum":["horizontal"]},"handle_select":{"title":"Handle Select","description":"If true, the element will handle select.","$ref":"#/definitions/A"},"handle_deselect":{"title":"Handle Deselect","description":"If true, the element will handle deselect.","$ref":"#/definitions/A"},"hover_alpha":{"title":"Hover Alpha","description":"The alpha of the text when hovered.","$ref":"#/definitions/I"},"hover_color":{"title":"Hover Color","description":"The color of the text when hovered. This can be a hex color code or a color keyword.","$ref":"#/definitions/F"},"hover_control":{"title":"Hover Control","description":"The control that will be hovered.","anyOf":[{"enum":["hover"]},{"$ref":"#/definitions/B"}]},"hover_enabled":{"title":"Hover Enabled","description":"If true, the element will be hover enabled.","$ref":"#/definitions/A"},"ignored":{"title":"Ignored","description":"If true, the element will be ignored.","$ref":"#/definitions/A"},"indent_control":{"title":"Indent Control","description":"The control that will be indented.","anyOf":[{"enum":["indent"]},{"$ref":"#/definitions/B"}]},"inherit_max_sibling_height":{"title":"Inherit Max Sibling Height","description":"If true, the element will inherit the maximum height of its siblings.","type":"boolean"},"is_modal":{"title":"Is Modal","description":"If true, the element will be modal.","$ref":"#/definitions/A"},"is_showing_menu":{"title":"Is Showing Menu","description":"If true, the element will be showing the menu.","$ref":"#/definitions/A"},"jump_to_bottom_on_update":{"title":"Jump To Bottom On Update","description":"If true, the element will jump to the bottom when updated.","$ref":"#/definitions/A"},"keep_ratio":{"title":"Keep Ratio","description":"If true, the element will keep its ratio.","$ref":"#/definitions/A"},"layer":{"title":"Layer","description":"The layer that the element will be rendered in. Higher layers are rendered on top of lower layers.","$ref":"#/definitions/G"},"localize":{"title":"Localize","description":"If true, the element will be localized.","$ref":"#/definitions/A"},"locked_alpha":{"title":"Locked Alpha","description":"The alpha of the text when locked.","$ref":"#/definitions/I"},"locked_color":{"title":"Locked Color","description":"The color of the text when locked. This can be a hex color code or a color keyword.","$ref":"#/definitions/F"},"locked_control":{"title":"Locked Control","description":"The control that will be locked.","anyOf":[{"enum":["locked",""]},{"$ref":"#/definitions/B"}]},"low_frequency_rendering":{"title":"Low Frequency Rendering","description":"If true, the element will be rendered at a lower frequency.","$ref":"#/definitions/A"},"maximum_grid_items":{"title":"Maximum Grid Items","description":"The maximum number of grid items.","$ref":"#/definitions/G"},"max_length":{"title":"Max Length","description":"The maximum length of the text. If the text is longer than this, it will be truncated.","$ref":"#/definitions/G"},"max_size":{"title":"Max Size","description":"The maximum size of the element.","$ref":"#/definitions/BA"},"min_size":{"title":"Min Size","description":"The minimum size of the element.","$ref":"#/definitions/BA"},"modal":{"title":"Modal","description":"If true, the element will be modal.","$ref":"#/definitions/A"},"offset":{"title":"Offset","description":"The offset of the element from the anchor point. horizontal by vertical.","$ref":"#/definitions/J"},"orientation":{"title":"Orientation","description":"The orientation of the element.","type":"string","anyOf":[{"enum":["horizontal","vertical"]},{"$ref":"#/definitions/B"}]},"primary_color":{"title":"Primary Color","description":"The primary color of the element. This can be a hex color code or a color keyword.","$ref":"#/definitions/F"},"place_holder_control":{"title":"Place Holder Control","description":"The control that will be used for the place holder.","$ref":"#/definitions/E"},"pressed_alpha":{"title":"Pressed Alpha","description":"The alpha of the text when pressed.","$ref":"#/definitions/I"},"pressed_color":{"title":"Pressed Color","description":"The color of the text when pressed. This can be a hex color code or a color keyword.","$ref":"#/definitions/F"},"pressed_control":{"title":"Pressed Control","description":"The control that will be pressed.","anyOf":[{"enum":["hover","pressed"]},{"$ref":"#/definitions/B"}]},"prevent_touch_input":{"title":"Prevent Touch Input","description":"If true, the element will prevent touch input.","$ref":"#/definitions/A"},"progress_control":{"title":"Progress Control","description":"The control that will be used for the progress.","$ref":"#/definitions/E"},"progress_hover_control":{"title":"Progress Hover Control","description":"The control that will be used for the progress when hovered.","$ref":"#/definitions/E"},"property_bag":{"title":"Property Bag","description":"The property bag that will be used by the element.","anyOf":[{"type":"object","additionalProperties":{"title":"Property Bag Property","$ref":"#/definitions/BB"}},{"$ref":"#/definitions/E"}]},"radio_toggle_group":{"title":"Radio Toggle Group","description":"The radio toggle group that the element is in.","$ref":"#/definitions/E"},"renderer":{"title":"Renderer","description":"The renderer that will be used by the element.","anyOf":[{"enum":["ui_holo_cursor"]},{"$ref":"#/definitions/B"}]},"render_game_behind":{"title":"Render Game Behind","description":"If true, the game will be rendered behind the element.","$ref":"#/definitions/A"},"render_only_when_topmost":{"title":"Render Only When Topmost","description":"If true, the element will only be rendered when it is the topmost element.","$ref":"#/definitions/A"},"reset_event":{"title":"Reset Event","description":"The event that will be reset.","$ref":"#/definitions/E"},"reset_on_focus_lost":{"title":"Reset On Focus Lost","description":"If true, the element will be reset when focus is lost.","$ref":"#/definitions/A"},"rotate_speed":{"title":"Rotate Speed","description":"The speed that the element will rotate at.","$ref":"#/definitions/I"},"screen_draws_last":{"title":"Screen Draws Last","description":"If true, the screen will be drawn last.","$ref":"#/definitions/A"},"screen_not_flushable":{"title":"Screen Not Flushable","description":"If true, the screen will not be flushed when the element is added.","$ref":"#/definitions/A"},"send_telemetry":{"title":"Send Telemetry","description":"If true, the element will send telemetry.","$ref":"#/definitions/A"},"size":{"title":"Size","description":"The size of the element.","$ref":"#/definitions/BA"},"shadow":{"title":"Shadow","description":"If true, the text will have a shadow.","$ref":"#/definitions/A"},"should_steal_mouse":{"title":"Should Steal Mouse","description":"If true, the element will steal the mouse.","$ref":"#/definitions/A"},"slider_box_control":{"title":"Slider Box Control","description":"The control that will be used for the slider box.","anyOf":[{"enum":["slider_box"]},{"$ref":"#/definitions/B"}]},"slider_collection_name":{"title":"Slider Collection Name","description":"The name of the collection that the slider is in.","$ref":"#/definitions/E"},"slider_direction":{"title":"Slider Direction","description":"The direction of the slider.","type":"string","$ref":"#/definitions/B"},"slider_name":{"title":"Slider Name","description":"The name of the slider.","$ref":"#/definitions/E"},"slider_select_on_hover":{"title":"Slider Select On Hover","description":"If true, the slider will select on hover.","$ref":"#/definitions/A"},"slider_small_decrease_button":{"title":"Slider Small Decrease Button","description":"The button that will be used for the slider small decrease.","$ref":"#/definitions/B"},"slider_small_increase_button":{"title":"Slider Small Increase Button","description":"The button that will be used for the slider small decrease.","$ref":"#/definitions/B"},"slider_selected_button":{"title":"Slider Selected Button","description":"The button that will be used for the slider selected.","$ref":"#/definitions/B"},"slider_deselected_button":{"title":"Slider Deselected Button","description":"The button that will be used for the slider deselected.","$ref":"#/definitions/B"},"slider_steps":{"title":"Slider Steps","description":"The steps of the slider.","$ref":"#/definitions/G"},"slider_track_button":{"title":"Slider Track Button","description":"The button that will be used for the slider track.","$ref":"#/definitions/B"},"scroll_box_and_track_panel":{"title":"Scroll Box And Track Panel","description":"The panel that will be used for the scroll box and track.","$ref":"#/definitions/E"},"scroll_content":{"title":"Scroll Content","description":"The content that will be scrolled.","$ref":"#/definitions/E"},"scroll_speed":{"title":"Scroll Speed","description":"The speed that the element will scroll at.","$ref":"#/definitions/G"},"scroll_view_port":{"title":"Scroll View Port","description":"The view port that the element will be scrolled in.","$ref":"#/definitions/E"},"scrollbar_box":{"title":"Scrollbar Box","description":"The box of the scrollbar.","anyOf":[{"enum":["box"]},{"$ref":"#/definitions/B"}]},"scrollbar_track_button":{"title":"Scrollbar Track Button","description":"The button that will be used for the scrollbar track.","$ref":"#/definitions/B"},"scrollbar_touch_button":{"title":"Scrollbar Touch Button","description":"The button that will be used for the scrollbar touch.","$ref":"#/definitions/B"},"scrollbar_track":{"title":"Scrollbar Track","description":"The track of the scrollbar.","anyOf":[{"enum":["track"]},{"$ref":"#/definitions/B"}]},"sound_name":{"title":"Sound Name","description":"The name of the sound.","$ref":"#/definitions/E"},"sound_pitch":{"title":"Sound Pitch","description":"The pitch of the sound.","$ref":"#/definitions/I"},"sound_volume":{"title":"Sound Volume","description":"The volume of the sound.","type":"number","minimum":0,"maximum":1},"text":{"title":"Text","description":"The text to display.","type":"string"},"text_alignment":{"title":"Text Alignment","description":"The alignment of the text.","type":"string","anyOf":[{"enum":["left","center","right"]},{"$ref":"#/definitions/D"}]},"text_box_name":{"title":"Text Box Name","description":"The name of the text box.","$ref":"#/definitions/E"},"text_control":{"title":"Text Control","description":"The control that will be used for the text.","$ref":"#/definitions/E"},"text_edit_box_grid_collection_name":{"title":"Text Edit Box Grid Collection Name","description":"The name of the collection that the text edit box grid is in.","$ref":"#/definitions/E"},"text_type":{"title":"Text Type","description":"The type of the text.","anyOf":[{"enum":["ExtendedASCII"]},{"$ref":"#/definitions/D"}]},"texture":{"title":"Texture","description":"The texture to display.","anyOf":[{"type":"string","pattern":"^textures/[a-zA-Z0-9/_-]+$","examples":["textures/ui/file"]},{"$ref":"#/definitions/B"},{"type":"string"}]},"texture_file_system":{"title":"Texture File System","description":"The file system that the texture is in.","oneOf":[{"enum":["RawPath"]},{"$ref":"#/definitions/D"}]},"tiled":{"title":"Tiled","description":"If true, the texture will be tiled.","anyOf":[{"type":"boolean"},{"enum":["x","y"]},{"$ref":"#/definitions/B"}]},"toggle_grid_collection_name":{"title":"Toggle Grid Collection Name","description":"The name of the collection that the toggle grid is in.","$ref":"#/definitions/E"},"toggle_group_default_selected":{"title":"Toggle Group Default Selected","description":"The default selected toggle of the toggle group.","$ref":"#/definitions/E"},"toggle_default_state":{"title":"Toggle Default State","description":"The default state of the toggle.","type":"string","anyOf":[{"enum":["checked","unchecked"]},{"$ref":"#/definitions/B"}]},"toggle_group_forced_index":{"title":"Toggle Group Forced Index","description":"The forced index of the toggle group.","$ref":"#/definitions/G"},"toggle_name":{"title":"Toggle Name","description":"The name of the toggle.","$ref":"#/definitions/E"},"toggle_on_button":{"title":"Toggle On Button","description":"The button that will toggle the element.","$ref":"#/definitions/E"},"toggle_off_button":{"title":"Toggle Off Button","description":"The button that will toggle the element.","$ref":"#/definitions/E"},"touch_mode":{"title":"Touch Mode","description":"The touch mode of the element.","type":"string","oneOf":[{"enum":["touch","mouse"]},{"$ref":"#/definitions/B"}]},"ttsSectionContainer":{"title":"TTS Section Container","description":"The TTS section container.","$ref":"#/definitions/A"},"tts_control_header":{"title":"TTS Control Header","description":"The header of the TTS control.","$ref":"#/definitions/E"},"tts_control_type_order_priority":{"title":"TTS Control Type Order Priority","description":"The priority of the TTS control type order.","$ref":"#/definitions/G"},"tts_ignore_subsections":{"title":"TTS Ignore Subsections","description":"If true, the element will ignore subsections.","$ref":"#/definitions/A"},"tts_ignore_count":{"title":"TTS Ignore Count","description":"The number of TTS ignores.","$ref":"#/definitions/G"},"tts_index_priority":{"title":"TTS Index Priority","description":"The priority of the TTS index.","$ref":"#/definitions/G"},"tts_inherit_siblings":{"title":"TTS Inherit Siblings","description":"If true, the element will inherit its siblings.","$ref":"#/definitions/A"},"tts_name":{"title":"TTS Name","description":"The name of the TTS.","$ref":"#/definitions/E"},"tts_toggle_on":{"title":"TTS Toggle On","description":"If true, the TTS will toggle on.","$ref":"#/definitions/A"},"tts_toggle_off":{"title":"TTS Toggle Off","description":"If true, the TTS will toggle off.","$ref":"#/definitions/A"},"tts_override_control_value":{"title":"TTS Override Control Value","description":"If true, the TTS will override the control value.","$ref":"#/definitions/A"},"tts_section_header":{"title":"TTS Section Header","description":"The header of the TTS section.","$ref":"#/definitions/E"},"tts_value_changed":{"title":"TTS Value Changed","description":"If true, the TTS value will change.","$ref":"#/definitions/A"},"tts_value_order_priority":{"title":"TTS Value Order Priority","description":"The priority of the TTS value order.","$ref":"#/definitions/G"},"type":{"title":"Type","description":"The type of the element","type":"string","enum":["always_rotate","button","carousel_label","custom","dropdown","edit_box","grid","image","input_panel","label","panel","scrollbar_box","scroll_track","scroll_view","slider_box","slider","stack_panel","toggle"]},"unchecked_control":{"title":"Unchecked Control","description":"The control that will be unchecked.","anyOf":[{"enum":["unchecked"]},{"$ref":"#/definitions/B"}]},"unchecked_hover_control":{"title":"Unchecked Hover Control","description":"The control that will be unchecked when hovered.","anyOf":[{"enum":["unchecked"]},{"$ref":"#/definitions/B"}]},"unchecked_locked_control":{"title":"Unchecked Locked Control","description":"The control that will be unchecked when locked.","anyOf":[{"enum":["unchecked"]},{"$ref":"#/definitions/B"}]},"unchecked_locked_hover_control":{"title":"Unchecked Locked Hover Control","description":"The control that will be unchecked when locked and hovered.","anyOf":[{"enum":["unchecked"]},{"$ref":"#/definitions/B"}]},"uv":{"title":"UV","description":"The UV of the animation.","$ref":"#/definitions/J"},"uv_size":{"title":"UV Size","description":"The size of the UV.","$ref":"#/definitions/J"},"variables":{"title":"Variables","description":"The variables that are contained within this element.","anyOf":[{"$ref":"#/definitions/B"},{"type":"array","items":{"type":"object","title":"Variables","additionalProperties":{"$ref":"#/definitions/variables"}}},{"type":"object","title":"Variables","additionalProperties":{"$ref":"#/definitions/variables"}}]},"visible":{"title":"Visible","description":"If true, the element will be visible.","$ref":"#/definitions/A"},"virtual_keyboard_buffer_control":{"title":"Virtual Keyboard Buffer Control","description":"The control that will be used for the virtual keyboard buffer.","$ref":"#/definitions/E"},"zip_folder":{"title":"Zip Folder","description":"The folder that the element will be zipped into.","$ref":"#/definitions/E"}}},"animation":{"type":"object","title":"Animation","description":"An animation is a set of keyframes that can be applied to an element.","additionalProperties":false,"required":["anim_type"],"patternProperties":{"^\\$.*":{"$ref":"#/definitions/variables"}},"properties":{"anim_type":{"title":"Animation Type","description":"The type of the animation.","type":"string","enum":["wait","offset","alpha","flip_book"]},"animation_reset_name":{"title":"Animation Reset Name","description":"The name of the animation that will be reset.","$ref":"#/definitions/E"},"destroy_at_end":{"title":"Destroy At End","description":"If true, the element will be destroyed at the end of the animation.","anyOf":[{"enum":["popup","details_bubble_control"]},{"$ref":"#/definitions/D"}]},"disable_anim_fast_forward":{"title":"Disable Anim Fast Forward","description":"If true, the animation will not be fast forwarded.","$ref":"#/definitions/A"},"duration":{"title":"Duration","description":"The duration of the animation.","$ref":"#/definitions/I"},"end_event":{"title":"End Event","description":"The event that will be triggered when the animation ends.","type":"string"},"easing":{"title":"Easing","description":"The easing of the animation.","type":"string","enum":["spring","in_sine","linear","in_quint","out_cubic"]},"frame_count":{"title":"Frame Count","description":"The number of frames in the animation.","$ref":"#/definitions/G"},"frame_step":{"title":"Frame Step","description":"The step of the frame.","$ref":"#/definitions/G"},"from":{"title":"From","description":"The starting point of the animation.","anyOf":[{"type":"number"},{"$ref":"#/definitions/J"}]},"fps":{"title":"FPS","description":"The FPS of the animation.","$ref":"#/definitions/G"},"initial_uv":{"title":"Initial UV","description":"The initial UV of the animation.","$ref":"#/definitions/J"},"next":{"title":"Next","description":"The name of the next element.","$ref":"#/definitions/B"},"play_event":{"title":"Play Event","description":"The event that will be played.","$ref":"#/definitions/E"},"propagate_alpha":{"title":"Propagate Alpha","description":"If true, the alpha will be propagated.","$ref":"#/definitions/A"},"reversible":{"title":"Reversible","description":"If true, the animation will be reversible.","$ref":"#/definitions/A"},"scale_from_starting_alpha":{"title":"Scale From Starting Alpha","description":"If true, the animation will scale from the starting alpha.","$ref":"#/definitions/A"},"to":{"title":"To","description":"The ending point of the animation.","oneOf":[{"type":"number"},{"$ref":"#/definitions/J"}]},"uv":{"title":"UV","description":"The UV of the animation.","$ref":"#/definitions/J"},"uv_size":{"title":"UV Size","description":"The size of the UV.","$ref":"#/definitions/J"}}},"control_factory":{"title":"Control Factory","type":"object","propertyNames":{"examples":["$variable"]},"additionalProperties":false,"patternProperties":{"^\\$.*":{"$ref":"#/definitions/variables"}},"properties":{"type":{"title":"Type","description":"The type of the element","type":"string","enum":["factory"]},"control_ids":{"$ref":"#/definitions/control_ids"}}},"grouped":{"title":"UI definition","type":"object","anyOf":[{"$ref":"#/definitions/control"},{"$ref":"#/definitions/animation"},{"$ref":"#/definitions/control_factory"}]},"B":{"anyOf":[{"title":"Item reference","description":"A reference to an item: using the following syntax: [element_name]@[namespace_reference].[element_name_reference]","type":"string","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]","type":"string","examples":["button@minecraft","button@minecraft:ui"],"pattern":"[a-zA-Z0-9_]+(\\.[a-zA-Z0-9_]+)?$"},{"title":"Variable reference","description":"A variable is a reference to a value that can be used in the UI.","type":"string","anyOf":[{"pattern":"^\\$[a-zA-Z0-9_]+$"},{"pattern":"^#[a-zA-Z0-9_]+$"},{"pattern":"^\\(.*\\)$"}]}]},"A":{"title":"Boolean","description":"A boolean value.","anyOf":[{"type":"boolean"},{"type":"string","$ref":"#/definitions/B"}],"examples":["true","false","$variable","($variable)"]},"C":{"title":"Anchor","description":"An anchor is a reference to an element in the UI.","type":"string","enum":["bottom","bottom_left","bottom_right","bottom_middle","center","left","left_middle","right","right_middle","top","top_left","top_right","top_middle"]},"D":{"title":"Variable","description":"A variable is a reference to a value that can be used in the UI.","type":"string","anyOf":[{"type":"string","pattern":"^\\$[a-zA-Z0-9_]+$"},{"type":"string","pattern":"^#[a-zA-Z0-9_]+$"},{"type":"string","pattern":"^\\(.*\\)$"}],"examples":["$variable","($variable)"]},"E":{"title":"String","description":"A string value.","anyOf":[{"type":"string"},{"type":"string","$ref":"#/definitions/B"}]},"F_color_item":{"type":"number","minimum":0,"maximum":1},"F":{"oneOf":[{"type":"string","description":"A variable","$ref":"#/definitions/B"},{"type":"array","description":"A size with width and height.","items":[{"title":"Red","type":"string","description":"A variable","$ref":"#/definitions/F_color_item"},{"title":"Green","type":"string","description":"A variable","$ref":"#/definitions/F_color_item"},{"title":"Blue","type":"string","description":"A variable","$ref":"#/definitions/F_color_item"}]}]},"G":{"title":"Integer","description":"A integer value.","oneOf":[{"type":"integer"},{"type":"string","$ref":"#/definitions/B"}],"examples":[0,1,2,"$variable","($variable)"]},"H_size_coord":{"oneOf":[{"type":"string","enum":["default","fill"]},{"type":"string","pattern":"^[0-9]+(px|%)$"},{"type":"integer","minimum":0}],"examples":["default","fill","100px","100%","100% - 2px"]},"H":{"oneOf":[{"type":"string","description":"A variable","$ref":"#/definitions/B"},{"type":"array","description":"A size with width and height.","items":[{"title":"X","description":"A variable","$ref":"#/definitions/H_size_coord"},{"title":"Y","description":"A variable","$ref":"#/definitions/H_size_coord"},{"title":"Width","description":"A variable","$ref":"#/definitions/H_size_coord"},{"title":"Height","description":"A variable","$ref":"#/definitions/H_size_coord"}]}],"examples":["default","fill",["100%","100%"]]},"I":{"title":"Number","description":"A Number value.","oneOf":[{"type":"number"},{"type":"string","$ref":"#/definitions/B"}],"examples":[0,1,2,"$variable","($variable)"]},"J_size_coord":{"oneOf":[{"type":"string","enum":["default","fill"]},{"type":"string","pattern":"^[0-9]+(px|%)$"},{"type":"integer","minimum":0}],"examples":["default","fill","100px","100%","100% - 2px"]},"J":{"oneOf":[{"type":"string","description":"A variable","$ref":"#/definitions/B"},{"type":"array","description":"A size with width and height.","items":[{"title":"Width","type":"string","description":"A variable","$ref":"#/definitions/J_size_coord"},{"title":"Height","type":"string","description":"A variable","$ref":"#/definitions/J_size_coord"}]}],"examples":["default","fill",["100%","100%"]]},"BA_size_coord":{"title":"Size Coord","description":"A size coordinate.","oneOf":[{"type":"string","enum":["default","fill"]},{"type":"string","pattern":"^[0-9]+(px|%)$"},{"type":"integer","minimum":0}],"examples":["default","fill","100px","100%","100% - 2px"]},"BA":{"title":"Size","description":"The size of the element.","oneOf":[{"type":"string","description":"A variable","$ref":"#/definitions/B"},{"type":"array","description":"A size with width and height.","items":[{"title":"Width","type":"string","description":"A variable","$ref":"#/definitions/BA_size_coord"},{"title":"Height","type":"string","description":"A variable","$ref":"#/definitions/BA_size_coord"}]}],"examples":["default","fill",["100%","100%"]]},"BB":{"title":"Any","description":"An any value.","type":["array","boolean","integer","number","object","string"]}},"additionalProperties":{"$ref":"#/definitions/grouped"}} |