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/confirm_delete_account_screen.json
Mike Ammerlaan a3b394c507 1.19.30
Initial layout
2022-09-23 06:24:26 -07:00

330 lines
9.1 KiB
JSON

/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "confirm_delete_account",
"horizontal_divider@common.section_divider": {
"$divider_size": [ "100%", 1 ]
},
"default_animation": {
"anim_type": "flip_book",
"initial_uv": [ 0, 0 ],
"frame_count": 2,
"fps": 1,
"reversible": false
},
"image_panel": {
"type": "panel",
"size": [ "133.4375%y" , 80 ],
"controls": [
{
"image": {
"type": "image",
"texture": "textures/ui/tnt_animated",
"size": [ "100%", "100%" ],
"uv_size": [ 427, 320 ],
"uv": "@confirm_delete_account.default_animation",
"disable_anim_fast_forward": true,
"layer": 15
}
}
]
},
"header_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100% - 8px", "100%cm" ],
"controls": [
{
"image_panel@confirm_delete_account.image_panel": {}
},
{
"padding": {
"type": "panel",
"size": [ 6, 1 ]
}
},
{
"text_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "fill", "100%c" ],
"controls": [
{
"header_text": {
"type": "label",
"text": "#unlink_warning_text",
"font_type": "smooth",
"font_scale_factor": 1.2,
"color": "$body_text_color",
"size": [ "100%", "default" ],
"bindings": [
{
"binding_name": "#unlink_warning_text"
}
]
}
},
{
"padding_2": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"header_text_2": {
"type": "label",
"text": "options.delete_account.confirm.warning.2",
"font_type": "smooth",
"font_scale_factor": 1.2,
"color": "$body_text_color",
"size": [ "100%", "default" ]
}
}
]
}
}
]
},
"dialog_content": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100% - 4px", "100% - 4px" ],
"controls": [
{
"body_content@confirm_delete_account.scrolling_panel": {
"size": [ "100%", "fill" ]
}
},
{
"padding": {
"type": "panel",
"size": [ "100%", 2 ]
}
},
{
"button_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", 30 ],
"controls": [
{
"confirm_delete_account_button@common_buttons.light_text_button": {
"$pressed_button_name": "button.cancel",
"$button_text": "gui.cancel",
"size": [ "50% - 1px", 30 ],
"$button_text_max_size": [ "100%", 20 ]
}
},
{
"padding": {
"type": "panel",
"size": [ 2, "100%" ]
}
},
{
"cancel_delete_account_button@common_buttons.light_text_button": {
"$pressed_button_name": "button.unlink",
"$button_text": "options.delete_account.confirm.button",
"$default_button_texture": "textures/ui/button_red",
"$hover_button_texture": "textures/ui/button_red",
"$pressed_button_texture": "textures/ui/button_red_pressed",
"$default_text_color": "$store_white_text_color",
"$hover_text_color": "$store_white_text_color",
"$pressed_text_color": "$store_white_text_color",
"size": [ "50% - 1px", 30 ],
"$button_text_max_size": [ "100%", 20 ],
"bindings": [
{
"binding_name": "#unlink_consequences_acknowledged",
"binding_name_override": "#enabled"
}
]
}
}
]
}
}
]
},
"confirm_checkbox": {
"type": "stack_panel",
"size": [ "100%", 25 ],
"orientation": "horizontal",
"controls": [
{
"check_box_wrapper": {
"type": "panel",
"size": [ 21, "100%" ],
"controls": [
{
"check_box@common.checkbox": {
"size": [ 15, 15 ],
"$toggle_tts_header": "$checkbox_text"
}
}
]
}
},
{
"padding": {
"type": "panel",
"size": [ 4, "100%" ]
}
},
{
"label_wrapper": {
"type": "panel",
"size": [ "fill", "100%" ],
"controls": [
{
"label": {
"type": "label",
"size": [ "100%", "default" ],
"max_size": [ "100%", "100%" ],
"font_type": "smooth",
"font_scale_factor": 1.2,
"text": "$checkbox_text",
"color": "$body_text_color"
}
}
]
}
}
]
},
"scrolling_panel@common.scrolling_panel": {
"$show_background": false,
"$scroll_box_visible_touch": true,
"size": [ "100%", "100%" ],
"$scrolling_content": "confirm_delete_account.description_label_panel",
"$scroll_size": [ 5, "100%" ],
"$scrolling_pane_size": [ "100%", "100%" ],
"$scrolling_pane_offset": [ 0, 0 ],
"$scroll_bar_right_padding_size": [ 0, 0 ]
},
"description_label_panel": {
"type": "stack_panel",
"size": [ "100%", "100%c" ],
"layer": 1,
"controls": [
{
"header_label_wrapper@common.tts_label_focus_wrapper": {
"$tts_label_panel": "confirm_delete_account.header_panel",
"$focus_border_size": [ "100%", "100%sm + 2px" ]
}
},
{
"padding": {
"type": "panel",
"size": [ "100%", 2 ]
}
},
{
"divider_0@confirm_delete_account.horizontal_divider": {}
},
{
"confirm_0@confirm_delete_account.confirm_checkbox": {
"$checkbox_text": "options.delete_account.confirm.checkbox1",
"$toggle_name": "confirm_0",
"$toggle_state_binding_name": "#confirm_0",
"$toggle_enabled_binding_name": "#confirm_0_enabled"
}
},
{
"divider_1@confirm_delete_account.horizontal_divider": {}
},
{
"confirm_1@confirm_delete_account.confirm_checkbox": {
"$checkbox_text": "options.delete_account.confirm.checkbox2",
"$toggle_name": "confirm_1",
"$toggle_state_binding_name": "#confirm_1",
"$toggle_enabled_binding_name": "#confirm_1_enabled"
}
},
{
"divider_2@confirm_delete_account.horizontal_divider": {
"ignored": "(not $is_realms_enabled)"
}
},
{
"confirm_2@confirm_delete_account.confirm_checkbox": {
"ignored": "(not $is_realms_enabled)",
"$checkbox_text": "options.delete_account.confirm.checkbox3",
"$toggle_name": "confirm_2",
"$toggle_state_binding_name": "#confirm_2",
"$toggle_enabled_binding_name": "#confirm_2_enabled"
}
},
{
"divider_3@confirm_delete_account.horizontal_divider": {}
},
{
"confirm_3@confirm_delete_account.confirm_checkbox": {
"$checkbox_text": "options.delete_account.confirm.checkbox4",
"$toggle_name": "confirm_3",
"$toggle_state_binding_name": "#confirm_3",
"$toggle_enabled_binding_name": "#confirm_3_enabled"
}
}
]
},
// -----------------------------------------------
//
// screen
//
// -----------------------------------------------
"confirm_delete_account_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.cancel",
"mapping_type": "global"
}
],
"$screen_content": "confirm_delete_account.confirm_delete_account_screen_content",
"force_render_below": true,
"$screen_bg_content": "confirm_delete_account.background"
},
"confirm_delete_account_screen_content": {
"type": "panel",
"controls": [
{
"root_panel": {
"type": "panel",
"controls": [
{ "dialog@confirm_delete_account.screen_dialog": { "layer": 1 } }
]
}
}
]
},
"screen_dialog@common_dialogs.main_panel_no_buttons": {
"$text_name": "options.delete_account.confirm.title",
"$child_control": "confirm_delete_account.dialog_content",
"$show_close_button": false,
"size": [ 350, "100% - 4px" ]
},
"background@common.screen_background": {
"alpha": 0.65,
"layer": 1
}
}