1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-23 12:26:14 +00:00
bedrock-samples/resource_pack/ui/world_recovery_screen.json
Mike Ammerlaan a3b394c507 1.19.30
Initial layout
2022-09-23 06:24:26 -07:00

90 lines
2.5 KiB
JSON

{
"namespace": "world_recovery",
"world_recovery_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
}
],
"$screen_animations": [
"@common.screen_exit_animation_push_fade",
"@common.screen_exit_animation_pop_fade",
"@common.screen_entrance_animation_push_fade",
"@common.screen_entrance_animation_pop_fade"
],
"$background_animations": [
"@common.screen_exit_animation_push_fade",
"@common.screen_exit_animation_pop_fade",
"@common.screen_entrance_animation_push_fade",
"@common.screen_entrance_animation_pop_fade"
],
"force_render_below": true,
"$screen_content": "world_recovery.world_recovery_screen_content",
"$screen_background_control": "world_recovery.background"
},
"world_recovery_screen_content": {
"type": "panel",
"controls": [
{
"dialog@common_dialogs.main_panel_one_button": {
"size": [ 260, "100% - 70px" ],
"$button_panel": "world_recovery.button_panel",
"$text_name": "world_recovery.title",
"$child_control": "world_recovery.description_panel",
"layer": 3
}
}
]
},
"description_panel@common.tts_label_focus_wrapper": {
"size": [ "100%-1px", "100%-1px" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"$tts_label_panel": "world_recovery.scrolling_panel",
"$focus_border_anchor": "top_middle"
},
"scrolling_panel@common.scrolling_panel": {
"size": [ "100%", "100%" ],
"$scrolling_content": "world_recovery.description_label",
"$scrolling_pane_size": [ "100%-2px", "100%" ],
"$scrolling_pane_offset": [ 2, 0 ],
"$scroll_size": [ 4, "100%-4px" ],
"$show_background": false,
"$always_handle_scrolling": true
},
"description_label": {
"type": "label",
"text": "#recovery_text",
"size": [ "100%", "default" ],
"color": "$body_text_color",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"bindings": [
{
"binding_name": "#recovery_text"
}
]
},
"button_panel@common_buttons.light_text_button": {
"size": [ "100% - 14px", 30 ],
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"$pressed_button_name": "button.select_worlds",
"$button_text": "world_recovery.select_worlds",
"$button_text_binding_type": "none"
},
"background@common.screen_background": {
"alpha": 0.65,
"layer": 1
}
}