mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2024-11-23 12:26:14 +00:00
501 lines
14 KiB
JSON
501 lines
14 KiB
JSON
{
|
|
"namespace": "gathering_info",
|
|
|
|
"gathering_info_screen@common.base_screen": {
|
|
"button_mappings": [
|
|
{
|
|
"from_button_id": "button.menu_cancel",
|
|
"to_button_id": "button.menu_exit",
|
|
"mapping_type": "global"
|
|
},
|
|
{
|
|
"from_button_id": "button.menu_exit",
|
|
"to_button_id": "button.menu_exit",
|
|
"mapping_type": "global"
|
|
}
|
|
],
|
|
"variables": [
|
|
{
|
|
"requires": "($auto_connect)",
|
|
"$screen_animations": [
|
|
"@common.screen_entrance_animation_push_fade",
|
|
"@common.screen_entrance_animation_pop_fade"
|
|
]
|
|
}
|
|
],
|
|
|
|
"$screen_content": "gathering_info.info_content",
|
|
"$is_full_screen_layout": true
|
|
},
|
|
|
|
"info_content": {
|
|
"type": "panel",
|
|
"controls": [
|
|
{
|
|
"header@common.fullscreen_header": {
|
|
"$back_button_has_title": true,
|
|
"$button_text": "#header_text",
|
|
"$button_text_binding_type": "global"
|
|
}
|
|
},
|
|
{
|
|
"left_panel": {
|
|
"type": "panel",
|
|
"size": [ "40%", "100% - 22px" ],
|
|
"offset": [ 0, 22 ],
|
|
"anchor_to": "top_left",
|
|
"anchor_from": "top_left",
|
|
"controls": [
|
|
{
|
|
"stack": {
|
|
"type": "stack_panel",
|
|
"orientation": "vertical",
|
|
"size": [ "100% - 18px", "100%" ],
|
|
"controls": [
|
|
{
|
|
"event_image": {
|
|
"type": "image",
|
|
"size": [ "100%", "77%x" ],
|
|
"max_size": [ "100%", "100% - 119px"],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#event_image",
|
|
"binding_name_override": "#texture"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"pad_2@common.empty_panel": {
|
|
"size": [ "100%", 8 ]
|
|
}
|
|
},
|
|
{
|
|
"button_and_caption": {
|
|
"type": "panel",
|
|
"size": [ "100%", 28 ],
|
|
"controls": [
|
|
{
|
|
"caption@start.gathering_caption": {
|
|
"size": [ 100, "default" ],
|
|
"anchor_to": "bottom_left",
|
|
"anchor_from": "bottom_left",
|
|
"offset": [ 8, -20 ],
|
|
"layer": 20
|
|
}
|
|
},
|
|
{
|
|
"action_button@common_buttons.light_text_button": {
|
|
"size": [ "100%", 28 ],
|
|
"$pressed_button_name": "button.action",
|
|
"$button_text": "#action_button_text",
|
|
"$button_text_binding_type": "global",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#action_button_enabled",
|
|
"binding_name_override": "#enabled"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"pad_3@common.empty_panel": {
|
|
"size": [ "100%", 4 ]
|
|
}
|
|
},
|
|
{
|
|
"info_button@common_buttons.light_text_button": {
|
|
"size": [ "100%", 28 ],
|
|
"$pressed_button_name": "button.info",
|
|
"$button_text": "#info_button_text",
|
|
"$button_text_binding_type": "global"
|
|
}
|
|
},
|
|
{
|
|
"pad_4@common.empty_panel": {
|
|
"size": [ "100%", 10 ]
|
|
}
|
|
},
|
|
{
|
|
"gamepad_helper_panel": {
|
|
"type": "panel",
|
|
"size": [ "100%", 26 ],
|
|
"controls": [
|
|
{
|
|
"gamepad_helpers@gathering_info.gamepad_helpers": {}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"pad_fill@common.empty_panel": {
|
|
"size": [ "100%", "fill" ]
|
|
}
|
|
},
|
|
{
|
|
"gathering_id_label": {
|
|
"type": "label",
|
|
"text": "#gathering_id_label",
|
|
"size": [ "100%", "20px" ],
|
|
"color": "$alert_label_background_color",
|
|
"text_alignment": "center",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#gathering_id_label",
|
|
"binding_condition": "once"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"pad_5@common.empty_panel": {
|
|
"size": [ "100%", "5px" ]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"section_divider@gathering_info.section_divider": {}
|
|
},
|
|
{
|
|
"right_panel": {
|
|
"type": "panel",
|
|
"size": [ "60% - 4px", "100% - 23px" ],
|
|
"offset": [ 0, 23 ],
|
|
"anchor_to": "top_right",
|
|
"anchor_from": "top_right",
|
|
"controls": [
|
|
{
|
|
"scroll@common.scrolling_panel": {
|
|
"$scrolling_content": "gathering_info.right_panel_content",
|
|
"$scrolling_content_anchor_from": "top_middle",
|
|
"$scrolling_content_anchor_to": "top_middle",
|
|
"$show_background": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"right_panel_content": {
|
|
"type": "stack_panel",
|
|
"size": [ "100% - 24px", "100%c" ],
|
|
"orientation": "vertical",
|
|
"use_child_anchors": true,
|
|
"controls": [
|
|
{
|
|
"pad": {
|
|
"type": "panel",
|
|
"size": [ "100%", 15 ]
|
|
}
|
|
},
|
|
{
|
|
"sign_in_panel": {
|
|
"type": "stack_panel",
|
|
"orientation": "horizontal",
|
|
"size": [ "100%", "100%cm" ],
|
|
"controls": [
|
|
{
|
|
"sign_in_image": {
|
|
"type": "image",
|
|
"texture": "textures/ui/promo_chicken",
|
|
"size": [ 37, 37 ]
|
|
}
|
|
},
|
|
{
|
|
"horizontal_pad": {
|
|
"type": "panel",
|
|
"size": [ 10, 0 ]
|
|
}
|
|
},
|
|
{
|
|
"text_stack": {
|
|
"type": "stack_panel",
|
|
"orientation": "vertical",
|
|
"size": [ "fill", "100%c" ],
|
|
"controls": [
|
|
{
|
|
"sign_in_title@gathering_info.tts_label_title": {
|
|
"$tts_label_panel": "gathering_info.sign_in_title"
|
|
}
|
|
},
|
|
{
|
|
"text_pad": {
|
|
"type": "panel",
|
|
"size": [ "100%", 4 ]
|
|
}
|
|
},
|
|
{
|
|
"sign_in_body@gathering_info.tts_label": {
|
|
"$tts_label_panel": "gathering_info.sign_in_body"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#sign_in_visible",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"sign_in_pad@common.empty_panel": {
|
|
"size": [ "100%", 20 ],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#sign_in_visible",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"qr_panel": {
|
|
"type": "stack_panel",
|
|
"orientation": "horizontal",
|
|
"size": [ "100%", "100%cm" ],
|
|
"visible": false,
|
|
"controls": [
|
|
{
|
|
"qr_background": {
|
|
"type": "image",
|
|
"texture": "textures/ui/white_background",
|
|
"size": [ 60, 60 ],
|
|
"controls": [
|
|
{
|
|
"qr_image": {
|
|
"type": "image",
|
|
"texture": "#qr_texture",
|
|
"texture_file_system": "RawPath",
|
|
"size": [ 56, 56 ],
|
|
"layer": 2,
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#qr_texture",
|
|
"binding_name_override": "#texture",
|
|
"binding_condition": "visibility_changed"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"horizontal_pad": {
|
|
"type": "panel",
|
|
"size": [ 10, 0 ]
|
|
}
|
|
},
|
|
{
|
|
"text_stack": {
|
|
"type": "stack_panel",
|
|
"orientation": "vertical",
|
|
"size": [ "fill", "100%c" ],
|
|
"controls": [
|
|
{
|
|
"qr_title@gathering_info.tts_label_title": {
|
|
"$tts_label_panel": "gathering_info.qr_title"
|
|
}
|
|
},
|
|
{
|
|
"text_pad": {
|
|
"type": "panel",
|
|
"size": [ "100%", 4 ]
|
|
}
|
|
},
|
|
{
|
|
"qr_body@gathering_info.tts_label": {
|
|
"$tts_label_panel": "gathering_info.qr_body"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#qr_panel_visible",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"qr_pad@common.empty_panel": {
|
|
"size": [ "100%", 20 ],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#qr_panel_visible",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"title@gathering_info.tts_label_title": {
|
|
"$tts_label_panel": "gathering_info.title_panel"
|
|
}
|
|
},
|
|
{
|
|
"pad_1@common.empty_panel": {
|
|
"size": [ "100%", 4 ]
|
|
}
|
|
},
|
|
{
|
|
"body@gathering_info.tts_label": {
|
|
"$tts_label_panel": "gathering_info.body_panel"
|
|
}
|
|
},
|
|
{
|
|
"pad_2@common.empty_panel": {
|
|
"size": [ "100%", 20 ]
|
|
}
|
|
},
|
|
{
|
|
"body_image": {
|
|
"type": "image",
|
|
"texture": "#body_image",
|
|
"size": [ "100%", "77%x" ],
|
|
"anchor_to": "top_middle",
|
|
"anchor_from": "top_middle",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#body_image",
|
|
"binding_name_override": "#texture"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"footer": {
|
|
"type": "input_panel",
|
|
"focus_enabled": true,
|
|
"tts_ignore_count": true,
|
|
"size": [ "100%", "1px" ]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"tts_label@common.tts_label_focus_wrapper": {
|
|
"$focus_border_visible_binding_type": "none",
|
|
"$focus_border_offset": [ -2, -1 ],
|
|
"$focus_border_size": [ "100%", "100%sm + 3px" ]
|
|
},
|
|
|
|
"tts_label_title@common.tts_label_focus_wrapper": {
|
|
"$focus_border_visible_binding_type": "none",
|
|
"$focus_border_offset": [ -2, 1 ],
|
|
"$focus_border_size": [ "100%", "100%sm + 2px" ]
|
|
},
|
|
|
|
"sign_in_title": {
|
|
"type": "label",
|
|
"text": "gathering.info.signIn.title",
|
|
"font_type": "MinecraftTen",
|
|
"color": "$body_text_color",
|
|
"size": [ "100%", "default" ]
|
|
},
|
|
|
|
"sign_in_body": {
|
|
"type": "label",
|
|
"text": "gathering.info.signIn.body",
|
|
"size": [ "100%", "default" ],
|
|
"color": "$body_text_color"
|
|
},
|
|
|
|
"qr_title": {
|
|
"type": "label",
|
|
"text": "#qr_title_text",
|
|
"font_type": "MinecraftTen",
|
|
"color": "$body_text_color",
|
|
"size": [ "100%", "default" ],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#qr_title_text",
|
|
"binding_condition": "visibility_changed"
|
|
}
|
|
]
|
|
},
|
|
|
|
"qr_body": {
|
|
"type": "label",
|
|
"text": "#qr_body_text",
|
|
"size": [ "100%", "default" ],
|
|
"color": "$body_text_color",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#qr_body_text",
|
|
"binding_condition": "visibility_changed"
|
|
}
|
|
]
|
|
},
|
|
|
|
"title_panel": {
|
|
"type": "label",
|
|
"text": "#title_text",
|
|
"size": [ "100%", "default" ],
|
|
"font_type": "MinecraftTen",
|
|
"anchor_to": "top_left",
|
|
"anchor_from": "top_left",
|
|
"color": "$body_text_color",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#title_text"
|
|
}
|
|
]
|
|
},
|
|
|
|
"body_panel": {
|
|
"type": "label",
|
|
"text": "#body_text",
|
|
"size": [ "100%", "default" ],
|
|
"anchor_to": "top_left",
|
|
"anchor_from": "top_left",
|
|
"color": "$body_text_color",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#body_text"
|
|
}
|
|
]
|
|
},
|
|
|
|
"section_divider": {
|
|
"type": "image",
|
|
"offset": [ "40%", "20px" ],
|
|
"size": [ "4px", "100% - 18px" ],
|
|
"anchor_from": "top_left",
|
|
"anchor_to": "top_left",
|
|
"layer": 3,
|
|
"texture": "textures/ui/HowToPlayDivider"
|
|
},
|
|
|
|
"gamepad_helpers": {
|
|
"type": "stack_panel",
|
|
"orientation": "horizontal",
|
|
"size": [ "100%c", 26 ],
|
|
"controls": [
|
|
{
|
|
"gamepad_helper_a@common.gamepad_helper_a": {}
|
|
},
|
|
{
|
|
"gamepad_helper_b@common.gamepad_helper_b": {}
|
|
}
|
|
]
|
|
}
|
|
}
|