Separating ui file into its components

This commit is contained in:
DaanV2
2023-10-24 19:49:51 +02:00
parent b7667bd8da
commit 9ddf4d225e
206 changed files with 1824 additions and 1450 deletions

View File

@@ -0,0 +1,5 @@
{
"title": "Allow Clipping",
"description": "If true, the element will allow clipping.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Allow Scroll Even When Content Fits",
"description": "If true, the element will allow scrolling even when the content fits.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,14 @@
{
"title": "Alpha",
"description": "The alpha of the element.",
"anyOf": [
{
"$ref": "../../general/item_ref.json"
},
{
"type": "number",
"minimum": 0,
"maximum": 1
}
]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Always Handle Pointer",
"description": "If true, the element will always handle the pointer.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Always Handle Scrolling",
"description": "If true, the element will always handle scrolling.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Always Listen To Input",
"description": "If true, the element will always listen to input.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Always Rotate",
"description": "If true, the element will always rotate.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,12 @@
{
"title": "Anchor From",
"description": "The anchor point of the element. This is the point that the element will be positioned relative to.",
"anyOf": [
{
"$ref": "../../general/anchor.json"
},
{
"$ref": "../../general/variable.json"
}
]
}

View File

@@ -0,0 +1,12 @@
{
"title": "Anchor To",
"description": "The anchor point of the element. This is the point that the element will be positioned relative to.",
"anyOf": [
{
"$ref": "../../general/anchor.json"
},
{
"$ref": "../../general/variable.json"
}
]
}

View File

@@ -0,0 +1,12 @@
{
"title": "Animation Type",
"description": "The type of the animation.",
"anyOf": [
{
"enum": ["wait", "offset", "alpha", "flip_book"]
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Animation Reset Name",
"description": "The name of the animation that will be reset.",
"$ref": "../../general/string.json"
}

View File

@@ -0,0 +1,15 @@
{
"title": "Animations",
"description": "The animations that are contained within this element.",
"anyOf": [
{
"$ref": "../../general/item_ref.json"
},
{
"type": "array",
"items": {
"$ref": "../../general/item_ref.json"
}
}
]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Background Control",
"description": "The control that will be used for the background.",
"$ref": "../../general/string.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Background Hover Control",
"description": "The control that will be used for the background when hovered.",
"$ref": "../../general/string.json"
}

View File

@@ -0,0 +1,12 @@
{
"title": "Backup Font Type",
"description": "The type of the backup font.",
"anyOf": [
{
"enum": ["UIFont"]
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Bilinear",
"description": "If true, the element will use bilinear filtering.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,88 @@
{
"title": "Bindings",
"description": "The bindings that are contained within this element.",
"anyOf": [
{
"$ref": "../../general/item_ref.json"
},
{
"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": "../../general/string.json"
},
"binding_collection_prefix": {
"title": "Binding Collection Prefix",
"description": "The prefix of the collection that the binding is in.",
"$ref": "../../general/string.json"
},
"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": "../../general/item_ref.json"
}
]
},
"binding_name": {
"title": "Binding Name",
"description": "The name of the binding. This is used to reference the binding in the element's properties.",
"$ref": "../../general/string.json"
},
"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": "../../general/string.json"
},
"binding_type": {
"title": "Binding Type",
"description": "The type of the binding.",
"anyOf": [
{
"enum": ["collection", "global", "collection_details", "none", "view"]
},
{
"$ref": "../../general/variable.json"
}
]
},
"ignored": {
"title": "Ignored",
"description": "If true, the binding will be ignored.",
"$ref": "../../general/boolean.json"
},
"resolve_sibling_scope": {
"title": "Resolve Sibling Scope",
"description": "If true, the binding will resolve sibling scope.",
"$ref": "../../general/boolean.json"
},
"source_control_name": {
"title": "Source Control Name",
"description": "The name of the control that the binding is in.",
"$ref": "../../general/string.json"
},
"source_property_name": {
"title": "Source Property Name",
"description": "The name of the property that the binding is in.",
"$ref": "../../general/string.json"
},
"target_property_name": {
"title": "Target Property Name",
"description": "The name of the property that the binding is in.",
"$ref": "../../general/string.json"
}
}
}
}
]
}

View File

@@ -0,0 +1,21 @@
{
"title": "Button Mappings",
"description": "The button mappings that are contained within this element.",
"anyOf": [
{
"$ref": "../../general/item_ref.json"
},
{
"type": "array",
"items": {
"type": "object",
"title": "Button Mappings",
"additionalProperties": {
"type": ["string", "boolean"],
"title": "Button Mapping",
"examples": ["button.menu", "button.back", "global"]
}
}
}
]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Cache Screen",
"description": "If true, the screen will be cached.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,12 @@
{
"title": "Checked Control",
"description": "The control that will be checked.",
"anyOf": [
{
"enum": ["checked"]
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,12 @@
{
"title": "Checked Hover Control",
"description": "The control that will be checked when hovered.",
"anyOf": [
{
"enum": ["checked"]
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,12 @@
{
"title": "Checked Locked Control",
"description": "The control that will be checked when locked.",
"anyOf": [
{
"enum": ["checked"]
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,12 @@
{
"title": "Checked Locked Hover Control",
"description": "The control that will be checked when locked and hovered.",
"anyOf": [
{
"enum": ["checked"]
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,12 @@
{
"title": "Clip Direction",
"description": "The direction that the element will be clipped in.",
"anyOf": [
{
"enum": ["left", "right", "top", "bottom"]
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Clip Pixel Perfect",
"description": "If true, the element will be clipped pixel perfect.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Clips Children",
"description": "If true, the element will clip its children.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Close On Player Hurt",
"description": "If true, the element will close when the player is hurt.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Collection Index",
"description": "The index of the collection that the element is in.",
"$ref": "../../general/integer.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Collection Name",
"description": "The name of the collection that the element is in.",
"$ref": "../../general/string.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Color",
"description": "The color of the text. This can be a hex color code or a color keyword.",
"$ref": "../../general/color.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Consume Hover Events",
"description": "If true, the element will consume hover events.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Contained",
"description": "If true, the element will be contained.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,16 @@
{
"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"
}
}
]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Control Name",
"description": "The name of the control.",
"$ref": "../../general/string.json"
}

View File

@@ -0,0 +1,18 @@
{
"title": "Controls",
"description": "The controls that are contained within this element.",
"anyOf": [
{
"type": "array",
"items": {
"additionalProperties": {
"title": "Sub Element",
"$ref": "#/definitions/grouped"
}
}
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Default Control",
"description": "The default control that will be focused.",
"$ref": "../../general/string.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Default Focus Precedence",
"description": "The default focus precedence of the element.",
"$ref": "../../general/integer.json"
}

View File

@@ -0,0 +1,12 @@
{
"title": "Destroy At End",
"description": "If true, the element will be destroyed at the end of the animation.",
"anyOf": [
{
"enum": ["popup", "details_bubble_control", "bundle_mode_popup_control", "selected_item_details"]
},
{
"$ref": "../../general/variable.json"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Disable Anim Fast Forward",
"description": "If true, the animation will not be fast forwarded.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Draggable",
"description": "If true, the element will be draggable.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Dropdown Area",
"description": "The area that the dropdown will be in.",
"$ref": "../../general/vec4.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Dropdown Content Control",
"description": "The control that will be used for the dropdown content.",
"$ref": "../../general/string.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Dropdown Name",
"description": "The name of the dropdown.",
"$ref": "../../general/string.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Duration",
"description": "The duration of the animation.",
"$ref": "../../general/number.json"
}

View File

@@ -0,0 +1,12 @@
{
"title": "Easing",
"description": "The easing of the animation.",
"anyOf": [
{
"enum": ["spring", "in_sine", "linear", "in_quint", "out_cubic"]
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Enable Directional Toggling",
"description": "If true, the element will enable directional toggling.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Enable Profanity Filter",
"description": "If true, the element will enable the profanity filter.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Enabled",
"description": "If true, the element will be enabled.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Enabled Newline",
"description": "If true, the element will be enabled when a new line is created.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "End Event",
"description": "The event that will be triggered when the animation ends.",
"$ref": "../../general/string.json"
}

View File

@@ -0,0 +1,49 @@
{
"title": "Factory",
"description": "The factory that will be used to create the element.",
"anyOf": [
{
"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": "../../general/string.json"
},
"factory_variables": {
"title": "Factory Variables",
"description": "The variables that will be used by the factory.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"title": "Factory Variable"
}
},
{
"type": "string"
}
]
},
"name": {
"title": "Name",
"description": "The name of the factory.",
"type": "string"
}
}
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Fill",
"description": "If true, the element will fill the screen.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,11 @@
{
"title": "Focus Change Down",
"anyOf": [
{
"enum": ["FOCUS_OVERRIDE_STOP"]
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,11 @@
{
"title": "Focus Change Left",
"anyOf": [
{
"enum": ["FOCUS_OVERRIDE_STOP"]
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,11 @@
{
"title": "Focus Change Right",
"anyOf": [
{
"enum": ["FOCUS_OVERRIDE_STOP"]
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,11 @@
{
"title": "Focus Change Up",
"anyOf": [
{
"enum": ["FOCUS_OVERRIDE_STOP"]
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Focus Container",
"description": "If true, the element will be a focus container.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Focus Enabled",
"description": "If true, the element will be focus enabled.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Focus Identifier",
"description": "The identifier of the element that will be focused.",
"$ref": "../../general/string.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Focus Magnet Enabled",
"description": "If true, the element will be focus magnet enabled.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,12 @@
{
"title": "Focus Navigation Mode Down",
"description": "The focus navigation mode that will be used when navigating down.",
"anyOf": [
{
"$ref": "../../general/navigation_mode.json"
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,12 @@
{
"title": "Focus Navigation Mode Left",
"description": "The focus navigation mode that will be used when navigating left.",
"anyOf": [
{
"$ref": "../../general/navigation_mode.json"
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,12 @@
{
"title": "Focus Navigation Mode Right",
"description": "The focus navigation mode that will be used when navigating right.",
"anyOf": [
{
"$ref": "../../general/navigation_mode.json"
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,12 @@
{
"title": "Focus Navigation Mode Up",
"description": "The focus navigation mode that will be used when navigating up.",
"anyOf": [
{
"$ref": "../../general/navigation_mode.json"
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Focus Wrap Enabled",
"description": "If true, the element will be focus wrap enabled.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Font Scale Factor",
"description": "The scale factor of the font.",
"$ref": "../../general/number.json"
}

View File

@@ -0,0 +1,12 @@
{
"title": "Font Size",
"description": "The size of the font.",
"anyOf": [
{
"enum": ["normal"]
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,12 @@
{
"title": "Font Type",
"description": "The type of the font.",
"anyOf": [
{
"enum": ["smooth", "MinecraftTen", "MinecraftTenEmoticon"]
},
{
"$ref": "../../general/variable.json"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Force Render Below",
"description": "If true, the element will be rendered below the screen.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Force Texture Reload",
"description": "If true, the texture will be reloaded.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "FPS",
"description": "The FPS of the animation.",
"$ref": "../../general/integer.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Frame Count",
"description": "The number of frames in the animation.",
"$ref": "../../general/integer.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Frame Step",
"description": "The step of the frame.",
"$ref": "../../general/integer.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "From",
"description": "The starting point of the animation.",
"anyOf": [{ "type": "number" }, { "$ref": "../../general/vec2.json" }]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Grid Dimension Binding",
"description": "The binding that will be used for the grid dimension.",
"$ref": "../../general/variable.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Grid Dimensions",
"description": "The dimensions of the grid.",
"$ref": "../../general/vec2.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Grid Item Template",
"description": "The template that will be used for the grid item.",
"$ref": "../../general/string.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Grid Position",
"description": "The position of the grid.",
"$ref": "../../general/vec2.json"
}

View File

@@ -0,0 +1,12 @@
{
"title": "Grid Rescaling Type",
"description": "The type of the grid rescaling.",
"anyOf": [
{
"enum": ["horizontal"]
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Handle Deselect",
"description": "If true, the element will handle deselect.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Handle Select",
"description": "If true, the element will handle select.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Hide Hyphen",
"description": "If true, the element will hide the hyphen.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Hover Alpha",
"description": "The alpha of the text when hovered.",
"$ref": "../../general/number.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Hover Color",
"description": "The color of the text when hovered. This can be a hex color code or a color keyword.",
"$ref": "../../general/color.json"
}

View File

@@ -0,0 +1,12 @@
{
"title": "Hover Control",
"description": "The control that will be hovered.",
"anyOf": [
{
"enum": ["hover"]
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Hover Enabled",
"description": "If true, the element will be hover enabled.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Ignored",
"description": "If true, the element will be ignored.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,15 @@
{
"title": "Images",
"description": "The images that are contained within this element.",
"anyOf": [
{
"$ref": "../../general/item_ref.json"
},
{
"type": "array",
"items": {
"$ref": "../../general/item_ref.json"
}
}
]
}

View File

@@ -0,0 +1,12 @@
{
"title": "Indent Control",
"description": "The control that will be indented.",
"anyOf": [
{
"enum": ["indent"]
},
{
"$ref": "../../general/item_ref.json"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"title": "Inherit Max Sibling Height",
"description": "If true, the element will inherit the maximum height of its siblings.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Inherit Max Sibling Width",
"description": "If true, the element will inherit the maximum width of its siblings.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Initial UV",
"description": "The initial UV of the animation.",
"$ref": "../../general/vec2.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Is Modal",
"description": "If true, the element will be modal.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Is Showing Menu",
"description": "If true, the element will be showing the menu.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Jump To Bottom On Update",
"description": "If true, the element will jump to the bottom when updated.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Keep Ratio",
"description": "If true, the element will keep its ratio.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Layer",
"description": "The layer that the element will be rendered in. Higher layers are rendered on top of lower layers.",
"$ref": "../../general/integer.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Localize",
"description": "If true, the element will be localized.",
"$ref": "../../general/boolean.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Locked Alpha",
"description": "The alpha of the text when locked.",
"$ref": "../../general/number.json"
}

View File

@@ -0,0 +1,5 @@
{
"title": "Locked Color",
"description": "The color of the text when locked. This can be a hex color code or a color keyword.",
"$ref": "../../general/color.json"
}

Some files were not shown because too many files have changed in this diff Show More