1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-27 04:38:56 +00:00
bedrock-samples/resource_pack/ui/world_templates_screen.json
Mike Ammerlaan 6e0daa70a8 v1.21.40.3
2024-10-22 09:25:09 -07:00

1242 lines
38 KiB
JSON

{
"namespace": "world_templates",
"horizontal_padding": {
"type": "panel",
"size": [ 2, "100%" ]
},
//---------------------------------------------------------------------------
// Images
//---------------------------------------------------------------------------
"world_icon": {
"type": "image",
"texture": "textures/ui/worldsIcon",
"size": [ 16, 17 ]
},
"realms_icon": {
"type": "image",
"texture": "textures/ui/realmsIcon",
"size": [ 11, 14 ]
},
"label_background": {
"type": "image",
"texture": "textures/ui/mainbanners"
},
"lock_icon": {
"type": "image",
"texture": "textures/ui/lock"
},
"realms_plus_icon@common_store.store_offer_type_icon": {
"$offer_icon_texture_path": "textures/ui/realmportal_small",
"size": [ 6, 8 ]
},
//---------------------------------------------------------------------------
// TOGGLES
//---------------------------------------------------------------------------
"new_world_toggle@common_toggles.dark_image_toggle": {
"size": [ "100%", "100%" ],
"$toggle_name": "world_toggle",
"$button_content": "world_templates.world_button_content",
"$world_icon": "world_templates.world_icon",
"$button_label": "selectTemplate.world",
"$radio_toggle_group": true,
"$default_focus_precedence": 1,
"$toggle_group_forced_index": 0,
"$toggle_group_default_selected": "$default_tab",
"$toggle_tts_toggle_on_text": "",
"$toggle_tts_toggle_off_text": ""
},
"new_realm_toggle@common_toggles.dark_image_toggle": {
"size": [ "100% + 1px", "100%" ],
"$toggle_name": "world_toggle",
"$button_content": "world_templates.world_button_content",
"$world_icon": "world_templates.realms_icon",
"$button_label": "selectTemplate.realm",
"$radio_toggle_group": true,
"$toggle_group_forced_index": 1,
"$toggle_group_default_selected": "$default_tab",
"$toggle_tts_toggle_on_text": "",
"$toggle_tts_toggle_off_text": ""
},
"world_button_content": {
"type": "stack_panel",
"size": [ "100% - 9px", "100% - 4px" ],
"orientation": "horizontal",
"controls": [
{ "horizontal_padding_0@world_templates.horizontal_padding": {} },
{
"icon_panel": {
"type": "panel",
"size": [ "100%c", "100%" ],
"controls": [
{ "$world_icon@$world_icon": {} }
]
}
},
{
"horizontal_padding_1@world_templates.horizontal_padding": {
"type": "panel",
"size": [ 8, "100%" ]
}
},
{
"world_button_label_panel": {
"type": "panel",
"size": [ "fill", "100%" ],
"controls": [
{ "world_button_label@world_templates.world_button_label": {} }
]
}
},
{ "horizontal_padding_2@world_templates.horizontal_padding": {} }
]
},
"world_button_label": {
"type": "label",
"color": "$dark_button_default_text_color",
"size": [ "default", 10 ],
"max_size": [ "100%", 10 ],
"text": "$button_label",
"text_alignment": "left",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"layer": 1
},
//---------------------------------------------------------------------------
// BUTTONS
//---------------------------------------------------------------------------
"common_button_template@common_buttons.light_glyph_button": {},
"generate_random@common_buttons.light_text_button": {
"size": [ "100%", 30 ],
"$pressed_button_name": "button.generate_random",
"anchor_from": "top_left",
"anchor_to": "top_left",
"$button_text": "#generate_random_button_text",
"$button_focus_precedence": 1,
"$button_text_binding_type": "global",
"tts_ignore_subsections": true,
"focus_change_left": "FOCUS_OVERRIDE_STOP",
"focus_change_right": "FOCUS_OVERRIDE_STOP",
"bindings": [
{
"binding_name": "#generate_random_button_enabled",
"binding_name_override": "#enabled"
},
{
"binding_name": "#generate_random_button_visible",
"binding_name_override": "#visible"
}
]
},
"help_button@common_buttons.dark_text_button": {
"$pressed_button_name": "button.help",
"$button_text": "selectTemplate.help",
"$button_tts_header": "accessibility.worldTemplates.help"
},
"grid_button_content_template": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"content@$button_content": {
"layer": 1
}
}
]
},
"label_content_template": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"label_panel": {
"type": "panel",
"size": [ "100%", 10 ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"layer": 1,
"controls": [
{
"label_panel_layout": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100% - 4px", 10 ],
"offset": [ 1, 0 ],
"controls": [
{
"label": {
"type": "label",
"color": "$body_text_color",
"size": [ "100%", 10 ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"layer": 1,
"shadow": false,
"text": "$label_content_label",
"$label_text_binding_type|default": "none",
"bindings": [
{
"binding_name": "$label_content_label",
"binding_type": "$label_text_binding_type"
}
]
}
}
]
}
}
]
}
}
]
},
"my_templates_label@world_templates.label_content_template": {
"$label_content_label": "$section_header"
},
"realms_plus_templates_label@world_templates.label_content_template": {
"$label_content_label": "$section_header"
},
"custom_templates_label@world_templates.label_content_template": {
"$label_content_label": "$section_header"
},
"generate_random_button@world_templates.grid_button_content_template": {
"size": [ "100%", "100%c + 2px" ],
"$button_content": "world_templates.generate_random"
},
"realms_templates_info@world_templates.label_background": {
"size": [ "100%", "100%c + 8px" ],
"controls": [
{
"info_label": {
"type": "label",
"color": "$body_text_color",
"max_size": [ "100% - 4px", "default" ],
"text": "#realms_info_text",
"layer": 1,
"bindings": [
{
"binding_name": "#realms_info_text",
"binding_type": "global",
"binding_condition": "always_when_visible"
}
]
}
}
],
"bindings": [
{
"binding_name": "#realms_info_visible",
"binding_name_override": "#visible"
}
]
},
//---------------------------------------------------------------------------
// LOCAL WORLD GRID
//---------------------------------------------------------------------------
"world_list_text": {
"type": "label",
"color": "$dark_button_secondary_default_text_color",
"shadow": false
},
"world_template_screenshot": {
"type": "image",
"size": [ "100%c + 2px", "100%" ],
"texture": "$border_texture",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"layer": 1,
"controls": [
{
"picture": {
"type": "image",
"layer": 1,
"force_texture_reload": true,
"$screenshot_texture_name|default": "#screenshot_texture",
"$screenshot_zip_folder|default": "#screenshot_zip_folder",
"$screenshot_zip_folder_binding_type|default": "collection",
"$screenshot_file_system|default": "#screenshot_file_system",
"texture": "$screenshot_texture_name",
"texture_file_system": "$screenshot_file_system",
"size": [ "173.91%y", "100% - 2px" ],
"bindings": [
{
"binding_collection_name": "$collection_name",
"binding_name": "$screenshot_texture_name",
"binding_name_override": "#texture",
"binding_type": "collection"
},
{
"binding_collection_name": "$collection_name",
"binding_name": "$screenshot_zip_folder",
"binding_name_override": "#zip_folder",
"binding_type": "$screenshot_zip_folder_binding_type"
},
{
"binding_collection_name": "$collection_name",
"binding_name": "$screenshot_file_system",
"binding_name_override": "#texture_file_system",
"binding_type": "collection"
}
]
}
}
]
},
"world_template_name@world_templates.world_list_text": {
"text": "$world_template_name_binding_name",
"color": "$dark_button_default_text_color",
"$world_template_name_binding_name|default": "#world_template_name",
"$section_header|default": "",
"tts_section_header": "$section_header",
"bindings": [
{
"binding_name": "$world_template_name_binding_name",
"binding_type": "collection",
"binding_collection_name": "$collection_name",
"binding_condition": "visible"
}
]
},
"world_template_description@world_templates.world_list_text": {
"text": "$world_template_description_binding_name",
"$world_template_description_binding_name|default": "#world_template_description",
"bindings": [
{
"binding_name": "$world_template_description_binding_name",
"binding_type": "collection",
"binding_collection_name": "$collection_name",
"binding_condition": "visible"
}
]
},
"world_template_version@world_templates.world_list_text": {
"text": "#world_template_version",
"bindings": [
{
"binding_name": "#world_template_version",
"binding_type": "collection",
"binding_collection_name": "$collection_name",
"binding_condition": "visible"
},
{
"binding_name": "(not #lock_visible)",
"binding_type": "collection",
"binding_collection_name": "$collection_name",
"binding_name_override": "#visible"
}
]
},
"template_download_text@world_templates.world_list_text": {
"text": "#template_download_text",
"bindings": [
{
"binding_name": "#template_download_text",
"binding_type": "collection",
"binding_collection_name": "$collection_name",
"binding_condition": "visible"
},
{
"binding_name": "#download_text_visible",
"binding_type": "collection",
"binding_collection_name": "$collection_name",
"binding_name_override": "#visible"
}
]
},
"world_template_text_panel": {
"type": "panel",
"controls": [
{
"text_indent": {
"type": "panel",
"size": [ "100% - 4px", "100% - 4px" ],
"offset": [ 1, 0 ],
"controls": [
{
"top_side": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "50%" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"offset": [ -2, 1 ],
"controls": [
{
"world_template_name@world_templates.world_template_name": {
"size": [ "fill", 10 ],
"layer": 1
}
},
{
"download_text_label@world_templates.template_download_text": {
"size": [ "default", 10 ],
"layer": 1
}
}
]
}
},
{
"bottom_side": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "50%" ],
"offset": [ -2, 1 ],
"controls": [
{
"csb_icon@world_templates.csb_banner": {
"size": [ "100%c", 12 ],
"layer": 1,
"bindings": [
{
"binding_type": "collection",
"binding_collection_name": "$collection_name",
"binding_name": "#csb_chevron_visibility",
"binding_name_override": "#visible"
}
]
}
},
{
"pad": {
"type": "panel",
"size": [ 3, "100%" ]
}
},
{
"world_template_description@world_templates.world_template_description": {
"size": [ "fill", 10 ],
"layer": 1
}
},
{
"world_template_version@world_templates.world_template_version": {
"size": [ "default", 10 ],
"layer": 1
}
}
]
}
}
]
}
}
]
},
"csb_banner": {
"type": "panel",
"size": [ "100%c", "100%" ],
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"$is_realms_plus|default": false,
"visible": "$is_realms_plus",
"controls": [
{
"banner": {
"type": "image",
"$banner_size|default": [ "139%y", 12 ],
"size": "$banner_size",
"texture": "textures/ui/csbChevronArrowLarge",
"layer": 9
}
}
],
"$banner_content": [
{
"csb_icon@common_store.csb_banner_icon": {}
},
{
"pad": {
"type": "panel",
"size": [ 2, "100%" ]
}
},
{
"expiration_timer": {
"type": "label",
"size": [ "default", "100%" ],
"max_size": [ 60, "100%" ],
"color": "$store_csb_expiration_text_color",
"font_type": "smooth",
"text": "#csb_expiration_label",
"bindings": [
{
"binding_type": "collection",
"binding_collection_name": "$collection_name",
"binding_name": "#csb_expiration_label"
},
{
"binding_type": "collection",
"binding_collection_name": "$collection_name",
"binding_name": "#csb_expiration_visible",
"binding_name_override": "#visible"
}
]
}
},
{
"pad_1": {
"type": "panel",
"size": [ 5, "100%" ]
}
}
]
},
"world_template_content_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "100%" ],
"variables": [
{
"requires": "$default_state",
"$border_texture": "textures/ui/default_indent"
},
{
"requires": "$hover_state",
"$border_texture": "textures/ui/world_screenshot_focus_border"
},
{
"requires": "$pressed_state",
"$border_texture": "textures/ui/world_screenshot_focus_border"
},
{
"requires": "$locked_state",
"$border_texture": "textures/ui/default_indent"
}
],
"controls": [
{
"world_template_screenshot@world_templates.world_template_screenshot": {}
},
{
"world_template_text_panel@world_templates.world_template_text_panel": {
"size": [ "fill", "100%" ]
}
},
{
"lock_panel": {
"type": "panel",
"size": [ "100%c + 4px", "100%" ],
"controls": [
{
"lock_icon@world_templates.lock_icon": {
"size": [ 8, 8 ]
}
}
],
"bindings": [
{
"binding_name": "#lock_visible",
"binding_collection_name": "$collection_name",
"binding_type": "collection",
"binding_name_override": "#visible"
}
]
}
}
]
},
"world_template_item_button@common_buttons.dark_content_button": {
"$button_content": "world_templates.world_template_content_panel",
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "$collection_name",
"binding_collection_prefix": "$collection_prefix"
}
]
},
"realms_plus_template_item_button@common_buttons.dark_content_button": {
"$button_content": "world_templates.world_template_content_panel",
"$is_realms_plus": true,
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "$collection_name",
"binding_collection_prefix": "$collection_prefix"
}
]
},
"world_template_item": {
"type": "stack_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"layer": 1,
"size": [ "100%", 30 ],
"orientation": "horizontal",
"controls": [
{
"world_template_item_button@world_templates.world_template_item_button": {
"size": [ "fill", "100% + 1px" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"focus_change_left": "FOCUS_OVERRIDE_STOP",
"focus_change_right": "FOCUS_OVERRIDE_STOP",
"layer": 1
}
}
]
},
"realms_plus_template_item": {
"type": "stack_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"layer": 1,
"size": [ "100%", 30 ],
"orientation": "horizontal",
"controls": [
{
"realms_plus_template_item_button@world_templates.realms_plus_template_item_button": {
"size": [ "fill", "100% + 1px" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"focus_change_left": "FOCUS_OVERRIDE_STOP",
"focus_change_right": "FOCUS_OVERRIDE_STOP",
"layer": 1
}
}
]
},
"world_template_item_grid": {
"type": "grid",
"size": [ "100%", "default" ],
"layer": 1,
"anchor_to": "top_left",
"anchor_from": "top_left",
"grid_item_template": "world_templates.world_template_item",
"grid_dimension_binding": "#world_template_item_grid_dimension",
"collection_name": "world_templates",
"$collection_name": "world_templates",
"$collection_prefix|default": "",
"$pressed_button_name": "button.menu_world_template_clicked",
"ttsSectionContainer": true,
"bindings": [
{
"binding_name": "#world_template_item_grid_dimension"
},
{
"binding_name": "#template_list_visible",
"binding_name_override": "#visible"
}
]
},
"see_more_templates_button@common_buttons.dark_text_button": {
"size": [ "100%", 30 ],
"$button_text": "selectTemplate.seeMore",
"focus_change_left": "FOCUS_OVERRIDE_STOP",
"focus_change_right": "FOCUS_OVERRIDE_STOP",
"$tts_section_header": "$section_header",
"bindings": [
{
"binding_name": "$world_template_section_visible_binding",
"binding_name_override": "#visible"
}
]
},
"suggested_see_more_button@world_templates.see_more_templates_button": {
"$pressed_button_name": "button.more_suggested_content_offers"
},
"realms_plus_see_more_button@world_templates.see_more_templates_button": {
"$pressed_button_name": "button.more_realms_plus_templates"
},
"world_template_inventory_see_more_button@world_templates.see_more_templates_button": {
"$pressed_button_name": "button.inventory"
},
"custom_world_template_see_more_button@world_templates.see_more_templates_button": {
"$pressed_button_name": "button.more_custom_templates"
},
"world_template_section_factory": {
"type": "stack_panel",
"size": [ "100%", "default" ],
"layer": 1,
"anchor_to": "top_left",
"anchor_from": "top_left",
"collection_name": "$collection_name",
"$collection_prefix|default": "",
"$world_template_description_binding_name": "#created_by_label",
"$world_template_name_binding_name": "#title_label",
"$screenshot_texture_name": "#offer_texture_name",
"$screenshot_file_system": "#offer_texture_file_system",
"ttsSectionContainer": true,
"bindings": [
{
"binding_name": "$world_template_section_visible_binding",
"binding_name_override": "#visible"
},
{
"binding_condition": "visible",
"binding_name": "$world_template_collection_binding",
"binding_name_override": "#collection_length"
}
],
"factory": {
"name": "$world_template_section_name",
"control_ids": "$world_template_section_control_ids",
"$world_template_section_factory_variables|default": [
"$collection_name",
"$collection_prefix",
"$pressed_button_name",
"$world_template_description_binding_name",
"$world_template_name_binding_name",
"$screenshot_texture_name",
"$screenshot_file_system",
"$section_header",
"$world_template_section_name",
"$world_template_section_visible_binding",
"$world_template_collection_binding"
],
"factory_variables": "$world_template_section_factory_variables"
}
},
"suggested_template_section_factory@world_templates.world_template_section_factory": {
"$collection_name": "suggested_offers_collection",
"$collection_prefix": "offer",
"$pressed_button_name": "button.select_offer",
"$world_template_section_name": "suggested_template_factory",
"$world_template_section_visible_binding": "(not #realms_info_visible)",
"$world_template_collection_binding": "#suggested_template_factory_collection",
"$world_template_section_control_ids": {
"defaultTemplateItem": "world_templates.world_template_item",
"viewMoreButton": "world_templates.suggested_see_more_button"
}
},
"realms_plus_template_section_factory@world_templates.world_template_section_factory": {
"$collection_name": "realms_plus_templates",
"$pressed_button_name": "button.menu_realms_plus_template_clicked",
"$world_template_section_name": "realms_plus_factory",
"$world_template_section_visible_binding": "#realms_plus_list_visible",
"$world_template_collection_binding": "#realms_plus_template_factory_collection",
"$world_template_section_control_ids": {
"defaultTemplateItem": "world_templates.realms_plus_template_item",
"viewMoreButton": "world_templates.realms_plus_see_more_button"
}
},
"world_template_inventory_section_factory@world_templates.world_template_section_factory": {
"$collection_name": "world_templates",
"$collection_prefix": "",
"$pressed_button_name": "button.menu_world_template_clicked",
"$world_template_section_name": "world_template_inventory_factory",
"$world_template_section_visible_binding": "#template_list_visible",
"$world_template_collection_binding": "#world_template_inventory_factory_collection",
"$world_template_section_control_ids": {
"defaultTemplateItem": "world_templates.world_template_item",
"viewMoreButton": "world_templates.world_template_inventory_see_more_button"
}
},
"custom_world_template_section_factory@world_templates.world_template_section_factory": {
"$collection_name": "custom_world_templates",
"$collection_prefix": "",
"$pressed_button_name": "button.menu_custom_world_template_clicked",
"$world_template_section_name": "custom_world_template_factory",
"$world_template_section_visible_binding": "#custom_template_list_visible",
"$world_template_collection_binding": "#custom_world_template_factory_collection",
"$world_template_section_control_ids": {
"defaultTemplateItem": "world_templates.world_template_item",
"viewMoreButton": "world_templates.custom_world_template_see_more_button"
}
},
"custom_world_template_item_grid": {
"type": "grid",
"size": [ "100%", "default" ],
"layer": 1,
"anchor_to": "top_left",
"anchor_from": "top_left",
"grid_item_template": "world_templates.world_template_item",
"grid_dimension_binding": "#custom_world_template_item_grid_dimension",
"collection_name": "custom_world_templates",
"$collection_name": "custom_world_templates",
"$collection_prefix|default": "",
"$screenshot_zip_folder_binding_type": "collection",
"$pressed_button_name": "button.menu_custom_world_template_clicked",
"ttsSectionContainer": true,
"bindings": [
{
"binding_name": "#custom_world_template_item_grid_dimension"
},
{
"binding_name": "#custom_template_list_visible",
"binding_name_override": "#visible"
}
]
},
//---------------------------------------------------------------------------
// NO OWNED ITEMS TEXT
//---------------------------------------------------------------------------
"no_owned_templates_text_label": {
"type": "label",
"color": "$dark_button_secondary_default_text_color",
"shadow": false
},
"no_owned_templates_text@world_templates.no_owned_templates_text_label": {
"text": "selectTemplate.noTemplates",
"color": "$dark_button_default_text_color"
},
"no_template_content_owned": {
"type": "image",
"texture": "textures/ui/Banners",
"size": [ "100%", "100%c + 4px" ],
"min_size": [ "100%", 30 ],
"controls": [
{
"no_template_content_owned_text_panel@world_templates.no_owned_templates_text": {
"text_alignment": "left",
"size": [ "100% - 4px", "default" ],
"offset": [ 0, 0 ],
"layer": 1
}
}
]
},
//---------------------------------------------------------------------------
// SCROLL
//---------------------------------------------------------------------------
"common_scrolling_panel@common.scrolling_panel": {
"layer": 1,
"$scrolling_pane_size": [ "100% - 1px", "100%" ],
"$scrolling_content": "$scrolling_content",
"$scroll_size": [ 5, "100% - 4px" ],
"$show_background": false,
"anchor_from": "top_right",
"anchor_to": "top_right"
},
"common_content": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left"
},
"scrolling_offsets@world_templates.common_scrolling_panel": {
"size": [ "100% - 4px", "100%" ],
"max_size": [ 280, "100%" ],
"offset": [ 2, 0 ],
"anchor_from": "top_middle",
"anchor_to": "top_middle"
},
"template_scroll_content@world_templates.common_content": {
"controls": [
{
"scrolling_panel@world_templates.scrolling_offsets": {
"layer": 1,
"$scrolling_content": "world_templates.template_scroll_panel"
}
}
]
},
"common_scroll_pane": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100% - 4px", "100%c" ],
"offset": [ 2, 0 ]
},
"template_scroll_panel@world_templates.common_scroll_pane": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"world_template_screen_content_stack_panel@world_templates.world_template_screen_content_stack_panel": {
"anchor_from": "top_left",
"anchor_to": "top_left"
}
}
]
},
//---------------------------------------------------------------------------
// SCREEN CONTENT
//---------------------------------------------------------------------------
"world_list_grids_stack": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"template_list_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"$section_header": "selectTemplate.myTemplates",
"controls": [
{
"my_templates_label_panel@world_templates.my_templates_label": {
"bindings": [
{
"binding_name": "#template_list_visible",
"binding_name_override": "#visible"
}
]
}
},
{
"world_template_inventory_section_factory@world_templates.world_template_inventory_section_factory": {}
},
{
"template_bottom_padding": {
"type": "panel",
"size": [ "100%", 4 ]
}
}
]
}
},
////
{
"store_panel": {
"type": "panel",
"size": [ "100%", "100%cm" ],
"enabled": "(not $store_disabled)",
"bindings": [
{
"binding_name": "(not #marketplace_disabled)",
"binding_name_override": "#visible"
}
],
"controls": [
{
"loading_panel@common_store.progress_loading": {
"size": [ "100%", 120 ],
"$source_control_name": "store_grids",
"$source_property_name": "(not #visible)",
"$use_sibling_scope": true
}
},
{
"store_grids": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"bindings": [
{
"binding_name": "#are_world_list_grids_ready",
"binding_name_override": "#visible"
}
],
"controls": [
{
"realms_plus_list_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"$label_text_binding_type": "global",
"$section_header": "#subscription_world_template_text",
"controls": [
{
"realms_plus_label_panel@world_templates.realms_plus_templates_label": {
"bindings": [
{
"binding_name": "#realms_plus_list_visible",
"binding_name_override": "#visible"
}
]
}
},
{ "realms_plus_template_section_factory@world_templates.realms_plus_template_section_factory": {} },
{
"realms_plus_template_bottom_padding": {
"type": "panel",
"size": [ "100%", 4 ]
}
}
],
"bindings": [
{
"binding_name": "#realms_plus_list_visible",
"binding_name_override": "#visible"
}
]
}
},
{
"suggested_content_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"$section_header": "selectTemplate.suggestedContent.title",
"bindings": [
{
"binding_name": "#suggested_content_visible",
"binding_name_override": "#visible"
}
],
"controls": [
{
"suggested_content_offers_title_label@resource_packs.suggested_content_offers_title_label": {
"size": [ "100%", "10px" ],
"$suggested_content_offers_label_text": "$section_header",
"$suggested_content_offers_binding_type": "none",
"bindings": [
{
"binding_name": "(not #realms_info_visible)",
"binding_name_override": "#visible"
}
]
}
},
{
"suggested_template_section_factory@world_templates.suggested_template_section_factory": {}
},
{
"suggested_template_bottom_padding": {
"type": "panel",
"size": [ "100%", 4 ]
}
}
]
}
}
]
}
}
]
}
},
{
"custom_template_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"$section_header": "selectTemplate.importedTemplates",
"controls": [
{
"custom_templates_label_panel@world_templates.custom_templates_label": {
"bindings": [
{
"binding_name": "#custom_template_list_visible",
"binding_name_override": "#visible"
}
]
}
},
{
"custom_world_template_section_factory@world_templates.custom_world_template_section_factory": {}
},
{
"custom_template_list_bottom_padding": {
"type": "panel",
"size": [ "100%", 4 ]
}
}
]
}
},
{
"realms_info_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"visible": "#realms_info_visible",
"controls": [
{
"padding": {
"type": "panel",
"size": [ "100%", 2 ]
}
},
{ "realms_templates_info@world_templates.realms_templates_info": {} },
{
"open_uri_button@disconnect.open_account_setting_button": {
"size": [ "100%", 26 ],
"ignored": "$is_holographic",
"visible": false,
"bindings": [
{
"binding_name": "#open_uri_button_visible",
"binding_name_override": "#visible"
}
]
}
}
]
}
}
]
},
"world_list_grid_content": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"world_list_grids_stack@world_templates.world_list_grids_stack": {}
}
]
},
"world_template_screen_content_stack_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"padding_0": {
"type": "panel",
"size": [ "100%", 2 ]
}
},
{
"crossplatform_disabled_panel@world_templates.label_background": {
"size": [ "100%", "100%c + 8px" ],
"bindings": [
{
"binding_name": "(not #generate_random_button_enabled)",
"binding_name_override": "#visible"
}
],
"controls": [
{
"disable_text": {
"type": "label",
"color": "$dark_button_default_text_color",
"size": [ "100% - 8px", "default" ],
"layer": 1,
"shadow": false,
"text": "crossPlatformToggle.crossPlatformDisabled.realms"
}
}
]
}
},
{
"crossplatform_disable_spacer": {
"type": "panel",
"size": [ "100%", 5 ],
"bindings": [
{
"binding_name": "(not #generate_random_button_enabled)",
"binding_name_override": "#visible"
}
]
}
},
{ "generate_random_panel@world_templates.generate_random_button": {} },
{
"generate_random_button_bottom_padding": {
"type": "panel",
"size": [ "100%", 2 ]
}
},
{ "world_list_grid_content@world_templates.world_list_grid_content": {} }
]
},
"open_account_setting_button@common_buttons.hyperlink_button": {
"$button_text": "permissions.open.account.help.button",
"property_bag": {
"#hyperlink": "https://aka.ms/MCMultiplayerHelp"
}
},
//--------------------------------------------------------------------------------
// Screen
//--------------------------------------------------------------------------------
"world_templates_screen@common.base_screen": {
"$screen_header_title_visible": false,
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.menu_select",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
}
],
"$screen_content": "world_templates.world_templates_picker_content",
"$header_safezone_control": "common_store.store_top_bar_filler",
"$header_bar_control": "common_store.store_top_bar",
"$is_full_screen_layout": true
},
"world_templates_picker_content": {
"type": "panel",
"size": [ "100%", "100%" ],
"controls": [
{
"background@common.fullscreen_header": {
"$back_button_has_title": true,
"$button_text": "$screen_title",
"$child_control": "world_templates.template_scroll_content",
"$show_close_button": true
}
}
]
}
}