mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2024-11-23 12:26:14 +00:00
320 lines
8.1 KiB
JSON
320 lines
8.1 KiB
JSON
{
|
|
"namespace": "disconnect",
|
|
|
|
"disconnect_screen_text": {
|
|
"type": "label",
|
|
"color": "$loading_text_color",
|
|
"size": [ "default", 50 ],
|
|
"max_size": [ "100% - 20px", 50 ],
|
|
"anchor_to": "center",
|
|
"anchor_from": "center",
|
|
"layer": 2,
|
|
"shadow": false
|
|
},
|
|
|
|
"disconnect_text@disconnect.disconnect_screen_text": {
|
|
"offset": [ 0, -40 ],
|
|
"text": "#disconnect_text",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#disconnect_text"
|
|
},
|
|
{
|
|
"binding_name": "#tts_dialog_body",
|
|
"binding_condition": "once"
|
|
}
|
|
],
|
|
"property_bag": {
|
|
"#tts_dialog_body": "#disconnect_text"
|
|
}
|
|
},
|
|
|
|
"disconnect_title_text@disconnect.disconnect_screen_text": {
|
|
"size": [ "default", 40 ],
|
|
"max_size": [ "100% - 20px", 40 ],
|
|
"offset": [ 0, -10 ],
|
|
"text": "#title_text",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#title_text"
|
|
},
|
|
{
|
|
"binding_name": "#tts_dialog_title",
|
|
"binding_condition": "once"
|
|
}
|
|
],
|
|
"property_bag": {
|
|
"#tts_dialog_title": "#title_text"
|
|
}
|
|
},
|
|
|
|
"title_panel": {
|
|
"type": "panel",
|
|
"size": [ "100%", "100%" ],
|
|
"anchor_from": "center",
|
|
"anchor_to": "center",
|
|
"controls": [
|
|
{ "disconnect_title_text@disconnect.disconnect_title_text": {} },
|
|
{ "disconnect_text@disconnect.disconnect_text": {} }
|
|
]
|
|
},
|
|
|
|
"menu_button_template@common_buttons.light_text_button": {
|
|
"size": [ 128, 26 ],
|
|
"anchor_to": "top_middle",
|
|
"anchor_from": "top_middle"
|
|
},
|
|
|
|
"continue_button@disconnect.menu_button_template": {
|
|
"$pressed_button_name": "button.menu_continue",
|
|
"$button_text": "gui.continue"
|
|
},
|
|
|
|
"check_store_button@disconnect.menu_button_template": {
|
|
"$pressed_button_name": "button.menu_check_store",
|
|
"$button_text": "gui.store",
|
|
"ignored": "($is_holographic or $nx_os or $is_ps4)"
|
|
},
|
|
|
|
"exit_button@disconnect.menu_button_template": {
|
|
"$pressed_button_name": "button.menu_leave_screen",
|
|
"$button_text": "gui.back"
|
|
},
|
|
|
|
"ok_button@disconnect.menu_button_template": {
|
|
"$pressed_button_name": "button.menu_leave_screen",
|
|
"$button_text": "gui.ok"
|
|
},
|
|
|
|
"open_uri_button@disconnect.open_account_setting_button": {
|
|
"size": [ 200, 26 ]
|
|
},
|
|
|
|
"cancel_button@disconnect.menu_button_template": {
|
|
"size": [ 256, "100%" ],
|
|
"$pressed_button_name": "button.cancel_join_realm",
|
|
"$button_text": "gui.cancel"
|
|
},
|
|
|
|
"button_panel": {
|
|
"type": "stack_panel",
|
|
"orientation": "vertical",
|
|
"anchor_from": "bottom_middle",
|
|
"anchor_to": "bottom_middle",
|
|
"offset": [ 0, "-20%" ],
|
|
"controls": [
|
|
{
|
|
"open_uri_button_panel": {
|
|
"type": "panel",
|
|
"size": [ "100%", 30 ],
|
|
"ignored": "$is_holographic",
|
|
"visible": false,
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#open_uri_button_visible",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
],
|
|
"controls": [
|
|
{ "open_uri_button@disconnect.open_uri_button": {} }
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"open_button_panel": {
|
|
"type": "panel",
|
|
"size": [ "100%", 26 ],
|
|
"controls": [
|
|
{ "ok_button@disconnect.ok_button": {} }
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"gamepad_helpers": {
|
|
"type": "panel",
|
|
"size": [ 100, 10 ],
|
|
"offset": [ 0, "45%" ],
|
|
"controls": [
|
|
{
|
|
"gamepad_helper_a@common.gamepad_helper_a": {
|
|
"anchor_from": "center",
|
|
"anchor_to": "center"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"disconnect_screen@common.base_screen": {
|
|
"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_leave_screen",
|
|
"mapping_type": "global"
|
|
}
|
|
],
|
|
"$screen_content": "disconnect.disconnect_screen_content",
|
|
"$button_layout": "@disconnect.button_panel",
|
|
"$screen_bg_content": "common.dirt_background"
|
|
},
|
|
|
|
"disconnect_screen_content": {
|
|
"type": "panel",
|
|
"controls": [
|
|
{ "title_panel@disconnect.title_panel": {} },
|
|
{ "gamepad_helpers@disconnect.gamepad_helpers": {} },
|
|
{ "$button_layout": {} }
|
|
]
|
|
},
|
|
|
|
"spacing_gap": {
|
|
"type": "panel",
|
|
"size": [ 5, 0 ]
|
|
},
|
|
|
|
// Realms Disconnect Screen
|
|
|
|
"realms_disconnect_screen@disconnect.disconnect_screen": {
|
|
"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_leave_screen",
|
|
"mapping_type": "global"
|
|
}
|
|
],
|
|
"$button_layout": "@disconnect.realms_disconnect_button_panel",
|
|
"$screen_bg_content": "common.portal_background"
|
|
},
|
|
|
|
"realms_disconnect_button_panel": {
|
|
"type": "stack_panel",
|
|
"orientation": "vertical",
|
|
"offset": [ 0, 30 ],
|
|
"size": [ "100%", "100%c" ],
|
|
"controls": [
|
|
{
|
|
"open_uri_button_panel": {
|
|
"type": "panel",
|
|
"size": [ "100%", 30 ],
|
|
"ignored": "$is_holographic",
|
|
"visible": false,
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#open_uri_button_visible",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
],
|
|
"controls": [
|
|
{ "open_uri_button@disconnect.open_uri_button": {} }
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"realm_buttons_panel": {
|
|
"type": "panel",
|
|
"size": [ "100%", 30 ],
|
|
"controls": [
|
|
{
|
|
"realm_buttons": {
|
|
"type": "stack_panel",
|
|
"orientation": "horizontal",
|
|
"controls": [
|
|
{ "check_store_button@disconnect.check_store_button": {} },
|
|
{
|
|
"spacing_gap@disconnect.spacing_gap": {
|
|
"ignored": "$is_holographic"
|
|
}
|
|
},
|
|
{ "exit_button@disconnect.exit_button": {} }
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"realms_warning_screen@disconnect.disconnect_screen": {
|
|
"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_leave_screen",
|
|
"mapping_type": "global"
|
|
}
|
|
],
|
|
"$button_layout": "@disconnect.realms_warning_button_panel",
|
|
"$screen_bg_content": "common.portal_background"
|
|
},
|
|
|
|
"realms_warning_button_panel": {
|
|
"type": "stack_panel",
|
|
"orientation": "vertical",
|
|
"offset": [ 0, 30 ],
|
|
"size": [ "100%", "100%c" ],
|
|
"controls": [
|
|
{
|
|
"continue_button_panel": {
|
|
"type": "panel",
|
|
"size": [ "100%", 26 ],
|
|
"controls": [
|
|
{
|
|
"continue_button_stack_panel": {
|
|
"type": "stack_panel",
|
|
"orientation": "horizontal",
|
|
"controls": [
|
|
{ "check_store_button@disconnect.check_store_button": {} },
|
|
{
|
|
"spacing_gap@disconnect.spacing_gap": {
|
|
"ignored": "$is_holographic"
|
|
}
|
|
},
|
|
{ "continue_button@disconnect.continue_button": {} }
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"realms_warning_button_gap@disconnect.spacing_gap": {
|
|
"type": "panel",
|
|
"size": [ "100%", 5 ]
|
|
}
|
|
},
|
|
{
|
|
"cancel_button_panel": {
|
|
"type": "panel",
|
|
"size": [ "100%", 26 ],
|
|
"controls": [
|
|
{ "cancel_button@disconnect.cancel_button": {} }
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"open_account_setting_button@common_buttons.hyperlink_button": {
|
|
"$button_text": "permissions.open.account.help.button",
|
|
"property_bag": {
|
|
"#hyperlink": "https://aka.ms/MCMultiplayerHelp"
|
|
}
|
|
}
|
|
}
|