Files
MinecraftLegends/Win32.DX11.Release/data/resource_packs/vanilla/ui/ui_common.json
T
2026-03-08 15:34:38 -05:00

4247 lines
132 KiB
JSON

{
"namespace": "common",
//---------------------------------------------------------------------------
// Common controls
//---------------------------------------------------------------------------
"button": {
"type": "button",
"$focus_id|default": "",
"$focus_override_down|default": "",
"$focus_override_up|default": "",
"$focus_override_left|default": "",
"$focus_override_right|default": "",
"focus_identifier": "$focus_id",
"focus_change_down": "$focus_override_down",
"focus_change_up": "$focus_override_up",
"focus_change_left": "$focus_override_left",
"focus_change_right": "$focus_override_right",
"focus_enabled": true,
"focus_magnet_enabled": true,
"$button_focus_precedence|default": 0,
"default_focus_precedence": "$button_focus_precedence",
"layer": 1,
"sound_name": "random.click",
"sound_volume": 1.0,
"sound_pitch": 1.0,
"locked_control": "",
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "$pressed_button_name",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "$pressed_button_name",
"mapping_type": "focused"
}
]
},
"screen_header_title_panel": {
"type": "panel",
"size": [ "fill", 17 ],
"$screen_header_title_visible|default": true,
"controls": [
{
"store_header_title": {
"type": "label",
"size": [ "100%", 17 ],
"offset": [ 0, 3 ],
"ignored": "(not $screen_header_title_visible)",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"text_alignment": "center",
"color": "$title_text_color",
"$screen_header_title|default": "#screen_header_title",
"$screen_header_title_binding_type|default": "none",
"text": "$screen_header_title",
"bindings": [
{
"binding_type": "$screen_header_title_binding_type",
"binding_name": "$screen_header_title",
"binding_name_override": "$screen_header_title"
}
]
}
}
]
},
"back_button@common_buttons.no_background_content_button": {
"variables": [
{
"requires": "$touch",
"$size": [ "100%c + 6px", "100%c + 6px" ],
"$button_panel_offset": [ 3, 3 ]
},
{
"requires": "(not $touch)",
"$size": [ "100%c", "100%c" ]
}
],
"size": "$size",
"$button_text": "$back_button_text",
"$button_content": "common.back_button_content",
"$button_type_panel": "common_buttons.form_fitting_button_content_panel",
"$button_text_binding_type|default": "none",
"$button_binding_condition|default": "none",
"$button_text_grid_collection_name|default": "",
"bindings": [
{
"binding_name": "(not #gamepad_helper_visible)",
"binding_name_override": "#visible"
}
],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.menu_exit",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.menu_exit",
"mapping_type": "focused"
}
]
},
"back_title_button": {
"type": "stack_panel",
"orientation": "horizontal",
"$button_text_binding_type|default": "none",
"$back_button_has_title|default": false,
"controls": [
{
"panel1": {
"type": "panel",
"offset": [ 2, 0 ],
"size": [ 16, "100%" ],
"controls": [
{
"button@common.back_button": {
"$button_text": "",
"$button_content": "common.back_title_button_content"
}
}
]
}
},
{
"padding1": {
"type": "panel",
"size": [ 3, "100%" ],
"ignored": "(not $back_button_has_title)"
}
},
{
"panel2": {
"type": "panel",
"size": [ "100%c", "100%" ],
"ignored": "(not $back_button_has_title)",
"controls": [
{
"label": {
"type": "label",
"layer": 2,
"text": "$button_text",
"color": "$title_text_color",
"text_alignment": "center",
"bindings": [
{
"binding_type": "$button_text_binding_type",
"binding_name": "$button_text",
"binding_name_override": "$button_text"
}
]
}
}
]
}
}
]
},
"chevron_image": {
"type": "image",
"layer": 1,
"size": [ 4, 7 ],
"texture": "$chevron_image_name"
},
"back_button_content": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%c", 16 ],
"offset": [ 0, 2 ],
"controls": [
{
"chevron_panel": {
"type": "panel",
"size": [ "100%c", "100%c" ],
"controls": [
{
"left_chevron@common.chevron_image": {
"texture": "textures/ui/chevron_left",
"offset": [ 0, -1 ],
"color": "$text_color"
}
}
]
}
},
{
"padding1": {
"type": "panel",
"size": [ 4, "100%" ]
}
},
{
"label_panel": {
"type": "panel",
"size": [ "100%c", "100%c" ],
"controls": [
{
"label@common_buttons.new_ui_binding_button_label": {
"offset": [ 0, -2 ]
}
}
]
}
}
]
},
"back_title_button_content": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%c", 16 ],
"offset": [ 0, 2 ],
"controls": [
{
"padding1": {
"type": "panel",
"size": [ 4, "100%" ]
}
},
{
"chevron_panel": {
"type": "panel",
"size": [ "100%c", "100%c" ],
"controls": [
{
"left_chevron@common.chevron_image": {
"texture": "textures/ui/chevron_left",
"offset": [ 0, -1 ],
"color": "$text_color"
}
}
]
}
},
{
"padding2": {
"type": "panel",
"size": [ 4, "100%" ]
}
}
]
},
"toggle_visuals": {
"type": "panel",
"controls": [
{ "unchecked@$unchecked_control": {} },
{ "checked@$checked_control": {} },
{ "unchecked_hover@$unchecked_hover_control": {} },
{ "checked_hover@$checked_hover_control": {} },
{ "unchecked_locked@$unchecked_locked_control": {} },
{ "checked_locked@$checked_locked_control": {} },
{ "unchecked_locked_hover@$unchecked_locked_hover_control": {} },
{ "checked_locked_hover@$checked_locked_hover_control": {} }
]
},
"toggle@common.toggle_visuals": {
"type": "toggle",
"$focus_id|default": "",
"$focus_override_down|default": "",
"$focus_override_up|default": "",
"$focus_override_left|default": "",
"$focus_override_right|default": "",
"focus_identifier": "$focus_id",
"focus_change_down": "$focus_override_down",
"focus_change_up": "$focus_override_up",
"focus_change_left": "$focus_override_left",
"focus_change_right": "$focus_override_right",
"$toggle_focus_enabled|default": true,
"focus_enabled": "$toggle_focus_enabled",
"focus_magnet_enabled": true,
"$default_focus_precedence|default": 0,
"default_focus_precedence": "$default_focus_precedence",
"layer": 1,
"sound_name": "random.click",
"sound_volume": 1.0,
"sound_pitch": 1.0,
"checked_control": "checked",
"unchecked_control": "unchecked",
"checked_hover_control": "checked_hover",
"unchecked_hover_control": "unchecked_hover",
"checked_locked_control": "checked_locked",
"unchecked_locked_control": "unchecked_locked",
"checked_locked_hover_control": "checked_locked_hover",
"unchecked_locked_hover_control": "unchecked_locked_hover",
"$radio_toggle_group|default": false,
"$toggle_default_state|default": false,
"$toggle_group_forced_index|default": -1,
"$toggle_group_default_selected|default": 0,
"$toggle_binding_type|default": "global",
"$toggle_binding_condition|default": "visible",
"$toggle_state_binding_name|default": "#toggle_state",
"$toggle_enabled_binding_type|default": "none",
"$toggle_enabled_binding_condition|default": "visible",
"$toggle_enabled_binding_name|default": "#toggle_enabled",
"$toggle_grid_collection_name|default": "",
"$toggle_collection_details_type|default": "none",
"$toggle_collection_detail_name|default": "",
"radio_toggle_group": "$radio_toggle_group",
"toggle_name": "$toggle_name",
"toggle_default_state": "$toggle_default_state",
"toggle_group_forced_index": "$toggle_group_forced_index",
"toggle_group_default_selected": "$toggle_group_default_selected",
"toggle_grid_collection_name": "$toggle_grid_collection_name",
"$enable_directional_toggling|default": false,
"$toggle_on_button|default": "toggle.toggle_on",
"$toggle_off_button|default": "toggle.toggle_off",
"enable_directional_toggling": "$enable_directional_toggling",
"toggle_on_button": "$toggle_on_button",
"toggle_off_button": "$toggle_off_button",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.menu_select",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.menu_ok",
"mapping_type": "focused"
},
{
"ignored": "(not $enable_directional_toggling)",
"from_button_id": "button.menu_left",
"to_button_id": "$toggle_off_button",
"mapping_type": "pressed",
"input_mode_condition": "gamepad_and_not_gaze"
},
{
"ignored": "(not $enable_directional_toggling)",
"from_button_id": "button.menu_right",
"to_button_id": "$toggle_on_button",
"mapping_type": "pressed",
"input_mode_condition": "gamepad_and_not_gaze"
}
],
"$toggle_property_bag|default": {
"#toggle_state": true
},
"property_bag": "$toggle_property_bag",
"bindings": [
{
"binding_type": "$toggle_binding_type",
"binding_condition": "$toggle_binding_condition",
"binding_collection_name": "$toggle_grid_collection_name",
"binding_name": "$toggle_state_binding_name",
"binding_name_override": "#toggle_state"
},
{
"binding_type": "$toggle_enabled_binding_type",
"binding_condition": "$toggle_enabled_binding_condition",
"binding_collection_name": "$toggle_grid_collection_name",
"binding_name": "$toggle_enabled_binding_name",
"binding_name_override": "#enabled"
},
{
"binding_type": "$toggle_collection_details_type",
"binding_collection_name": "$toggle_collection_detail_name"
}
]
},
"radio_toggle@common.toggle": {
"$unchecked_control|default": "common.radio_toggle_unchecked_state",
"$checked_control|default": "common.radio_toggle_checked_state",
"$unchecked_hover_control|default": "common.radio_toggle_unchecked_hover_state",
"$checked_hover_control|default": "common.radio_toggle_checked_hover_state",
"$unchecked_locked_control|default": "common.radio_toggle_unchecked_locked_state",
"$unchecked_locked_hover_control|default": "common.radio_toggle_unchecked_locked_state",
"$checked_locked_control|default": "common.radio_toggle_checked_locked_state",
"$checked_locked_hover_control|default": "common.radio_toggle_checked_locked_state",
"$radio_toggle_group": true
},
"checkbox@common.toggle": {
"$unchecked_control": "common.checkbox_unchecked_state",
"$checked_control": "common.checkbox_checked_state",
"$unchecked_hover_control": "common.checkbox_unchecked_hover_state",
"$checked_hover_control": "common.checkbox_checked_hover_state",
"$unchecked_locked_control": "common.checkbox_unchecked_locked_state",
"$unchecked_locked_hover_control": "common.checkbox_unchecked_locked_state",
"$checked_locked_control": "common.checkbox_checked_locked_state",
"$checked_locked_hover_control": "common.checkbox_checked_locked_state"
},
"checkbox_image": {
"type": "image",
"size": [ 10, 10 ]
},
"checked_image@checkbox_image": {
"texture": "textures/ui/checkbox_check"
},
"unchecked_image@checkbox_image": {
"texture": "textures/ui/checkbox_space"
},
"checked_hover_image@checkbox_image": {
"texture": "textures/ui/checkbox_checkHover"
},
"unchecked_hover_image@checkbox_image": {
"texture": "textures/ui/checkbox_spaceHover"
},
"rotating_text": {
"type": "carousel_label",
"shadow": false,
"color": [ 1.0, 1.0, 1.0, 1.0 ],
"text": "Override this text, this is the default!",
"always_rotate": false,
"rotate_speed": 0.1,
"hover_color": [ 1.0, 1.0, 0.2, 1.0 ],
"hover_alpha": 1.0,
"pressed_color": [ 1.0, 1.0, 0.2, 1.0 ],
"pressed_alpha": 0.65,
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.menu_select",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.menu_select",
"mapping_type": "focused"
}
]
},
"button_text": {
"type": "label",
"color": "$generic_button_text_color",
"layer": 1,
"shadow": false
},
"toggle_state_template": {
"$checkbox_alignment|default": "center",
"anchor_from": "$checkbox_alignment",
"anchor_to": "$checkbox_alignment",
"offset": "$checkbox_offset",
"$checkbox_offset|default": [ 0, 0 ],
"type": "image",
"layer": 2,
"size": [ 10, 10 ]
},
"new_button_label": {
"$text_color|default": "$light_button_default_text_color",
"type": "label",
"layer": 3,
"color": "$text_color",
"shadow": false,
"font_size": "normal"
},
"checkbox_checked_state@toggle_state_template": {
"texture": "textures/ui/checkbox_check"
},
"checkbox_unchecked_state@toggle_state_template": {
"texture": "textures/ui/checkbox_space"
},
"checkbox_checked_hover_state@checkbox_checked_state": {
"texture": "textures/ui/checkbox_checkHover"
},
"checkbox_unchecked_hover_state@checkbox_unchecked_state": {
"texture": "textures/ui/checkbox_spaceHover"
},
"checkbox_checked_locked_state@checkbox_checked_state": {
"texture": "textures/ui/checkbox_checkDisabled"
},
"checkbox_unchecked_locked_state@toggle_state_template": {
"texture": "textures/ui/checkbox_spaceDisabled"
},
"radio_toggle_checked_state@checkbox_unchecked_state": {
"texture": "textures/ui/checkbox_filled"
},
"radio_toggle_unchecked_state@checkbox_unchecked_state": {},
"radio_toggle_checked_hover_state@toggle_state_template": {
"texture": "textures/ui/checkbox_filled_hover"
},
"radio_toggle_unchecked_hover_state@checkbox_unchecked_hover_state": {},
"radio_toggle_checked_locked_state@toggle_state_template": {
"texture": "textures/ui/checkbox_filled_disabled"
},
"radio_toggle_unchecked_locked_state@checkbox_unchecked_locked_state": {},
"slider_button_state": {
"type": "image",
"layer": 2,
"texture": "textures/ui/slider_button_default"
},
"slider_button_layout@common.slider_button_state": {
"texture": "textures/ui/slider_button_default"
},
"slider_button_hover_layout@common.slider_button_state": {
"texture": "textures/ui/slider_button_hover"
},
"slider_button_locked_layout@common.slider_button_state": {
"texture": "textures/ui/slider_button_default",
"alpha": 0.5
},
"slider_button_indent_layout@common.slider_button_state": {
"texture": "textures/ui/slider_button_indent"
},
"slider_box": {
"type": "slider_box",
"layer": 4,
"size": "$slider_box_size",
"anchor_to": "center",
"anchor_from": "center",
"default_control": "default",
"hover_control": "hover",
"locked_control": "locked",
"indent_control": "indent",
"controls": [
{
"default@$slider_box_layout": {
"layer": 2
}
},
{
"hover@$slider_box_hover_layout": {
"layer": 3
}
},
{
"indent@$slider_box_indent_layout": {
"layer": 4
}
},
{
"locked@$slider_box_locked_layout": {
"layer": 1
}
}
]
},
"slider_background": {
"type": "image",
"texture": "textures/ui/slider_background"
},
"slider_background_hover": {
"type": "image",
"texture": "textures/ui/slider_background_hover"
},
"slider_progress": {
"type": "image",
"texture": "textures/ui/slider_progress"
},
"slider_progress_hover": {
"type": "image",
"texture": "textures/ui/slider_progress_hover"
},
"slider_border": {
"type": "image",
"texture": "textures/ui/slider_border"
},
"slider_bar_default@common.slider_border": {
"$background_control|default": "common.slider_background",
"$progress_control|default": "common.slider_progress",
"$background_control_name|default": "slider_background",
"$progress_control_name|default": "slider_progress",
"color": "$slider_default_border_color",
"controls": [
{
"sizing_panel": {
"type": "panel",
"size": [ "100% - 2px", "100% - 2px" ],
"controls": [
{
"$background_control_name@$background_control": {
"layer": 1
}
},
{
"$progress_control_name@$progress_control": {
"layer": 2,
"clip_direction": "left",
"clip_pixelperfect": false
}
}
]
}
}
]
},
"slider_bar_hover@common.slider_bar_default": {
"color": "$slider_hover_border_color",
"$background_control": "common.slider_background_hover",
"$progress_control": "common.slider_progress_hover",
"$background_control_name": "slider_background_hover",
"$progress_control_name": "slider_progress_hover"
},
"slider_step": {
"type": "image",
"texture": "textures/ui/slider_step_background",
"size": [ 2, 6 ],
"layer": 3,
"offset": "$step_offset"
},
"slider_step_hover@common.slider_step": {
"texture": "textures/ui/slider_step_background_hover"
},
"slider_step_progress@common.slider_step": {
"texture": "textures/ui/slider_step_progress"
},
"slider_step_progress_hover@common.slider_step": {
"texture": "textures/ui/slider_step_progress_hover"
},
"slider": {
"type": "slider",
"$focus_id|default": "",
"$focus_override_down|default": "",
"$focus_override_up|default": "",
"$focus_override_left|default": "",
"$focus_override_right|default": "",
"focus_identifier": "$focus_id",
"focus_change_down": "$focus_override_down",
"focus_change_up": "$focus_override_up",
"focus_change_left": "$focus_override_left",
"focus_change_right": "$focus_override_right",
"focus_enabled": true,
"$default_focus_precedence|default": 0,
"default_focus_precedence": "$default_focus_precedence",
"$slider_select_on_hover|default": false,
"slider_select_on_hover": "$slider_select_on_hover",
"layer": 1,
"always_listen_to_input": false,
"always_handle_pointer": true,
"slider_box_control": "slider_box",
// Slider box
"$slider_box_layout|default": "common.slider_button_layout",
"$slider_box_hover_layout|default": "common.slider_button_hover_layout",
"$slider_box_locked_layout|default": "common.slider_button_locked_layout",
"$slider_box_indent_layout|default": "common.slider_button_indent_layout",
"$slider_box_size|default": [ 10, 16 ],
// Slider
"$slider_track_button|default": "button.slider_skip_track",
"$slider_direction|default": "horizontal",
"$slider_steps|default": 1,
"$slider_collection_name|default": "",
"slider_name": "$slider_name",
"slider_track_button": "$slider_name",
"slider_direction": "$slider_direction",
"slider_steps": "$slider_steps",
"slider_collection_name": "$slider_collection_name",
"$slider_binding_type|default": "global",
"$slider_binding_condition|default": "visible",
"$slider_value_binding_name|default": "#slider_value",
"$slider_steps_binding_type|default": "global",
"$slider_steps_binding_condition|default": "visible",
"$slider_steps_binding_name|default": "#slider_steps",
"$slider_enabled_binding_type|default": "none",
"$slider_enabled_binding_condition|default": "visible",
"$slider_enabled_binding_name|default": "#slider_enabled",
"default_control": "slider_bar_default",
"hover_control": "slider_bar_hover",
"background_control": "slider_background",
"background_hover_control": "slider_background_hover",
"progress_control": "slider_progress",
"progress_hover_control": "slider_progress_hover",
"$slider_small_decrease_button|default": "slider.small_decrease",
"$slider_small_increase_button|default": "slider.small_increase",
"$slider_selected_button|default": "slider.selected",
"$slider_deselected_button|default": "slider.deselected",
"slider_small_decrease_button": "$slider_small_decrease_button",
"slider_small_increase_button": "$slider_small_increase_button",
"slider_selected_button": "$slider_selected_button",
"slider_deselected_button": "$slider_deselected_button",
"$slider_step_factory_control_ids": {
"slider_step": "@common.slider_step",
"slider_step_hover": "@common.slider_step_hover",
"slider_step_progress": "@common.slider_step_progress",
"slider_step_progress_hover": "@common.slider_step_progress_hover"
},
"factory": {
"name": "slider_step_factory",
"control_ids": "$slider_step_factory_control_ids"
},
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "$slider_name",
"mapping_type": "pressed",
"button_up_right_of_first_refusal": true
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "$slider_selected_button",
"mapping_type": "focused"
},
{
"from_button_id": "button.menu_cancel",
"to_button_id": "$slider_deselected_button",
"mapping_type": "focused"
},
{
"ignored": "($slider_direction = 'vertical')",
"from_button_id": "button.menu_left",
"to_button_id": "$slider_small_decrease_button",
"mapping_type": "pressed",
"input_mode_condition": "gamepad_and_not_gaze"
},
{
"ignored": "($slider_direction = 'horizontal')",
"from_button_id": "button.menu_up",
"to_button_id": "$slider_small_decrease_button",
"mapping_type": "pressed",
"input_mode_condition": "gamepad_and_not_gaze"
},
{
"ignored": "($slider_direction = 'vertical')",
"from_button_id": "button.menu_right",
"to_button_id": "$slider_small_increase_button",
"mapping_type": "pressed",
"input_mode_condition": "gamepad_and_not_gaze"
},
{
"ignored": "($slider_direction = 'horizontal')",
"from_button_id": "button.menu_down",
"to_button_id": "$slider_small_increase_button",
"mapping_type": "pressed",
"input_mode_condition": "gamepad_and_not_gaze"
}
],
"controls": [
{
"slider_box@common.slider_box": {
"$slider_box_layout": "$slider_box_layout",
"$slider_box_size": "$slider_box_size",
"$slider_track_button": "$slider_name"
}
},
{
"slider_bar_default@common.slider_bar_default": {}
},
{
"slider_bar_hover@common.slider_bar_hover": {
"visible": false
}
}
],
"property_bag": {
"#slider_steps": 1,
"#slider_value": 0
},
"bindings": [
{
"binding_type": "$slider_steps_binding_type",
"binding_condition": "$slider_steps_binding_condition",
"binding_collection_name": "$slider_collection_name",
"binding_name": "$slider_steps_binding_name",
"binding_name_override": "#slider_steps"
},
{
"binding_type": "$slider_binding_type",
"binding_condition": "$slider_binding_condition",
"binding_collection_name": "$slider_collection_name",
"binding_name": "$slider_value_binding_name",
"binding_name_override": "#slider_value"
},
{
"binding_type": "$slider_enabled_binding_type",
"binding_condition": "$slider_enabled_binding_condition",
"binding_collection_name": "$slider_collection_name",
"binding_name": "$slider_enabled_binding_name",
"binding_name_override": "#enabled"
}
]
},
"dropdown_background": {
"layer": 1,
"type": "image",
"texture": "textures/ui/dropdown_background"
},
"dropdown": {
"type": "panel",
"$dropdown_content|default": "common.empty_panel",
"$dropdown_toggle|default": "common.checkbox",
"$dropdown_name|default": "dropdown_control",
"$dropdown_scroll_content_size|default": [ "100%", "500%" ],
"$dropdown_toggle_name|default": "($dropdown_name + '_toggle')",
"$dropdown_background|default": "common.dropdown_background",
"controls": [
{
"$dropdown_name@$dropdown_toggle": {
"type": "dropdown",
"$toggle_view_binding_name": "$dropdown_name",
"anchor_from": "top_left",
"anchor_to": "top_left",
"dropdown_name": "$dropdown_name",
"dropdown_content_control": "dropdown_content",
"dropdown_area": "$dropdown_area",
"$toggle_name": "$dropdown_name",
"$toggle_state_binding_name": "('#' + $dropdown_name)"
}
},
{
"dropdown_content": {
"type": "input_panel",
// we really want this on top of everything
"layer": 42,
"size": "$dropdown_scroll_content_size",
"anchor_from": "top_left",
"anchor_to": "top_left",
"modal": true,
"$dropdown_content_controls|default": [
{
"scroll@common.scrolling_panel": {
"layer": 2,
"size": [ "100%", "100%" ],
"$scrolling_pane_size": [ "100%", "100%" ],
"$scrolling_content": "$dropdown_content",
"$scroll_view_port_size": [ "100% - 4px", "100% - 4px" ],
"$scroll_view_port_size_touch": [ "100% - 4px", "100% - 4px" ],
"$scroll_view_port_offset": [ 2, 2 ],
"$scroll_view_port_offset_touch": [ 2, 2 ],
"$scroll_size": [ 5, "100%-2px" ],
"$scroll_size_touch": [ 5, "100%-2px" ],
"$scroll_background_image_control": "$dropdown_background",
"$background_size": [ "100%", "100%" ],
"$background_size_touch": [ "100%", "100%" ],
"$show_background": true,
"$scroll_bar_contained": true,
"$scroll_bar_contained_touch": true
}
}
],
"controls": "$dropdown_content_controls",
"bindings": [
{
"binding_type": "view",
"source_control_name": "($dropdown_name)",
"source_property_name": "#toggle_state",
"target_property_name": "#visible",
"resolve_sibling_scope": true
}
],
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.dropdown_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.dropdown_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_select",
"to_button_id": "button.dropdown_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
]
}
}
]
},
"dropdown_no_scrollpanel@common.dropdown": {
"$dropdown_scroll_content_size": [ "100%", "100%c" ],
"$dropdown_content_controls": [
{
"background@$dropdown_background": {
"layer": 1,
"size": "$dropdown_scroll_content_size",
"controls": [
{
"content@$dropdown_content": {
"layer": 1
}
}
]
}
}
]
},
"focus_border_white": {
"type": "image",
"layer": 2,
"texture": "textures/ui/focus_border_white"
},
"focus_border_yellow@common.focus_border_white": {
"color": [ 1.0, 1.0, 0.0, 1.0 ]
},
"default_indent": {
"type": "image",
"texture": "textures/ui/default_indent"
},
"edit_box_indent": {
"type": "image",
"texture": "textures/ui/edit_box_indent",
"alpha": "$alpha",
"$alpha|default": 1.0
},
"edit_box_indent_hover@common.edit_box_indent": {
"texture": "textures/ui/edit_box_indent_hover"
},
"transparent_edit_box_indent": {
"type": "image",
"texture": "$box_texture",
"alpha": "$alpha",
"$alpha|default": 1.0
},
"transparent_edit_box_indent_hover": {
"type": "image",
"texture": "textures/ui/edit_box_indent_hover",
"alpha": "$hover_alpha",
"$alpha|default": 1.0
},
"text_edit_box_label": {
"type": "label",
"localize": false,
"enable_profanity_filter": "$enable_profanity_filter",
"shadow": "$shadow",
"color": "$text_box_text_color",
"locked_color": "$locked_color",
"alpha": "$text_alpha",
"locked_alpha": "$locked_text_alpha",
"font_size": "$font_size",
"text_alignment": "$text_alignment",
"$shadow|default": false,
"$enable_profanity_filter|default": true,
"$text_alpha|default": 1.0,
"$locked_color|default": [ 1.0, 1.0, 1.0, 1.0 ],
"$locked_text_alpha|default": 0.5,
"$font_size|default": "normal",
"$text_alignment|default": "left",
"$text_edit_box_content_binding_type|default": "global",
"$text_edit_box_content_binding_name|default": "#text_box_item_name",
"$text_edit_box_binding_condition|default": "visible",
"$text_box_name|default": "#text_box_name",
"$text_color_binding_name|default": "#edit_box_text_color",
"$text_color_binding_type|default": "none",
"text": "#item_name",
"$text_edit_box_binding_type": "global",
"$text_edit_box_binding_collection_name": "",
"property_bag": {
"#property_field": "#item_name"
},
"bindings": [
{
"binding_type": "$text_edit_box_content_binding_type",
"binding_condition": "$text_edit_box_binding_condition",
"binding_collection_name": "$text_edit_box_grid_collection_name",
"binding_name": "$text_edit_box_content_binding_name",
"binding_name_override": "#item_name"
},
{
"binding_type": "$text_color_binding_type",
"binding_name": "$text_color_binding_name",
"binding_name_override": "#color"
}
]
},
"text_edit_box_place_holder_label": {
"type": "label",
"localize": true,
"shadow": "$shadow",
"color": "$place_holder_text_color",
"locked_color": "$text_box_locked_text_color",
"alpha": "$text_alpha",
"locked_alpha": "$locked_text_alpha",
"font_size": "$font_size",
"text_alignment": "$text_alignment",
"$shadow|default": false,
"$text_alpha|default": 1.0,
"$locked_text_alpha|default": 0.5,
"$font_size|default": "normal",
"$text_alignment|default": "left",
"$text_edit_box_placeholder_content_binding_type|default": "global",
"$text_edit_box_placeholder_content_binding_name|default": "#text_box_item_name",
"$text_edit_box_placeholder_binding_condition|default": "visible",
"$text_box_name|default": "#text_box_name",
"$place_holder_text|default": "",
"text": "$place_holder_text",
"$text_edit_box_placeholder_binding_type": "global",
"$text_edit_box_placeholder_binding_collection_name": "",
"bindings": [
{
"binding_type": "$text_edit_box_placeholder_content_binding_type",
"binding_condition": "$text_edit_box_placeholder_binding_condition",
"binding_collection_name": "$text_edit_box_grid_collection_name",
"binding_name": "$text_edit_box_placeholder_content_binding_name"
}
]
},
"text_edit_box": {
"type": "edit_box",
"$focus_id|default": "",
"$focus_override_down|default": "",
"$focus_override_up|default": "",
"$focus_override_left|default": "",
"$focus_override_right|default": "",
"focus_identifier": "$focus_id",
"focus_change_down": "$focus_override_down",
"focus_change_up": "$focus_override_up",
"focus_change_left": "$focus_override_left",
"focus_change_right": "$focus_override_right",
"focus_enabled": true,
"anchor_from": "center",
"anchor_to": "center",
"layer": 1,
"enabled": "#enabled",
"$text_box_name|default": "#text_box_name",
"$text_box_enabled_binding_name|default": "#text_box_enabled",
"$text_edit_box_enabled_binding_type|default": "global",
"$text_edit_box_grid_collection_name|default": "",
"$text_edit_box_label_size|default": [ "default", "default" ],
"$text_edit_box_label_anchor_point|default": "right_middle",
"$text_edit_box_label_min_size|default": [ "100%", 0 ],
"$text_edit_box_label_offset|default": [ 0, 0 ],
"text_box_name": "$text_box_name",
"text_edit_box_grid_collection_name": "$text_edit_box_grid_collection_name",
"$deselectable_binding_type|default": "none",
"$deselectable_binding_name|default": "#can_be_deselected",
"$text_edit_box_focusable_binding_name|default": "#text_edit_box_focusable",
"$text_edit_visible_binding_name|default": "#text_edit_box_visible",
"$text_edit_visible_binding_collection_name|default": "",
"$text_edit_visible_binding_type|default": "none",
"bindings": [
{
"binding_type": "$text_edit_box_enabled_binding_type",
"binding_collection_name": "$text_edit_box_grid_collection_name",
"binding_name": "$text_box_enabled_binding_name",
"binding_name_override": "#enabled"
},
{
"binding_type": "$deselectable_binding_type",
"binding_name": "$deselectable_binding_name",
"binding_name_override": "#can_be_deselected"
},
{
"binding_type": "none",
"binding_name": "$text_edit_box_focusable_binding_name",
"binding_name_override": "#focus_enabled"
},
{
"binding_name": "$text_edit_visible_binding_name",
"binding_name_override": "#visible",
"binding_type": "$text_edit_visible_binding_type",
"binding_collection_name": "$text_edit_visible_binding_collection_name"
}
],
"locked_control": "locked",
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed",
"max_length": 14,
"$text_edit_box_text_type|default": "ExtendedASCII",
"text_type": "$text_edit_box_text_type",
"$text_edit_text_control|default": "display_text",
"text_control": "$text_edit_text_control",
"$place_holder_control": "common.text_edit_box_place_holder_label",
"$text_background_default": "common.edit_box_indent",
"$text_background_hover": "common.edit_box_indent_hover",
"place_holder_control": "place_holder_control",
"$text_edit_box_hovered_button_id|default": "button.text_edit_box_hovered",
"$text_edit_box_clear_from_button_id|default": "button.menu_clear",
"$text_edit_box_clear_to_button_id|default": "button.text_edit_box_clear",
"$text_edit_box_clear_scope|default": "view",
"$text_edit_box_selected_to_button_id|default": "button.text_edit_box_selected",
"$text_edit_box_deselected_to_button_id|default": "button.text_edit_box_deselected",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "$text_edit_box_selected_to_button_id",
"handle_select": true,
"handle_deselect": true,
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "$text_edit_box_selected_to_button_id",
"handle_select": true,
"handle_deselect": true,
"mapping_type": "focused"
},
{
"from_button_id": "button.menu_cancel",
"to_button_id": "$text_edit_box_deselected_to_button_id",
"handle_select": false,
"handle_deselect": true,
"mapping_type": "global"
},
{
"to_button_id": "$text_edit_box_hovered_button_id",
"mapping_type": "pressed"
},
{
"from_button_id": "$text_edit_box_clear_from_button_id",
"to_button_id": "$text_edit_box_clear_to_button_id",
"handle_select": false,
"handle_deselect": false,
"mapping_type": "focused"
}
],
"$shadow": false,
"$font_size": "normal",
"$color|default": [ 1, 1, 1, 1 ],
"$alpha|default": 1.0,
"$disabled_alpha|default": 0.5,
"$text_offset|default": [ 0, 0 ],
"controls": [
{
"clipper_panel": {
"type": "panel",
"size": [ "100% - 6px", "100% - 4px" ],
"anchor_from": "center",
"anchor_to": "center",
"offset": "$text_offset",
"clips_children": true,
"$disabled_color|default": "$color",
"controls": [
{
"$text_edit_text_control@common.text_edit_box_label": {
"layer": 1,
"size": "$text_edit_box_label_size",
"offset": "$text_edit_box_label_offset",
"min_size": "$text_edit_box_label_min_size",
"anchor_from": "$text_edit_box_label_anchor_point",
"anchor_to": "$text_edit_box_label_anchor_point",
"font_size": "$font_size",
"$text_alpha|default": "$alpha",
"$locked_text_alpha|default": "$disabled_alpha",
"$locked_color|default": "$disabled_color"
}
},
{
"visibility_panel": {
"type": "panel",
"controls": [
{
"place_holder_control@$place_holder_control": {
"layer": 1,
"size": "$text_edit_box_label_size",
"offset": "$text_edit_box_label_offset",
"min_size": "$text_edit_box_label_min_size",
"anchor_from": "$text_edit_box_label_anchor_point",
"anchor_to": "$text_edit_box_label_anchor_point",
"$text_alpha|default": "$alpha",
"$locked_text_alpha|default": "$disabled_alpha",
"$locked_color|default": "$disabled_color"
}
}
],
"bindings": [
{
"binding_type": "view",
"source_control_name": "$text_edit_text_control",
"source_property_name": "(#item_name = '')",
"target_property_name": "#visible",
"resolve_sibling_scope": true
}
]
}
}
]
}
},
{
"locked": {
"type": "panel",
"$disabled_color|default": "$color",
"controls": [
{
"edit_box_indent@$text_background_default": {
"$color": "$disabled_color",
"$alpha": "$disabled_alpha"
}
}
]
}
},
{ "default@$text_background_default": {} },
{ "hover@$text_background_hover": {} },
{ "pressed@$text_background_hover": {} }
]
},
"transparent_text_edit_box": {
"type": "edit_box",
"$focus_id|default": "",
"$focus_override_down|default": "",
"$focus_override_up|default": "",
"$focus_override_left|default": "",
"$focus_override_right|default": "",
"focus_identifier": "$focus_id",
"focus_change_down": "$focus_override_down",
"focus_change_up": "$focus_override_up",
"focus_change_left": "$focus_override_left",
"focus_change_right": "$focus_override_right",
"focus_enabled": true,
"anchor_from": "center",
"anchor_to": "center",
"layer": 1,
"enabled": "#enabled",
"$text_box_name|default": "#text_box_name",
"$text_box_enabled_binding_name|default": "#text_box_enabled",
"$text_edit_box_enabled_binding_type|default": "global",
"$text_edit_box_grid_collection_name|default": "",
"$text_edit_box_label_size|default": [ "default", "default" ],
"$text_edit_box_label_anchor_point|default": "right_middle",
"$text_edit_box_label_min_size|default": [ "100%", 0 ],
"$text_edit_box_label_offset|default": [ 0, 0 ],
"text_box_name": "$text_box_name",
"text_edit_box_grid_collection_name": "$text_edit_box_grid_collection_name",
"bindings": [
{
"binding_type": "$text_edit_box_enabled_binding_type",
"binding_collection_name": "$text_edit_box_grid_collection_name",
"binding_name": "$text_box_enabled_binding_name",
"binding_name_override": "#enabled"
}
],
"locked_control": "locked",
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed",
"max_length": 14,
"text_type": "ExtendedASCII",
"$box_texture|default": "textures/ui/imagetaggedcorner",
"$text_edit_text_control|default": "display_text",
"text_control": "$text_edit_text_control",
"$place_holder_control": "common.text_edit_box_place_holder_label",
"$text_background_default": "common.transparent_edit_box_indent",
"$text_background_hover": "common.transparent_edit_box_indent_hover",
"place_holder_control": "place_holder_control",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.menu_select",
"handle_select": true,
"handle_deselect": false,
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.menu_select",
"handle_select": true,
"handle_deselect": true,
"mapping_type": "focused"
},
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_cancel",
"handle_select": false,
"handle_deselect": true,
"mapping_type": "global"
}
],
"$shadow": false,
"$font_size": "normal",
"$color|default": [ 1, 1, 1, 1 ],
"$alpha|default": 1.0,
"$hover_alpha|default": 1.0,
"$disabled_alpha|default": 0.5,
"$text_offset|default": [ 0, 0 ],
"controls": [
{
"clipper_panel": {
"type": "panel",
"size": [ "100% - 6px", "100% - 4px" ],
"anchor_from": "center",
"anchor_to": "center",
"offset": "$text_offset",
"clips_children": true,
"$disabled_color|default": "$color",
"controls": [
{
"$text_edit_text_control@common.text_edit_box_label": {
"layer": 1,
"size": "$text_edit_box_label_size",
"offset": "$text_edit_box_label_offset",
"min_size": "$text_edit_box_label_min_size",
"anchor_from": "$text_edit_box_label_anchor_point",
"anchor_to": "$text_edit_box_label_anchor_point",
"font_size": "$font_size",
"$text_alpha|default": "$alpha",
"$locked_text_alpha|default": "$disabled_alpha",
"$locked_color|default": "$disabled_color"
}
},
{
"visibility_panel": {
"type": "panel",
"controls": [
{
"place_holder_control@$place_holder_control": {
"layer": 1,
"size": "$text_edit_box_label_size",
"offset": "$text_edit_box_label_offset",
"min_size": "$text_edit_box_label_min_size",
"anchor_from": "$text_edit_box_label_anchor_point",
"anchor_to": "$text_edit_box_label_anchor_point",
"$text_alpha|default": "$alpha",
"$locked_text_alpha|default": "$disabled_alpha",
"$locked_color|default": "$disabled_color"
}
}
],
"bindings": [
{
"binding_type": "view",
"source_control_name": "$text_edit_text_control",
"source_property_name": "(#item_name = '')",
"target_property_name": "#visible",
"resolve_sibling_scope": true
}
]
}
}
]
}
},
{
"locked": {
"type": "panel",
"$disabled_color|default": "$color",
"controls": [
{
"edit_box_indent@$text_background_default": {
"$color": "$disabled_color",
"$alpha": "$disabled_alpha"
}
}
]
}
},
{ "default@$text_background_default": {} },
{ "hover@$text_background_hover": {} },
{ "pressed@$text_background_hover": {} }
]
},
"multiline_text_edit_box@common.text_edit_box": {
"enabled_newline": true,
"max_length": 100,
"$text_edit_box_label_size": [ "100%", "100%" ],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.menu_select",
"handle_select": true,
"handle_deselect": false,
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.menu_select",
"handle_select": true,
"handle_deselect": false,
"mapping_type": "pressed"
}
]
},
"dirt_background": {
"ignored": "($is_holographic and not $is_living_room_mode)",
"type": "image",
"texture": "textures/ui/bg32",
"layer": 1,
"tiled": true
},
"portal_background": {
"ignored": "$is_holographic",
"type": "image",
"texture": "textures/ui/portalBg",
"layer": 1,
"tiled": true
},
"empty_progress_bar": {
"type": "image",
"texture": "textures/ui/empty_progress_bar",
"color": "$boss_health_bar_color"
},
"filled_progress_bar": {
"type": "image",
"texture": "textures/ui/filled_progress_bar",
"clip_direction": "left",
"color": "$boss_health_bar_color",
"bindings": [
{
"binding_name": "#progress_percentage",
"binding_name_override": "#clip_ratio"
}
]
},
"filled_progress_bar_for_collections@filled_progress_bar": {
"clip_pixelperfect": false,
"bindings": [
{
"binding_name": "#progress_percentage",
"binding_name_override": "#clip_ratio",
"binding_type": "collection",
"binding_collection_name": "$progress_bar_collection"
}
]
},
"progress_bar": {
"type": "panel",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"offset": [ 0, 20 ],
"size": [ 182, 5 ],
"controls": [
{
"empty_progress_bar@common.empty_progress_bar": {
"layer": 1
}
},
{
"filled_progress_bar@common.filled_progress_bar": {
"layer": 2
}
}
]
},
"progress_bar_for_collections@progress_bar": {
"controls": [
{
"empty_progress_bar@common.empty_progress_bar": {
"layer": 1
}
},
{
"filled_progress_bar_for_collections@common.filled_progress_bar_for_collections": {
"layer": 2
}
}
]
},
/////////////////////////////////////////////////////////////////////////////
// Gamepad helper common
/////////////////////////////////////////////////////////////////////////////
"gamepad_helper_icon_text": {
"type": "label",
"layer": 31,
"text": "$icon_text",
"color": "$icon_text_color"
},
"gamepad_helper_icon_description": {
"type": "label",
"color": "$gamepad_helper_icon_description_text_color",
"shadow": "$gamepad_helper_icon_description_shadow",
"text": "$icon_description_bind",
"$icon_description_bind|default": "#gamepad_helper_icon_description",
"$icon_description_bind_type|default": "global",
"$icon_description_bind_condition|default": "always_when_visible",
"$gamepad_helper_icon_description_text_color|default": "$gamepad_description_text_color",
"$gamepad_helper_icon_description_shadow|default": true,
"bindings": [
{
"binding_name": "$icon_description_bind",
"binding_type": "$icon_description_bind_type",
"binding_condition": "$icon_description_bind_condition"
}
]
},
"gamepad_helper_icon_image": {
"type": "image",
"texture": "textures/ui/grey_gamepad_icon_button"
},
"gamepad_helper": {
"type": "stack_panel",
"orientation": "horizontal",
"$gamepad_helper_size|default": [ "100%c", 26 ],
"size": "$gamepad_helper_size",
"layer": "$gamepad_helper_layer",
"$gamepad_helper_layer|default": 100,
"$hide_description|default": false,
"$gamepad_label|default": "common.gamepad_helper_icon_text",
"$gamepad_description|default": "common.gamepad_helper_icon_description",
"$gamepad_helper_icon_size|default": [ 26, 26 ],
"$gamepad_description_offset|default": [ -2, 0 ],
"$gamepad_helper_visible_binding_name|default": "#gamepad_helper_visible",
"bindings": [
{
"binding_name": "$gamepad_helper_visible_binding_name",
"binding_name_override": "#visible"
}
],
"controls": [
{
"$icon_image_ref": {
"$gamepad_icon_size": "$gamepad_helper_icon_size"
}
},
{
"description_panel": {
"ignored": "($hide_description)",
"type": "panel",
"size": [ "100%c + 2px", 26 ],
"controls": [
{
"desc@$gamepad_description": {
"offset": "$gamepad_description_offset"
}
}
]
}
}
]
},
"gamepad_helpers": {
"type": "stack_panel",
"orientation": "horizontal",
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"size": [ "100%", 26 ]
},
"gamepad_helpers_a_and_b": {
"type": "stack_panel",
"orientation": "horizontal",
"anchor_from": "center",
"anchor_to": "center",
"size": [ "100%c", "100%c" ],
"controls": [
{ "gamepad_helper_a@common.gamepad_helper_a": {} },
{
"control": {
"type": "panel",
"size": [ 10, 0 ]
}
},
{ "gamepad_helper_b@common.gamepad_helper_b": {} }
]
},
"container_gamepad_helpers@gamepad_helpers": {
"$a_b_stack_panel_orientation|default": "horizontal",
"$x_y_stack_panel_orientation|default": "horizontal",
"$a_b_stack_panel_size|default": [ "100%c", "100%" ],
"$x_y_stack_panel_size|default": [ "100%c", "100%" ],
"$helper_a_control|default": "common.gamepad_helper_a",
"$helper_b_control|default": "common.gamepad_helper_b",
"$helper_x_control|default": "common.gamepad_helper_x",
"$helper_y_control|default": "common.gamepad_helper_y",
"controls": [
{
"buffer_panel_left": {
"type": "panel",
"size": [ 10, 0 ]
}
},
{
"left_buttons": {
"type": "stack_panel",
"size": "$a_b_stack_panel_size",
"orientation": "$a_b_stack_panel_orientation",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"controls": [
{ "gamepad_helper_a@$helper_a_control": {} },
{
"control": {
"type": "panel",
"size": [ 10, 0 ]
}
},
{ "gamepad_helper_b@$helper_b_control": {} }
]
}
},
{
"fill_panel": {
"type": "panel",
"size": [ "fill", 0 ]
}
},
{
"right_buttons": {
"type": "stack_panel",
"size": "$x_y_stack_panel_size",
"orientation": "$x_y_stack_panel_orientation",
"anchor_from": "right_middle",
"anchor_to": "right_middle",
"controls": [
{ "gamepad_helper_x@$helper_x_control": {} },
{
"control": {
"type": "panel",
"size": [ 10, 0 ]
}
},
{ "gamepad_helper_y@$helper_y_control": {} }
]
}
},
{
"buffer_panel_right": {
"type": "panel",
"size": [ 10, 0 ]
}
}
]
},
/////////////////////////////////////////////////////////////////////////////
// Keyboard helper common
/////////////////////////////////////////////////////////////////////////////
"keyboard_helper_description": {
"type": "label",
"color": "$gamepad_description_text_color",
"layer": 31,
"offset": [ 1, 0 ],
"shadow": true,
"text": "$description_bind",
"bindings": [
{
"binding_name": "$description_bind"
}
]
},
"keyboard_helper": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%c", 13 ],
"layer": -1,
"$text": "",
"$text_color": [ 0.0, 0.0, 0.0 ],
"$hide_description|default": false,
"$keyboard_description|default": "common.keyboard_helper_description",
"bindings": [
{
"binding_name": "#keyboard_helper_visible",
"binding_name_override": "#visible"
}
],
"controls": [
{
"centerer": {
"ignored": "($hide_description)",
"type": "panel",
"size": [ "100%c + 2px", 13 ],
"controls": [
{ "desc@$keyboard_description": {} }
]
}
}
]
},
"keyboard_helpers": {
"type": "panel",
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"size": [ "98%", 16 ]
},
// Buttons
/////////////////////////////////////////////////////////////////////////////
"gamepad_icon_button@common.gamepad_helper_icon_image": {
"$gamepad_icon_size|default": [ 26, 26 ],
"size": "$gamepad_icon_size",
"texture": "$icon_texture",
"bindings": [
{
"binding_name": "$icon_texture",
"binding_name_override": "#texture"
},
{
"binding_name": "#gamepad_helper_visible",
"binding_name_override": "#visible"
}
]
},
"gamepad_helper_a@gamepad_helper": {
"$icon_texture": "#controller_face_down_icon",
"$icon_description_bind": "#button_a_description",
"$icon_image_ref": "icon@common.gamepad_icon_button",
"variables": {
"requires": "$apple_tv",
"$icon_text_color": [ 1.0, 1.0, 1.0 ]
}
},
"gamepad_helper_b@gamepad_helper": {
"$icon_texture": "#controller_face_right_icon",
"$icon_description_bind": "#button_b_description",
"$icon_image_ref": "icon@common.gamepad_icon_button",
"variables": {
"requires": "$apple_tv",
"$icon_text_color": [ 1.0, 1.0, 1.0 ]
}
},
"gamepad_helper_x@gamepad_helper": {
"$icon_texture": "#controller_face_left_icon",
"$icon_description_bind": "#button_x_description",
"$icon_image_ref": "icon@common.gamepad_icon_button",
"variables": {
"requires": "$apple_tv",
"$icon_text_color": [ 1.0, 1.0, 1.0 ]
}
},
"gamepad_helper_y@common.gamepad_helper": {
"$icon_texture": "#controller_face_up_icon",
"$icon_description_bind": "#button_y_description",
"$icon_image_ref": "icon@common.gamepad_icon_button",
"variables": {
"requires": "$apple_tv",
"$icon_text_color": [ 1.0, 1.0, 1.0 ]
}
},
"keyboard_helper_keys@keyboard_helper": {
"$text_color": "$keyboard_helper_keys",
"$description_bind": "#button_keyboard_description"
},
// Triggers
/////////////////////////////////////////////////////////////////////////////
"gamepad_helper_left_trigger@gamepad_helper": {
"$icon_texture": "#controller_left_trigger",
"$icon_description_bind": "#controller_left_trigger_description",
"$icon_image_ref": "icon@common.gamepad_icon_button"
},
"gamepad_helper_right_trigger@gamepad_helper": {
"$icon_texture": "#controller_right_trigger",
"$icon_description_bind": "#controller_right_trigger_description",
"$icon_image_ref": "icon@common.gamepad_icon_button"
},
// D-Pad
/////////////////////////////////////////////////////////////////////////////
"gamepad_icon_dpad@gamepad_helper_icon_image": {
"texture": "textures/ui/gamepad_icon_dpad",
"size": [ 21, 21 ]
},
"gamepad_helper_dpad@gamepad_helper": {
"$icon_description_bind": "#button_dpad_description",
"$icon_image_ref": "icon@common.gamepad_icon_dpad"
},
// D-Pad - Directional
/////////////////////////////////////////////////////////////////////////////
"gamepad_helper_dpad_down@gamepad_helper": {
"$icon_texture": "#controller_dpad_down_icon",
"$icon_description_bind": "#button_dpad_down_description",
"$icon_image_ref": "icon@common.gamepad_icon_button"
},
"gamepad_helper_dpad_left@gamepad_helper": {
"$icon_texture": "#controller_dpad_left_icon",
"$icon_description_bind": "#button_dpad_left_description",
"$icon_image_ref": "icon@common.gamepad_icon_button"
},
"gamepad_helper_dpad_right@gamepad_helper": {
"$icon_texture": "#controller_dpad_right_icon",
"$icon_description_bind": "#button_dpad_right_description",
"$icon_image_ref": "icon@common.gamepad_icon_button"
},
"gamepad_helper_dpad_up@gamepad_helper": {
"$icon_texture": "#controller_dpad_up_icon",
"$icon_description_bind": "#button_dpad_up_description",
"$icon_image_ref": "icon@common.gamepad_icon_button"
},
// Thumbstick
/////////////////////////////////////////////////////////////////////////////
"gamepad_icon_thumbstick@gamepad_helper_icon_image": {
"$icon_texture": "textures/ui/gamepad_icon_thumbstick",
"size": [ 12, 9 ]
},
"gamepad_helper_thumbstick@gamepad_helper": {
"$icon_description_bind": "#button_thumbstick_description",
"$icon_image_ref": "icon@common.gamepad_icon_thumbstick"
},
// Thumbstick Buttons
/////////////////////////////////////////////////////////////////////////////
"gamepad_helper_thumbstick_right@gamepad_helper": {
"$icon_texture": "#controller_right_stick_icon",
"$icon_description_bind": "#button_thumbstick_right_description",
"$icon_image_ref": "icon@common.gamepad_icon_button"
},
"gamepad_helper_thumbstick_left@gamepad_helper": {
"$icon_texture": "#controller_left_stick_icon",
"$icon_description_bind": "#button_thumbstick_left_description",
"$icon_image_ref": "icon@common.gamepad_icon_button"
},
// Bumpers
/////////////////////////////////////////////////////////////////////////////
"gamepad_helper_left_bumper@gamepad_helper": {
"$icon_texture": "#controller_left_bumper_icon",
"$icon_description_bind": "#controller_left_bumper_description",
"$gamepad_description_offset": [ 2, 0 ],
"$icon_image_ref": "icon@common.gamepad_icon_button"
},
"gamepad_helper_right_bumper@gamepad_helper": {
"$icon_texture": "#controller_right_bumper_icon",
"$icon_description_bind": "#controller_right_bumper_description",
"$gamepad_description_offset": [ 2, 0 ],
"$icon_image_ref": "icon@common.gamepad_icon_button"
},
//---------------------------------------------------------------------------
// Common inventory
//---------------------------------------------------------------------------
"dialog_background_common": {
"type": "image",
"texture": "textures/ui/dialog_background_hollow_4",
"layer": 1
},
"dialog_background_hollow_common@dialog_background_common": {
"layer": 2,
"$fill_alpha|default": 0.8,
"variables": [
{
"requires": "$is_holographic",
"$fill_alpha": 1.0
}
],
"controls": [
{
"control": {
"type": "image",
"texture": "textures/ui/control",
"layer": -1,
"size": [ "100% - 16px", "100% - 16px" ],
"alpha": "$fill_alpha"
}
}
]
},
"dialog_background_opaque@dialog_background_common": {
"texture": "textures/ui/dialog_background_opaque"
},
"dialog_background_hollow_1@dialog_background_hollow_common": {
"texture": "textures/ui/dialog_background_hollow_1"
},
"dialog_background_hollow_2@dialog_background_hollow_common": {
"texture": "textures/ui/dialog_background_hollow_2"
},
"dialog_background_hollow_3@dialog_background_hollow_common": {
"texture": "textures/ui/dialog_background_hollow_3"
},
"dialog_background_hollow_4@dialog_background_hollow_common": {
"texture": "textures/ui/dialog_background_hollow_4"
},
"dialog_background_hollow_5@dialog_background_hollow_common": {
"texture": "textures/ui/dialog_background_hollow_5"
},
"dialog_background_hollow_6@dialog_background_hollow_common": {
"texture": "textures/ui/dialog_background_hollow_6"
},
"dialog_divider": {
"type": "image",
"texture": "textures/ui/dialog_divider",
"layer": 1
},
"normal_button": {
"type": "image",
"texture": "textures/ui/NormalButtonNoStroke",
"layer": 1
},
"normal_stroke_button": {
"type": "image",
"texture": "textures/ui/NormalButtonStroke",
"layer": 1
},
"section_heading_label": {
"type": "label",
"layer": 1,
"anchor_from": "top_left",
"anchor_to": "top_left",
"color": "$title_text_color"
},
"close_button_image": {
"type": "image",
"layer": 1,
"texture": "$close_button_texture"
},
"close_button_panel": {
"type": "panel",
"layer": 1,
"size": "$close_button_panel_size",
"$button_alpha|default": 1,
"controls": [
{
"close_button_image@close_button_image": {
"alpha": "$button_alpha"
}
}
]
},
"close_button": {
"type": "button",
"size": [ 21, 21 ],
"layer": 10,
"anchor_from": "top_right",
"anchor_to": "top_right",
"offset": [ -2, 2 ],
"locked_control": "",
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed",
"focus_enabled": false,
"$close_button_panel_size|default": [ 15, 15 ],
"$close_button_to_button_id|default": "button.menu_exit",
"$default_button_alpha|default": 1,
"$default_hover_alpha|default": 1,
"$default_pressed_alpha|default": 1,
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "$close_button_to_button_id",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "$close_button_to_button_id",
"mapping_type": "focused"
}
],
"controls": [
{
"default@common.close_button_panel": {
"$close_button_texture": "textures/ui/close_button_default",
"$button_alpha": "$default_button_alpha"
}
},
{
"hover@common.close_button_panel": {
"$close_button_texture": "textures/ui/close_button_hover"
}
},
{
"pressed@common.close_button_panel": {
"$close_button_texture": "textures/ui/close_button_pressed"
}
}
]
},
"compact_close_button@close_button": {
"size": [ 21, 13 ],
"$close_button_panel_size|default": [ 15, 7 ],
"controls": [
{
"default@common.close_button_panel": {
"$close_button_texture": "textures/ui/close_button_default_compact"
}
},
{
"hover@common.close_button_panel": {
"$close_button_texture": "textures/ui/close_button_hover_compact"
}
},
{
"pressed@common.close_button_panel": {
"$close_button_texture": "textures/ui/close_button_pressed_compact"
}
}
]
},
"light_close_button@close_button": {
"controls": [
{
"default@common.close_button_panel": {
"$close_button_texture": "textures/ui/close_button_default_light"
}
},
{
"hover@common.close_button_panel": {
"$close_button_texture": "textures/ui/close_button_hover_light"
}
},
{
"pressed@common.close_button_panel": {
"$close_button_texture": "textures/ui/close_button_pressed_light"
}
}
]
},
"cell_image": {
"type": "image",
"texture": "textures/ui/cell_image",
"layer": 1
},
"cell_overlay": {
"ignored": true
},
"highlight_slot": {
"type": "image",
"texture": "textures/ui/highlight_slot",
"size": [ "100% - 2px", "100% - 2px" ],
"alpha": 0.8
},
"white_border_slot": {
"type": "image",
"texture": "textures/ui/focus_border_white",
"size": [ "100%", "100%" ]
},
"highlight_slot_panel": {
"type": "panel",
"controls": [
{
"highlight@common.highlight_slot": {
"controls": [
{
"hover_text@common.hover_text": {
"layer": 29,
"$hover_text_binding_name|default": "#hover_text",
"bindings": [
{
"binding_name": "$hover_text_binding_name",
"binding_name_override": "#hover_text",
"binding_condition": "always_when_visible",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name"
}
]
}
}
],
"bindings": [
{
"binding_name": "(not #using_touch)",
"binding_name_override": "#visible"
}
]
}
},
{
"white_border@common.white_border_slot": {
"bindings": [
{
"binding_name": "(not #using_touch)",
"binding_name_override": "#visible"
}
]
}
}
]
},
"pocket_ui_highlight_slot": {
"type": "image",
"texture": "textures/ui/pocket_ui_highlight_slot",
"layer": 1,
"size": [ "100%+2px", "100%+2px" ],
"anchor_from": "center",
"anchor_to": "center"
},
"hover_text": {
"type": "custom",
"renderer": "hover_text_renderer",
"layer": 5,
"allow_clipping": false
},
"screen_background": {
"type": "image",
"texture": "textures/ui/screen_background",
"layer": -10,
"ignored": "$is_holographic",
"alpha": 0.75
},
"stack_count_label": {
"ignored": "(not $stack_count_required)",
"type": "label",
"color": "$item_stack_count_color",
"offset": [ 0, 1 ],
"anchor_to": "bottom_right",
"anchor_from": "bottom_right",
"layer": 7,
"shadow": true,
"$stack_count_binding_name|default": "#inventory_stack_count",
"$stack_count_binding_condition|default": "none",
"text": "$stack_count_binding_name",
"bindings": [
{
"binding_name": "$stack_count_binding_name",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name",
"binding_condition": "$stack_count_binding_condition"
}
]
},
"durability_bar": {
"ignored": "(not $durability_bar_required)",
"type": "custom",
"renderer": "progress_bar_renderer",
"layer": 10,
"$durability_bar_size|default": [ 12, 1 ],
"$durability_bar_offset|default": [ 0, 5 ],
"offset": "$durability_bar_offset",
"size": "$durability_bar_size",
"property_bag": {
"is_durability": true,
"round_value": true
},
"bindings": [
{
"binding_name": "#item_durability_visible",
"binding_name_override": "#progress_bar_visible",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name"
},
{
"binding_name": "#item_durability_total_amount",
"binding_name_override": "#progress_bar_total_amount",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name"
},
{
"binding_name": "#item_durability_current_amount",
"binding_name_override": "#progress_bar_current_amount",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name"
}
]
},
"durability_bar_grabbed@durability_bar": {
"layer": 61,
"offset": [ "-10%", 4.5 ],
"size": [ "100%", 1 ],
"bindings": [
{
"binding_name": "#selected_item_durability_visible",
"binding_name_override": "#progress_bar_visible",
"binding_condition": "always_when_visible"
},
{
"binding_name": "#selected_item_durability_total_amount",
"binding_name_override": "#progress_bar_total_amount",
"binding_condition": "always_when_visible"
},
{
"binding_name": "#selected_item_durability_current_amount",
"binding_name_override": "#progress_bar_current_amount",
"binding_condition": "always_when_visible"
}
]
},
"item_renderer": {
"type": "custom",
"renderer": "inventory_item_renderer",
"layer": 5,
"$item_renderer_binding_condition|default": "none",
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "$item_collection_name"
},
{
"binding_name": "#item_id_aux",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name",
"binding_condition": "$item_renderer_binding_condition"
},
{
"binding_name": "#item_custom_color",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name",
"binding_condition": "$item_renderer_binding_condition"
},
{
"binding_name": "#item_pickup_time",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name",
"binding_condition": "$item_renderer_binding_condition"
},
{
"binding_name": "#banner_patterns",
"binding_condition": "visible",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name"
},
{
"binding_name": "#banner_colors",
"binding_condition": "visible",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name"
},
{
"binding_type": "collection",
"binding_name": "#show_item",
"binding_name_override": "#visible",
"binding_collection_name": "$item_collection_name",
"binding_condition": "$item_renderer_binding_condition"
},
{
"binding_name": "#inactive_item",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name",
"binding_name_override": "#disabled_filter_visible",
"binding_condition": "$item_renderer_binding_condition"
}
]
},
"filtered_item_renderer": {
"type": "custom",
"renderer": "inventory_item_renderer",
"layer": 5,
"$item_renderer_binding_condition|default": "none",
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "$item_collection_name"
},
{
"binding_name": "#item_id_aux",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name"
},
{
"binding_name": "#item_custom_color",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name"
},
{
"binding_name": "#disabled_filter_visible",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name"
},
{
"binding_name": "#item_pickup_time",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name",
"binding_condition": "$item_renderer_binding_condition"
},
{
"binding_name": "#banner_patterns",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name"
},
{
"binding_name": "#banner_colors",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name"
}
]
},
"flying_item_renderer": {
"type": "custom",
"renderer": "flying_item_renderer",
"layer": 11,
"property_bag": {
"#flying_item_renderer": true
}
},
"anim_item_details_alpha": {
"anim_type": "alpha",
"easing": "in_quint",
"destroy_at_end": "selected_item_details",
"duration": 2,
"from": 1.0,
"to": 0
},
"selected_item_details": {
"type": "panel",
"anchor_to": "bottom_middle",
"anchor_from": "bottom_middle",
"size": [ "100%c", "100%c" ],
"offset": [ 0, "-16px" ],
"layer": 30,
"controls": [
{
"item_panel_image": {
"type": "image",
"size": [ "100%c + 8px", "100%c + 8px" ],
"layer": 30,
"alpha": "@common.anim_item_details_alpha",
"texture": "textures/ui/purpleBorder",
"controls": [
{
"item_text_label": {
"type": "label",
"layer": 1,
"alpha": "@common.anim_item_details_alpha",
"text": "#selected_hover_text",
"color": "$item_hover_text_color"
}
}
]
}
}
]
},
"selected_item_details_factory": {
"type": "factory",
"control_name": "@common.selected_item_details"
},
//---------------------------------------------------------------------------
// Scroll
//---------------------------------------------------------------------------
"empty_panel": {
"type": "panel"
},
"scroll_background_and_viewport": {
"type": "panel",
"size": "$view_port_size",
"anchor_from": "top_left",
"anchor_to": "top_left",
"clips_children": true,
"controls": [
{
"background@$scroll_background_image_control": {
"visible": "$show_background",
"anchor_to": "top_left",
"anchor_from": "top_left",
"offset": "$background_offset",
"size": "$background_size"
}
},
{
"scrolling_view_port": {
"layer": 1,
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"clips_children": true,
"offset": "$scroll_view_port_offset",
"size": "$scroll_view_port_size",
"controls": [
{
"scrolling_content@$scrolling_content": {
"layer": 1,
"$scrolling_content_anchor_from|default": "top_left",
"$scrolling_content_anchor_to|default": "top_left",
"anchor_from": "$scrolling_content_anchor_from",
"anchor_to": "$scrolling_content_anchor_to"
}
}
]
}
}
]
},
"scroll_bar_and_track": {
"type": "panel",
"size": [ "100%c", "100%" ],
"clips_children": true,
"anchor_from": "right_middle",
"anchor_to": "right_middle",
"controls": [
{
"stack_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"anchor_from": "center",
"anchor_to": "center",
"size": [ "default", "100%" ],
"controls": [
{
"empty_panel_0@common.empty_panel": {
"ignored": "$scroll_bar_contained",
"size": "$scroll_bar_left_padding_size"
}
},
{
"panel": {
"type": "panel",
"size": [ "100%c", "100%" ],
"controls": [
{
"centered_panel": {
"type": "panel",
"size": "$scroll_size",
"anchor_from": "center",
"anchor_to": "center",
"controls": [
{
"track@common.scrollbar_track": {
"layer": 2,
"anchor_from": "center",
"anchor_to": "center"
}
},
{
"scroll_box@common.scroll_box": {
"layer": 5,
"anchor_from": "center",
"anchor_to": "center"
}
}
]
}
}
]
}
},
{
"empty_panel_1@common.empty_panel": {
"size": "$scroll_bar_right_padding_size"
}
}
]
}
}
]
},
"scroll_view_control": {
"type": "scroll_view",
"scroll_speed": 15,
"scrollbar_track_button": "button.scrollbar_skip_track",
"scrollbar_touch_button": "button.scrollbar_touch",
"touch_mode": "$use_touch_mode",
"always_listen_to_input": true,
"always_handle_pointer": true,
"$always_handle_scrolling|default": false,
"always_handle_scrolling": "$always_handle_scrolling",
"scrollbar_track": "track",
"scrollbar_box": "box",
"scroll_content": "scrolling_content",
"scroll_view_port": "scrolling_view_port",
"scroll_box_and_track_panel": "bar_and_track",
"$jump_to_bottom_on_update|default": false,
"jump_to_bottom_on_update": "$jump_to_bottom_on_update",
"$scroll_background_image_control|default": "common.scroll_indent_image",
"$scroll_track_image_control|default": "common.scroll_indent_image",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.scrollbar_touch",
"mapping_type": "pressed",
"button_up_right_of_first_refusal": true
}
],
"bindings": [
{
"binding_name": "#gesture_control_enabled"
}
],
"controls": [
{
"stack_panel": {
"ignored": "$scroll_bar_contained",
"type": "stack_panel",
"orientation": "horizontal",
"anchor_to": "top_left",
"anchor_from": "top_left",
"size": [ "100%", "100%" ],
"controls": [
{ "background_and_viewport@common.scroll_background_and_viewport": {} },
{ "bar_and_track@common.scroll_bar_and_track": {} }
]
}
},
{
"panel": {
"ignored": "(not $scroll_bar_contained)",
"type": "panel",
"anchor_to": "top_left",
"anchor_from": "top_left",
"$view_port_size|default": [ "100%", "100%" ],
"controls": [
{ "background_and_viewport@common.scroll_background_and_viewport": {} },
{ "bar_and_track@common.scroll_bar_and_track": {} }
]
}
}
]
},
"scrollbar_track": {
"type": "scroll_track",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.scrollbar_skip_track",
"mapping_type": "pressed"
}
],
"controls": [
{
"bar_indent@$scroll_track_image_control": {
"visible": "$scroll_box_visible"
}
}
]
},
"scroll_box": {
"type": "panel",
"controls": [
{
"box": {
"type": "scrollbar_box",
"anchor_to": "top_left",
"anchor_from": "top_left",
"layer": 1,
"visible": "$scroll_box_visible",
"contained": true,
"draggable": "vertical",
"$scroll_box_mouse_image_control|default": "common.scrollbar_box_image",
"$scroll_box_touch_image_control|default": "common.touch_scrollbar_box_image",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.menu_select",
"mapping_type": "pressed",
"button_up_right_of_first_refusal": true
}
],
"controls": [
{
"mouse_box@$scroll_box_mouse_image_control": {
"ignored": "$touch"
}
},
{
"touch_box@$scroll_box_touch_image_control": {
"ignored": "(not $touch)"
}
}
]
}
}
]
},
"scroll_box_indent": {
"type": "image",
"texture": "textures/ui/ScrollRail",
"layer": 1
},
"scrollbar_box_image": {
"type": "image",
"texture": "textures/ui/ScrollHandle",
"size": [ 5, "100%" ],
"layer": 4
},
"anim_scrollbar_box_fadeout": {
"anim_type": "alpha",
"play_event": "scrollbar.released",
"reset_event": "scrollbar.active",
"easing": "in_sine",
"duration": 1.5,
"from": 1,
"to": 0,
"next": "@common.anim_scrollbar_box_fadeout"
},
"touch_scrollbar_box_image": {
"type": "image",
"texture": "textures/ui/touchScrollBox",
"layer": 3,
"alpha": "@common.anim_scrollbar_box_fadeout"
},
"new_touch_scrollbar_box_image": {
"type": "image",
"texture": "textures/ui/newTouchScrollBox",
"layer": 3,
"alpha": "@common.anim_scrollbar_box_fadeout"
},
"scroll_indent_image": {
"type": "image",
"texture": "textures/ui/ScrollRail",
"size": [ 3, "100%" ],
"layer": 3
},
"scrolling_panel_base": {
"type": "input_panel",
"anchor_to": "top_left",
"anchor_from": "top_left",
"$scroll_view_name|default": "scroll_view",
"controls": [
{ "$scroll_view_name@common.scroll_view_control": {} }
],
"$scrolling_panel_base_button_mappings|default": [],
"button_mappings": "$scrolling_panel_base_button_mappings"
},
"scrolling_panel": {
"type": "panel",
// Size and offset of the area within this control that contains the visible
// scrolling content area and scroll box/track
"$scrolling_pane_size|default": [ "100%", "100%" ],
"$scrolling_pane_offset|default": [ 0, 0 ],
// Sizes and offsets of the background behind the scrolling content, the
// viewport containing the scrolling content, the scroll track, and the area
// in which the scroll box is drawn.
"$background_size|default": [ "100%", "100%" ],
"$background_offset|default": [ 0, 0 ],
"$scroll_view_port_size|default": [ "100%", "100%" ],
"$scroll_view_port_offset|default": [ 0, 0 ],
"$scroll_bar_left_padding_size|default": [ 2, 0 ],
"$scroll_bar_right_padding_size|default": [ 2, 0 ],
"$view_port_size|default": [ "fill", "100%" ],
"$scroll_bar_contained|default": false,
"$scroll_size|default": [ 4, "100%" ],
// The touch version of the scroll track and bar are narrower by default,
// but these overrides can themselves be overridden.
"$background_size_touch|default": [ "100%", "100%" ],
"$background_offset_touch|default": [ 0, 0 ],
"$scroll_view_port_size_touch|default": [ "100%", "100%" ],
"$scroll_view_port_offset_touch|default": [ 0, 0 ],
"$scroll_bar_left_padding_size_touch|default": [ 0, 0 ],
"$scroll_bar_right_padding_size_touch|default": [ 0, 0 ],
"$view_port_size_touch|default": [ "100%", "100%" ],
"$scroll_bar_contained_touch|default": true,
"$scroll_size_touch|default": [ 4, "100%" ],
// The images used for the background, scroll track, and scroll box (for
// mouse and for touch) can be overridden by specifying
// $scroll_background_image_control, $scroll_track_image_control,
// $scroll_box_mouse_image_control, and $scroll_box_touch_image_control.
// The content you want inside the scrolling viewport must be specified
// by defining $scrolling_content.
"$scroll_box_visible|default": true,
"$scroll_box_visible_touch|default": false,
"$use_touch_mode|default": false,
"$show_background|default": true,
"controls": [
{
"scroll_touch@common.scrolling_panel_base": {
"ignored": "(not $touch)",
"size": "$scrolling_pane_size",
"offset": "$scrolling_pane_offset",
"$scroll_bar_contained": "$scroll_bar_contained_touch",
"$use_touch_mode": true,
"$scroll_box_visible": "$scroll_box_visible_touch",
"$background_size": "$background_size_touch",
"$background_offset": "$background_offset_touch",
"$scroll_view_port_size": "$scroll_view_port_size_touch",
"$scroll_view_port_offset": "$scroll_view_port_offset_touch",
"$scroll_track_image_control": "common.empty_panel",
"$scroll_bar_left_padding_size": "$scroll_bar_left_padding_size_touch",
"$scroll_bar_right_padding_size": "$scroll_bar_right_padding_size_touch",
"$view_port_size": "$view_port_size_touch",
"$scroll_size": "$scroll_size_touch"
}
},
{
"scroll_mouse@common.scrolling_panel_base": {
"ignored": "$touch",
"size": "$scrolling_pane_size",
"offset": "$scrolling_pane_offset"
}
}
]
},
"scrolling_panel_with_offset@common.scrolling_panel": {
"$scroll_view_port_size|default": [ "100% - 8px", "100% -2px" ],
"$scroll_view_port_offset|default": [ 1, 1 ],
"$scroll_view_port_size_touch|default": [ "100% - 4px", "100% - 2px" ],
"$scroll_view_port_offset_touch|default": [ 1, 1 ]
},
//---------------------------------------------------------------------------
// Inventory Item
//---------------------------------------------------------------------------
"container_slot_button_prototype": {
"type": "button",
"$focus_id|default": "",
"$focus_override_down|default": "",
"$focus_override_up|default": "",
"$focus_override_left|default": "",
"$focus_override_right|default": "",
"$focus_id_binding_type|default": "collection",
"$focus_override_down_binding_type|default": "collection",
"$focus_override_up_binding_type|default": "collection",
"$focus_override_left_binding_type|default": "collection",
"$focus_override_right_binding_type|default": "collection",
"focus_identifier": "$focus_id",
"focus_change_down": "$focus_override_down",
"focus_change_up": "$focus_override_up",
"focus_change_left": "$focus_override_left",
"focus_change_right": "$focus_override_right",
"focus_enabled": true,
"focus_wrap_enabled": false,
"focus_magnet_enabled": true,
"$highlight_control|default": "common.highlight_slot_panel",
"default_focus_precedence": 1,
"hover_control": "hover",
"layer": 1,
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "$item_collection_name",
"binding_condition": "once"
},
{
"binding_type": "$focus_id_binding_type",
"binding_name": "#focus_identifier",
"binding_name_override": "#focus_identifier",
"binding_collection_name": "$item_collection_name",
"binding_condition": "once"
},
{
"binding_type": "$focus_override_down_binding_type",
"binding_name": "#focus_change_down",
"binding_name_override": "#focus_change_down",
"binding_collection_name": "$item_collection_name",
"binding_condition": "once"
},
{
"binding_type": "$focus_override_up_binding_type",
"binding_name": "#focus_change_up",
"binding_name_override": "#focus_change_up",
"binding_collection_name": "$item_collection_name",
"binding_condition": "once"
},
{
"binding_type": "$focus_override_left_binding_type",
"binding_name": "#focus_change_left",
"binding_name_override": "#focus_change_left",
"binding_collection_name": "$item_collection_name",
"binding_condition": "once"
},
{
"binding_type": "$focus_override_right_binding_type",
"binding_name": "#focus_change_right",
"binding_name_override": "#focus_change_right",
"binding_collection_name": "$item_collection_name",
"binding_condition": "once"
}
],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.container_take_all_place_all",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.container_take_all_place_all",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_secondary_select",
"to_button_id": "button.container_take_half_place_one",
"mapping_type": "pressed"
},
{
"from_button_id": "button.controller_select",
"to_button_id": "button.container_take_half_place_one",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_auto_place",
"to_button_id": "button.container_auto_place",
"mapping_type": "pressed"
},
{
"from_button_id": "button.controller_secondary_select",
"to_button_id": "button.container_auto_place",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_inventory_drop",
"to_button_id": "button.drop_one",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_inventory_drop_all",
"to_button_id": "button.drop_all",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_select",
"to_button_id": "button.coalesce_stack",
"mapping_type": "double_pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.coalesce_stack",
"mapping_type": "double_pressed"
},
{
"to_button_id": "button.shape_drawing",
"mapping_type": "pressed"
},
{
"to_button_id": "button.container_slot_hovered",
"mapping_type": "pressed"
}
],
"controls": [
{
"hover@$highlight_control": {}
}
]
},
"pocket_ui_container_slot": {
"type": "button",
"$focus_id|default": "",
"$focus_override_down|default": "",
"$focus_override_up|default": "",
"$focus_override_left|default": "",
"$focus_override_right|default": "",
"focus_identifier": "$focus_id",
"focus_change_down": "$focus_override_down",
"focus_change_up": "$focus_override_up",
"focus_change_left": "$focus_override_left",
"focus_change_right": "$focus_override_right",
"focus_enabled": true,
"focus_wrap_enabled": false,
"focus_magnet_enabled": true,
"default_focus_precedence": 1,
"layer": 1,
"hover_control": "hover",
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "$item_collection_name"
}
],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.container_auto_place_one",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.container_auto_place_one",
"mapping_type": "pressed"
},
{
"to_button_id": "button.container_slot_hovered",
"mapping_type": "pressed"
},
{
"from_button_id": "button.controller_secondary_select",
"to_button_id": "button.container_auto_place",
"mapping_type": "focused"
},
{
"from_button_id": "button.controller_select",
"to_button_id": "button.controller_select",
"mapping_type": "pressed"
}
],
"controls": [
{
"hover": {
"type": "panel",
"controls": [
{
"highlight_square@common.pocket_ui_highlight_slot": {
"visible": false,
"bindings": [
{
"binding_name": "#show_hovered_selected_inventory_slot",
"binding_name_override": "#visible"
}
]
}
}
]
}
}
]
},
"slot_selected": {
"type": "image",
"texture": "textures/ui/pocket_ui_highlight_selected_slot",
"size": [ "100% + 5px", "100% + 5px" ],
"$slot_selected_binding_name|default": "#is_selected_slot",
"visible": false,
"layer": 20,
"bindings": [
{
"binding_name": "$slot_selected_binding_name",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name"
}
]
},
"container_item": {
"type": "input_panel",
"size": [ 18, 18 ],
"layer": 1,
"anchor_to": "top_left",
"anchor_from": "top_left",
"$cell_image_size|default": [ 18, 18 ],
"$cell_overlay_ref|default": "common.cell_overlay",
"$button_ref|default": "common.container_slot_button_prototype",
"$stack_count_required|default": true,
"$durability_bar_required|default": true,
"$item_renderer|default": "common.item_renderer",
"$item_renderer_panel_size|default": [ 18, 18 ],
"$item_renderer_size|default": [ 16, 16 ],
"$item_renderer_offset|default": [ 0, 0 ],
"$background_images|default": "common.cell_image",
"$background_image_control_name|default": "bg",
"$focus_id|default": "",
"$focus_override_down|default": "",
"$focus_override_up|default": "",
"$focus_override_left|default": "",
"$focus_override_right|default": "",
"focus_identifier": "$focus_id",
"focus_change_down": "$focus_override_down",
"focus_change_up": "$focus_override_up",
"focus_change_left": "$focus_override_left",
"focus_change_right": "$focus_override_right",
"focus_enabled": true,
"focus_wrap_enabled": false,
"focus_magnet_enabled": true,
"controls": [
{
"item_cell": {
"type": "panel",
"size": "$cell_image_size",
"controls": [
{
"$background_image_control_name@$background_images": {
"layer": 1
}
},
{
"item": {
"type": "panel",
"size": "$item_renderer_panel_size",
"controls": [
{
"stack_count_label@common.stack_count_label": {
"layer": 8
}
},
{
"$item_renderer@$item_renderer": {
"size": "$item_renderer_size",
"offset": "$item_renderer_offset",
"anchor_to": "center",
"anchor_from": "center",
"layer": 5
}
}
]
}
},
{
"durability_bar@common.durability_bar": {
"layer": 6
}
}
]
}
},
{
"item_cell_overlay_ref@$cell_overlay_ref": {
"layer": 2
}
},
{
"item_selected_image@common.slot_selected": {
"layer": 3
}
},
{
"item_button_ref@$button_ref": {
"layer": 4
}
}
]
},
"pocket_ui_container_item@common.container_item": {
"size": [ 24, 24 ],
"anchor_to": "center",
"anchor_from": "center",
"$cell_image_size|default": [ 24, 24 ]
},
"pocket_ui_large_container_item@common.container_item": {
"size": [ 32, 32 ],
"anchor_to": "center",
"anchor_from": "center",
"$cell_image_size|default": [ 32, 32 ]
},
//---------------------------------------------------------------------------
// Selectable Slot
//---------------------------------------------------------------------------
"pocket_ui_highlight_selected_slot": {
"type": "image",
"texture": "textures/ui/pocket_ui_highlight_selected_slot",
"layer": 2,
"size": [ "100%+4px", "100%+4px" ],
"anchor_from": "center",
"anchor_to": "center"
},
"pocket_ui_container_select_slot@common.pocket_ui_container_slot": {
"sound_name": "random.click",
"$controller_button_action|default": "button.container_select_slot",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.container_select_slot",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "$controller_button_action",
"mapping_type": "focused"
},
{
"from_button_id": "button.controller_select",
"to_button_id": "button.container_auto_place",
"mapping_type": "focused"
},
{
"from_button_id": "button.menu_auto_place",
"to_button_id": "button.container_auto_place",
"mapping_type": "pressed"
},
{
"to_button_id": "button.container_slot_hovered",
"mapping_type": "pressed"
}
],
"controls": [
{
"default": {
"type": "panel",
"controls": [
{
"highlight_square@pocket_ui_highlight_selected_slot": {
"visible": false,
"bindings": [
{
"binding_type": "collection",
"binding_name": "#is_selected_slot",
"binding_name_override": "#visible",
"binding_collection_name": "$item_collection_name"
}
]
}
}
]
}
},
{
"hover": {
"type": "panel",
"controls": [
{
"highlight_square@pocket_ui_highlight_selected_slot": {
"visible": false,
"bindings": [
{
"binding_name": "#show_hovered_slot",
"binding_name_override": "#visible"
}
]
}
}
]
}
}
]
},
"pocket_ui_container_selectable_slot_item@common.pocket_ui_container_item": {
"size": [ 32, 32 ],
"anchor_to": "top_left",
"anchor_from": "top_left",
"$cell_image_size": [ 32, 32 ],
"$button_ref": "common.pocket_ui_container_select_slot",
"controls": [
{
"item_cell@common.cell_image": {
"size": "$cell_image_size",
"texture": "textures/ui/pocket_button_pressed",
"layer": 1,
"controls": [
{
"item": {
"type": "panel",
"size": [ 18, 18 ],
"controls": [
{
"stack_count_label@common.stack_count_label": {
"offset": [ 0, 0 ],
"layer": 4
}
},
{
"$item_renderer@$item_renderer": {
"size": [ 16, 16 ],
"layer": 2
}
}
]
}
},
{
"durability_bar@common.durability_bar": {
"layer": 5
}
}
]
}
},
{ "item_cell_overlay_ref@$cell_overlay_ref": {} },
{ "item_button_ref@$button_ref": {} }
],
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "$item_collection_name"
},
{
"binding_type": "global",
"binding_name": "#start_selected",
"binding_condition": "once"
}
]
},
//---------------------------------------------------------------------------
// Container panel
//---------------------------------------------------------------------------
"inventory_selected_icon@common.item_renderer": {
"layer": 50,
"size": [ 21, 21 ],
"offset": [ 1, 0 ],
"bindings": [
{
"binding_name": "#inventory_selected_item",
"binding_name_override": "#item_id_aux",
"binding_condition": "always_when_visible"
},
{
"binding_name": "#inventory_selected_item_color",
"binding_name_override": "#item_custom_color",
"binding_condition": "always_when_visible"
},
{
"binding_name": "#inventory_selected_banner_patterns",
"binding_name_override": "#banner_patterns",
"binding_condition": "always_when_visible"
},
{
"binding_name": "#inventory_selected_banner_colors",
"binding_name_override": "#banner_colors",
"binding_condition": "always_when_visible"
}
]
},
"inventory_selected_stack_size_text": {
"type": "label",
"offset": [ -1, 0 ],
"anchor_to": "bottom_right",
"anchor_from": "bottom_right",
"layer": 53,
"shadow": true,
"color": "$selected_item_stack_count_color",
"text": "#inventory_selected_item_stack_count",
"bindings": [
{
"binding_name": "#inventory_selected_item_stack_count",
"binding_condition": "always_when_visible"
}
]
},
"inventory_hold_icon": {
"type": "custom",
"renderer": "progress_bar_renderer",
"variables": [
{
"requires": "$desktop_screen",
"$bar_offset": [ 0, -12 ]
},
{
"requires": "$pocket_screen",
"$bar_offset": [ 0, -18 ]
}
],
"layer": 70,
"offset": "$bar_offset",
"size": [ 15, 3 ],
"bindings": [
{
"binding_name": "#progress_bar_visible",
"binding_condition": "always"
},
{
"binding_name": "#progress_bar_total_amount",
"binding_condition": "always_when_visible"
},
{
"binding_name": "#progress_bar_current_amount",
"binding_condition": "always_when_visible"
}
]
},
"inventory_icon_panel": {
"type": "panel",
"controls": [
{ "selected_item_icon@common.inventory_selected_icon": {} },
{ "selected_stack_size_text@common.inventory_selected_stack_size_text": {} },
{
"hover_text@common.hover_text": {
"layer": 59,
"bindings": [
{
"binding_name": "#using_touch",
"binding_name_override": "#visible"
}
]
}
}
]
},
"inventory_selected_icon_button": {
"type": "button",
"anchor_from": "center",
"anchor_to": "center",
"locked_control": "",
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed",
"layer": -10,
"size": [ 16, 16 ],
"follows_cursor": true,
"sound_name": "random.click",
"sound_volume": 1.0,
"sound_pitch": 1.0,
"always_handle_pointer": true,
"$durability_bar_required|default": true,
"controls": [
{ "default@inventory_icon_panel": {} },
{ "pressed@inventory_icon_panel": {} },
{ "hover@inventory_icon_panel": {} },
{ "durability_bar_grabbed@common.durability_bar_grabbed": {} }
]
},
"inventory_take_progress_icon_button": {
"type": "button",
"locked_control": "",
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed",
"layer": -10,
"size": [ 16, 16 ],
"follows_cursor": true,
"sound_name": "random.click",
"sound_volume": 1.0,
"sound_pitch": 1.0,
"always_handle_pointer": true,
"controls": [
{ "default@inventory_hold_icon": {} },
{ "pressed@inventory_hold_icon": {} },
{ "hover@inventory_hold_icon": {} }
]
},
"gamepad_cursor_image": {
"type": "image",
"texture": "textures/ui/pointer",
"size": [ 14, 14 ],
"layer": 60,
"follows_cursor": true,
"bindings": [
{
"binding_name": "#gamepad_cursor_visible",
"binding_name_override": "#visible",
"binding_condition": "always"
}
]
},
"gamepad_cursor_button": {
"type": "button",
"visible": false,
"anchor_from": "center",
"anchor_to": "center",
"locked_control": "",
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed",
"layer": -10,
"size": [ 16, 16 ],
"follows_cursor": true,
"always_handle_pointer": true,
"controls": [
{ "default@gamepad_cursor_image": {} },
{ "pressed@gamepad_cursor_image": {} },
{ "hover@gamepad_cursor_image": {} }
]
},
"grid_item_for_inventory@common.container_item": {
"$item_collection_name": "inventory_items"
},
"grid_item_for_hotbar@common.container_item": {
"$item_collection_name": "hotbar_items"
},
"hotbar_grid_template": {
"type": "grid",
"size": [ 162, 18 ],
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"offset": [ 0, -5 ],
"grid_dimensions": [ 9, 1 ],
"grid_item_template": "common.grid_item_for_hotbar",
"collection_name": "hotbar_items"
},
"inventory_panel": {
"type": "panel",
"size": [ 88, 83 ],
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"controls": [
{
"inventory_grid": {
"type": "grid",
"size": [ 162, 54 ],
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"offset": [ 0, -26 ],
"grid_dimensions": [ 9, 3 ],
"grid_item_template": "common.grid_item_for_inventory",
"collection_name": "inventory_items"
}
}
]
},
// Bottom half of ui, inventory panel
"inventory_panel_bottom_half": {
"type": "panel",
"size": [ "100%", "50%" ],
"anchor_from": "left_middle",
"anchor_to": "top_left",
"controls": [
{ "inventory_panel@inventory_panel": {} }
]
},
"inventory_panel_bottom_half_with_label@inventory_panel_bottom_half": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ "100%", 93 ],
"controls": [
{ "inventory_panel@inventory_panel": {} },
{
"inventory_label@section_heading_label": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"offset": [ 7, 3 ],
"layer": 2,
"text": "container.inventory"
}
}
]
},
// Common panel contains the bg image and the close button
"common_panel": {
"type": "panel",
"$dialog_background|default": "common.dialog_background_opaque",
"$show_close_button|default": true,
"$close_button_offset|default": [ 0, 0 ],
"$close_button_layer|default": 2,
"$use_compact_close_button|default": false,
"$show_divider|default": false,
"$divider_offset|default": [ "42.5%", "22px" ],
"$divider_visible_binding_name|default": "",
"$divider_visible_binding_type|default": "none",
"controls": [
{
"bg_image@$dialog_background": {
"layer": 1
}
},
{
"dialog_divider@common.dialog_divider": {
"visible": "$show_divider",
"anchor_from": "top_left",
"anchor_to": "top_left",
"offset": "$divider_offset",
"size": [ "5px", "100% - 29px" ],
"bindings": [
{
"binding_name": "$divider_visible_binding_name",
"binding_name_override": "#visible",
"binding_type": "$divider_visible_binding_type"
}
]
}
},
{
"close_button_holder": {
"type": "panel",
"ignored": "(not $show_close_button)",
"controls": [
{
"close@common.close_button": {
"layer": "$close_button_layer",
"offset": "$close_button_offset",
"ignored": "$use_compact_close_button"
}
},
{
"compact_close@common.compact_close_button": {
"layer": "$close_button_layer",
"offset": "$close_button_offset",
"visible": "$use_compact_close_button"
}
}
],
"bindings": [
{
"binding_name": "#close_button_visible",
"binding_name_override": "#visible"
}
]
}
}
]
},
// Root panel all others parented to
"root_panel": {
"type": "input_panel",
"size": [ 176, 166 ],
"layer": 1,
"anchor_from": "center",
"anchor_to": "center",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.container_reset_held",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_secondary_select",
"to_button_id": "button.container_reset_held",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.container_reset_held",
"mapping_type": "pressed"
},
{
"from_button_id": "button.controller_select",
"to_button_id": "button.container_reset_held",
"mapping_type": "pressed"
},
{
"from_button_id": "button.controller_secondary_select",
"to_button_id": "button.container_reset_held",
"mapping_type": "pressed"
}
]
},
// Base Input Panel
"input_panel": {
"type": "input_panel"
},
//---------------------------------------------------------------------------
// Screens, survival inventory and crafting
//---------------------------------------------------------------------------
"base_screen": {
"type": "screen",
"vr_mode": "$is_holographic",
"$screen_content|default": "common.base_screen_empty_panel",
"$screen_bg_content|default": "common.base_screen_empty_panel",
"controls": [
{
"variables_button_mappings_and_controls": {
"type": "input_panel",
"hover_enabled": false,
"variables": [
// Screen sizes - you should be using one of these unless explicitly told otherwise - in which case that size should be added as a variable here
// Win10
{
//Desktop Texel Size: [376, 250]
"requires": "$desktop_screen",
"$narrow_screen_size": [ 280, "100% - 10px" ], // Realms Pending Invitations, Add Players
"$play_screen_size": [ 282, "100% - 50px" ], // Play Screen
"$realms_settings_screen_size": [ 330, "100% - 50px" ], // Realms Settings
"$realms_create_screen_size": [ 267, 240 ], // Realms Create
"$large_screen_size": [ 317, "100% - 10px" ], // Multiplayer Invitations
"$achievement_screen_size": [ 361, "100% - 10px" ], // Achievements
"$16_9_wide_screen_size": [ 372, 218 ], // Global Texture Packs
"$store_screen_size": [ "100% - 4px", "100% - 4px" ], // Store Home
"$mashup_screen_size": [ 376, 239 ], //[ "100% - 76px", "49.029%x + 32.175px" ], // Store Bundle
"$store_world_screen_size": [ 376, 239 ],
"$skin_pack_screen_size": [ "100% - 4px", "100% - 50px" ], // Skin Pack
"$resource_pack_screen_size": [ "100% - 50px", "45%x + 65px" ], // Texture Pack
"$upsell_screen_size": [ "177%y - 208.5px", "100% - 4px" ], // Skin Pack Upsell
"$store_texture_pack_upsell": [ "142.24%y - 44px", "100% - 10px" ],
"$create_world_upsell_screen_size": [ 360, 183 ],
"$create_realm_upsell_screen_size": [ 360, 183 ],
"$create_realm_upsell_play_screen_size": [ 360, 213 ],
"$max_create_world_upsell_screen_size": [ 360, "100% - 4px" ],
"$min_resource_pack_screen_size": [ 372, 232.4 ],
"$max_resource_pack_screen_size": [ 400, 246 ],
"$max_upsell_screen_size": [ 250, 259.125 ],
"$max_skin_pack_screen_size": [ 310, "56.25%x - 65.25px + 118.5px" ],
"$max_skin_picker_screen_size": [ "100% - 4px", "100% - 50px" ],
"$extra_large_screen_size": [ 370, "100% - 50px" ], // Skin Picker
"$xbl_optional_signin_screen_size": [ 317, 158 ], // XBL Optional Signin Popup
"$xbl_console_signin_screen_size": [ 250, 161 ], // XBL Console Signin Popup
"$xbl_console_signin_succeeded_screen_size": [ 230, "100% - 50px" ], // XBL Console Signin Succeeded Popup
"$xbl_first_launch_screen_size": [ 317, 146 ], // XBL First Launch Popup, Trial Upsell
"$xbl_gamer_profile_screen_size": [ 260, "100% - 50px" ], // XBL Console Signin Succeeded Popup
"$modal_screen_size": [ 204, 140 ], // Pop-up dialogue boxes and modal progress screens
"$tall_modal_screen_size": [ 204, 172 ],
"$patch_notes_screen_size": [ 300, "100% - 4px" ], // Patch Notes Screen
"$sign_screen_size": [ 185, 90 ], // Sign Screen
"$mob_effect_screen_size": [ "90%", "90%" ], // Mob Effect Screen
"$purchase_coin_screen_size": [ "85%", "17%x + 65px" ], //Coin Purchase Screen
"$world_modal_screen_size": [ 290, 100 ] // world convert and world loading modal progress screens
},
// PE edition and VR
{
//Pocket Texel Size: [320, 210]
"requires": "($pocket_screen or $is_holographic)",
"$narrow_screen_size": [ "90.3225%", "100% - 4px" ], // Realms Pending Invitations, Add Players
"$play_screen_size": [ "83.4375%", "100% - 4px" ], // Play Screen
"$realms_settings_screen_size": [ "83.4375%", "100% - 4px" ], // Realms Settings
"$realms_create_screen_size": [ "71.2766%", "100% - 4px" ], // Realms Create
"$large_screen_size": [ "70.3215%", "100% - 4px" ], // Multiplayer Invitations
"$achievement_screen_size": [ "100% - 4px", "100% - 4px" ], // Achievements
"$16_9_wide_screen_size": [ "100% - 4px", "100% - 4px" ], // Global Texture Packs
"$store_screen_size": [ "100% - 4px", "100% - 4px" ], // Store Home, purchase Skin Pack
"$mashup_screen_size": [ 316, 205 ], // Store Bundle
"$store_world_screen_size": [ "100% - 4px", "100% - 4px" ],
"$skin_pack_screen_size": [ "100% - 4px", "100% - 4px" ], // Skin Pack
"$resource_pack_screen_size": [ "100% - 50px", "45%x + 65px" ], // Texture Pack
"$upsell_screen_size": [ "100% - 76px", "100% - 4px" ], // Skin Pack Upsell
"$store_texture_pack_upsell": [ "142.24%y - 36px", "100% - 4px" ],
"$create_world_upsell_screen_size": [ "100% - 4px", 223 ],
"$create_realm_upsell_screen_size": [ "100% - 4px", 223 ],
"$create_realm_upsell_play_screen_size": [ "100% - 4px", 219 ],
"$max_create_world_upsell_screen_size": [ "100% - 4px", "100% - 4px" ],
"$min_resource_pack_screen_size": [ 306, 202.7 ],
"$max_resource_pack_screen_size": [ 313.3, 206 ],
"$max_upsell_screen_size": [ "100% - 76px", "56.25%x + 118.5px" ],
"$max_skin_pack_screen_size": [ "100% - 4px", "56.25%x - 65.25px + 118.5px" ],
"$max_skin_picker_screen_size": [ "100% - 4px", "100% - 4px" ],
"$extra_large_screen_size": [ "100% - 4px", "100% - 4px" ], // Skin Picker
"$xbl_optional_signin_screen_size": [ 316, 153 ], // XBL Optional Signin Popup
"$xbl_console_signin_screen_size": [ 250, 161 ], // XBL Console Signin Popup
"$xbl_console_signin_succeeded_screen_size": [ 230, "100% - 4px" ], // XBL Console Signin Succeeded Popup
"$xbl_first_launch_screen_size": [ 316, 146 ], // XBL First Launch Popup, Trial Upsell
"$xbl_gamer_profile_screen_size": [ 316, "100% - 4px" ], // XBL Console Signin Succeeded Popup
"$modal_screen_size": [ 204, 140 ], // Pop-up dialogue boxes and modal progress screens
"$tall_modal_screen_size": [ 204, 172 ],
"$patch_notes_screen_size": [ 300, "100% - 4px" ], // Patch Notes Screen
"$sign_screen_size": [ 185, 90 ], // Sign Screen
"$mob_effect_screen_size": [ "90%", "90%" ], // Mob Effect Screen
"$purchase_coin_screen_size": [ "85%", "17%x + 65px" ], //Coin Purchase Screen
"$world_modal_screen_size": [ 290, 100 ] // world convert and world loading modal progress screens
}
],
"button_mappings": [
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"controls": [
{ "bg_no_safezone_screen_panel@$screen_bg_content": {} },
{ "safezone_screen_matrix@common.safezone_outer_matrix": {} }
]
}
}
]
},
"safezone_buffer": {
"type": "panel",
"bindings": [
{
"binding_name": "$safezone_binding_name",
"binding_name_override": "#visible"
}
]
},
"top_safezone_vertical_buffer@common.safezone_buffer": {
"size": "$top_vertical_safezone_size"
},
"bottom_safezone_vertical_buffer@common.safezone_buffer": {
"size": "$bottom_vertical_safezone_size"
},
"left_safezone_horizontal_buffer@common.safezone_buffer": {
"size": "$left_horizontal_safezone_size"
},
"right_safezone_horizontal_buffer@common.safezone_buffer": {
"size": "$right_horizontal_safezone_size"
},
"safe_zone_stack": {
"type": "stack_panel",
"size": [ "100%", "100%" ],
"$background_control|default": "common.empty_panel",
"$header_bar_control|default": "common.empty_panel",
"$header_safezone_control|default": "common.empty_panel",
"controls": [
{
"top_outer_control@$header_safezone_control": {
"size": "$top_vertical_safezone_size",
"bindings": [
{
"binding_name": "#safezone_outer_top",
"binding_name_override": "#visible"
}
]
}
},
{
"top_inner_control@$header_safezone_control": {
"size": "$top_vertical_safezone_size",
"bindings": [
{
"binding_name": "#safezone_inner_top",
"binding_name_override": "#visible"
}
]
}
},
{
"header_bar@$header_bar_control": {}
},
{
"background@$background_control": {
"size": [ "100%", "fill" ]
}
}
]
},
"safezone_inner_matrix": {
"type": "stack_panel",
"size": [ "fill", "100%" ],
"orientation": "vertical",
"$header_safezone_control|default": "common.empty_panel",
"$background_control|default": "common.empty_panel",
"controls": [
{
"outer_top@common.top_safezone_vertical_buffer": {
"$safezone_binding_name": "#safezone_outer_top",
"controls": [
{
"top_side_control@$header_safezone_control": {
"size": [ "100%", "100%" ],
"anchor_from": "top_left",
"anchor_to": "top_left"
}
}
]
}
},
{
"inner_top@common.top_safezone_vertical_buffer": {
"$safezone_binding_name": "#safezone_inner_top",
"controls": [
{
"top_side_control@$header_safezone_control": {
"size": [ "100%", "100%" ],
"anchor_from": "top_left",
"anchor_to": "top_left"
}
}
]
}
},
{ "safezone_screen_panel@common.screen_panel": {} },
{
"inner_bottom@common.bottom_safezone_vertical_buffer": {
"$safezone_binding_name": "#safezone_inner_bottom",
"controls": [
{
"background@$background_control": {}
}
]
}
},
{
"outer_bottom@common.bottom_safezone_vertical_buffer": {
"$safezone_binding_name": "#safezone_outer_bottom",
"controls": [
{
"background@$background_control": {}
}
]
}
}
]
},
"safezone_outer_matrix": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "100%" ],
"controls": [
{
"outer_left@common.left_safezone_horizontal_buffer": {
"$safezone_binding_name": "#safezone_outer_left",
"controls": [
{
"outer_left_safe_zone_stack@common.safe_zone_stack": {}
}
]
}
},
{
"inner_left@common.left_safezone_horizontal_buffer": {
"$safezone_binding_name": "#safezone_inner_left",
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"inner_left_safe_zone_stack@common.safe_zone_stack": {}
}
]
}
},
{ "inner_matrix@common.safezone_inner_matrix": {} },
{
"inner_right@common.right_safezone_horizontal_buffer": {
"$safezone_binding_name": "#safezone_inner_right",
"controls": [
{
"inner_right_safe_zone_stack@common.safe_zone_stack": {}
}
]
}
},
{
"outer_right@common.right_safezone_horizontal_buffer": {
"$safezone_binding_name": "#safezone_outer_right",
"controls": [
{
"outer_right_safe_zone_stack@common.safe_zone_stack": {}
}
]
}
}
]
},
"screen_panel": {
"type": "panel",
"size": [ "100%", "fill" ],
"controls": [
{ "root_screen_panel@$screen_content": {} },
{
"popup_dialog_factory": {
"type": "factory",
"control_ids": {
"modal_dialog_popup": "@popup_dialog.modal_dialog_popup",
"storage_dependency_popup": "@storage_management_popup.storage_dependency_modal",
"storage_sharing_popup": "@storage_management_popup.sharing_popup_content"
}
}
}
]
},
"base_screen_empty_panel": {
"type": "panel"
},
"modal_screen@common.base_screen": {
// necessary to have this screen as long as
// ScreenChooser::isModalScreen() is hard coded to this name
},
"modal_area_panel_base": {
"type": "input_panel",
"layer": 1,
"$menu_cancel_button_id|default": "button.menu_exit",
"$modal_binding_name|default": "",
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "$menu_cancel_button_id",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"bindings": [
{
"binding_name": "$modal_binding_name",
"binding_name_override": "#modal"
}
]
},
"inactive_modal_pane_fade": {
"type": "image",
"size": [ "100%", "100%" ],
"texture": "textures/ui/White",
"color": [ 0.5, 0.5, 0.5 ],
"alpha": 0.5,
"layer": 25,
"bindings": [
{
"binding_name": "$modal_binding_name",
"binding_name_override": "#visible"
}
]
},
"inventory_screen_common@base_screen": {
"cache_screen": true,
"$gamepad_cursor|default": true,
"gamepad_cursor": "$gamepad_cursor",
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_inventory_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_select",
"to_button_id": "button.cursor_drop_all",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_secondary_select",
"to_button_id": "button.cursor_drop_one",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.cursor_drop_all",
"mapping_type": "pressed"
},
{
"from_button_id": "button.controller_select",
"to_button_id": "button.cursor_drop_one",
"mapping_type": "pressed"
},
{
"from_button_id": "button.controller_secondary_select",
"to_button_id": "button.cursor_drop_all",
"mapping_type": "pressed"
},
{
"from_button_id": "button.controller_secondary_select_left",
"to_button_id": "button.focus_left",
"mapping_type": "global"
},
{
"from_button_id": "button.controller_secondary_select_right",
"to_button_id": "button.focus_right",
"mapping_type": "global"
},
{
"from_button_id": "button.chat",
"to_button_id": "button.chat",
"mapping_type": "global"
}
]
},
// Legacy In Game Close Button //
"legacy_pocket_close_button_default": {
"type": "image",
"texture": "textures/ui/legacy_pocket_close_button_default"
},
"legacy_pocket_close_button_pressed@common.legacy_pocket_close_button_default": {
"texture": "textures/ui/legacy_pocket_close_button_pressed"
},
"legacy_pocket_close_button@common.button": {
"$pressed_button_name": "button.menu_exit",
"size": [ 18, 18 ],
"offset": [ 0, 1 ],
"focus_enabled": false,
"anchor_from": "top_right",
"anchor_to": "top_right",
"controls": [
{ "default@common.legacy_pocket_close_button_default": {} },
{ "hover@common.legacy_pocket_close_button_default": {} },
{ "pressed@common.legacy_pocket_close_button_pressed": {} }
],
"bindings": [
{
"binding_name": "#close_button_visible",
"binding_name_override": "#visible"
}
]
}
}