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

317 lines
9.4 KiB
JSON

{
"namespace": "world_conversion_complete",
// Common controls
"background@common.screen_background": {
"alpha": 0.65,
"layer": 1
},
"prompt_text": {
"type": "panel",
"controls": [
{
"message": {
"type": "label",
"color": "$body_text_color",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"size": [ "90%", "100%" ],
"text_alignment": "center",
"text": "$text"
}
}
]
},
"converted_world_preview_name@play.world_list_text": {
"text": "#converted_world_preview_name",
"color": "$text_color",
"bindings": [
{
"binding_name": "#converted_world_preview_name"
}
]
},
"converted_world_preview_date@play.world_list_text": {
"text": "#converted_world_preview_date",
"color": "$secondary_text_color",
"bindings": [
{
"binding_name": "#converted_world_preview_date_visible",
"binding_name_override": "#visible"
},
{
"binding_name": "#converted_world_preview_date"
}
]
},
"converted_world_preview_game_mode@play.world_list_text": {
"text": "#converted_world_preview_game_mode",
"color": "$secondary_text_color",
"bindings": [
{
"binding_name": "#converted_world_preview_game_mode"
}
]
},
"converted_world_preview_filesize@play.world_list_text": {
"text": "#converted_world_preview_file_size",
"color": "$secondary_text_color",
"bindings": [
{
"binding_name": "#converted_world_preview_file_size"
}
]
},
"converted_world_preview_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",
"controls": [
{
"converted_world_name@world_conversion_complete.converted_world_preview_name": {
"size": [ "fill", 10 ],
"layer": 7
}
},
{
"converted_world_date@world_conversion_complete.converted_world_preview_date": {
"size": [ "default", 10 ],
"layer": 7
}
}
]
}
},
{
"bottom_side": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "50%" ],
"controls": [
{
"converted_world_game_mode@world_conversion_complete.converted_world_preview_game_mode": {
"size": [ "fill", 10 ],
"layer": 7
}
},
{
"converted_world_filesize@world_conversion_complete.converted_world_preview_filesize": {
"size": [ "default", 10 ],
"layer": 7
}
}
]
}
}
]
}
}
]
},
"converted_world_preview_panel": {
"type": "image",
"size": [ "100%", "28px" ],
"texture": "textures/ui/Banners",
"controls": [
{
"world_preview_content": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100% - 4px", "100% - 4px" ],
"controls": [
{
"converted_world_screenshot@play.world_screenshot_base": {
"$border_texture": "textures/ui/default_indent",
"controls": [
{
"image_content": {
"type": "panel",
"size": [ "173.91%y", "100% - 2px" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"offset": [ 1, 1 ],
"controls": [
{
"picture": {
"type": "image",
"$fit_to_width": true,
"force_texture_reload": true,
"fill": true,
"layer": 5,
"bindings": [
{
"binding_name": "#converted_world_preview_image",
"binding_name_override": "#texture"
},
{
"binding_name": "#converted_world_preview_texture_source",
"binding_name_override": "#texture_file_system"
}
]
}
}
]
}
}
]
}
},
{
"converted_world_text_panel@world_conversion_complete.converted_world_preview_text_panel": {
"size": [ "fill", "100%" ],
"layer": 4,
"$text_color": "$dark_button_default_text_color",
"$secondary_text_color": "$dark_button_secondary_default_text_color"
}
}
]
}
}
]
},
// Main screen content
"main_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%" ],
"controls": [
{
"padding_0": {
"type": "panel",
"size": [ "100%", 15 ]
}
},
{
"prompt_1@world_conversion_complete.prompt_text": {
"$text": "worldConversionComplete.load_prompt",
"size": [ "100%", 30 ]
}
},
{
"world_entry_container": {
"type": "panel",
"size": [ "100%", 35 ],
"controls": [
{
"world_entry_sizer": {
"type": "panel",
"size": [ "100% - 6px", "100%c" ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"controls": [
{
"world_entry@world_conversion_complete.converted_world_preview_panel": {}
}
]
}
}
]
}
},
{
"buttons_panel_sizer": {
"type": "panel",
"size": [ "100%", "fill" ],
"controls": [
{
"buttons_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100% - 4px", 30 ],
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"offset": [ 0, -2 ],
"controls": [
{
"load_game_button@common_buttons.light_text_button": {
"size": [ "50% - 1px", "100%" ],
"$pressed_button_name": "button.load_game",
"$button_text": "gui.yes"
}
},
{
"padding": {
"type": "panel",
"size": [ 2, "100%" ]
}
},
{
"return_button@common_buttons.light_text_button": {
"size": [ "50% - 1px", "100%" ],
"$pressed_button_name": "button.return",
"$button_text": "gui.no"
}
}
]
}
}
]
}
}
]
},
"world_conversion_complete_screen_content": {
"type": "panel",
"controls": [
{
"dialog@common_dialogs.main_panel_no_buttons": {
"$title_panel": "common_dialogs.standard_title_label",
"size": "$world_conversion_complete_screen_size",
"$text_name": "worldConversionComplete.title",
"$child_control": "world_conversion_complete.main_panel",
"layer": 2
}
}
]
},
// Main screen
"world_conversion_complete_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_conversion_complete.world_conversion_complete_screen_content",
"$screen_background_control": "world_conversion_complete.background"
}
}