mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2024-11-27 04:38:56 +00:00
a3b394c507
Initial layout
185 lines
4.5 KiB
JSON
185 lines
4.5 KiB
JSON
{
|
|
"namespace": "realms_plus_ended",
|
|
|
|
//---------------------------------------------------------------------------
|
|
// SCREEN
|
|
//---------------------------------------------------------------------------
|
|
|
|
"subscription_ended_screen@common.base_screen": {
|
|
"button_mappings": [
|
|
{
|
|
"from_button_id": "button.menu_cancel",
|
|
"to_button_id": "button.menu_exit",
|
|
"mapping_type": "global"
|
|
}
|
|
],
|
|
"$screen_content": "realms_plus_ended.subscription_ended_screen_content"
|
|
},
|
|
|
|
"subscription_ended_screen_content": {
|
|
"type": "panel",
|
|
"controls": [
|
|
{
|
|
"root_panel": {
|
|
"type": "panel",
|
|
"controls": [
|
|
{ "gamepad_helpers@gamepad_helpers": {} },
|
|
{ "main_panel@main_panel": { "layer": 1 } }
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
//---------------------------------------------------------------------------
|
|
// CONTENT
|
|
//---------------------------------------------------------------------------
|
|
|
|
"main_panel": {
|
|
"type": "input_panel",
|
|
"size": [ 260, 174 ],
|
|
"controls": [
|
|
{
|
|
"dialog@common_dialogs.main_panel_no_buttons": {
|
|
"$text_name": "realmsPlus.popup.title",
|
|
"$child_control": "realms_plus_ended.content_stack_panel"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"gamepad_helpers": {
|
|
"type": "panel",
|
|
"layer": 2,
|
|
"controls": [
|
|
{
|
|
"gamepad_helper_a@common.gamepad_helper_a": {
|
|
"anchor_from": "bottom_right",
|
|
"anchor_to": "bottom_right"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"content_stack_panel": {
|
|
"type": "stack_panel",
|
|
"orientation": "vertical",
|
|
"size": [ "100% + 16px", "100%c" ],
|
|
"controls": [
|
|
{
|
|
"pad_0": {
|
|
"type": "panel",
|
|
"size": [ "100%", 4 ]
|
|
}
|
|
},
|
|
{
|
|
"main_content@realms_plus_ended.main_content_panel": {}
|
|
},
|
|
{
|
|
"pad_1": {
|
|
"type": "panel",
|
|
"size": [ "100%", 4 ]
|
|
}
|
|
},
|
|
{
|
|
"button_center_panel": {
|
|
"type": "panel",
|
|
"size": [ "100%", "100%c" ],
|
|
"controls": [
|
|
{
|
|
"buttons@realms_plus_ended.buttons_panel": {}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"pad_2": {
|
|
"type": "panel",
|
|
"size": [ "100%", 4 ]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"main_content_panel": {
|
|
"type": "panel",
|
|
"size": [ "100%", "100%c" ],
|
|
"controls": [
|
|
{
|
|
"main_content_stack_panel": {
|
|
"type": "stack_panel",
|
|
"orientation": "horizontal",
|
|
"size": [ "100% - 20px", "100%cm" ],
|
|
"offset": [ 2, 0 ],
|
|
"controls": [
|
|
{
|
|
"image_panel@common.service_repo_image_panel": {
|
|
"$repo_image_texture": "realms_plus_logo_tall",
|
|
"size": [ 67, 89 ]
|
|
}
|
|
},
|
|
{
|
|
"pad": {
|
|
"type": "panel",
|
|
"size": [ 5, "100%sm" ]
|
|
}
|
|
},
|
|
{
|
|
"text_panel": {
|
|
"type": "panel",
|
|
"size": [ "fill", "100%sm" ],
|
|
"controls": [
|
|
{
|
|
"text": {
|
|
"type": "label",
|
|
"size": [ "100% - 10px", "100%" ],
|
|
"anchor_from": "top_left",
|
|
"anchor_to": "top_left",
|
|
"text": "realmsPlus.popup.message",
|
|
"font_type": "smooth",
|
|
"color": "$body_text_color",
|
|
"line_padding": 1.5
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"buttons_panel": {
|
|
"type": "stack_panel",
|
|
"orientation": "vertical",
|
|
"size": [ "100% - 24px", "100%c" ],
|
|
"anchor_from": "top_middle",
|
|
"anchor_to": "top_middle",
|
|
"controls": [
|
|
{
|
|
"more_info_button@common_buttons.light_text_button": {
|
|
"size": [ "100%", 20 ],
|
|
"$button_text": "realmsPlus.popup.top_button_text",
|
|
"$pressed_button_name": "button.more_info"
|
|
}
|
|
},
|
|
{
|
|
"pad": {
|
|
"type": "panel",
|
|
"size": [ "100%", 4 ]
|
|
}
|
|
},
|
|
{
|
|
"renew_subscription_button@common_buttons.light_text_button": {
|
|
"size": [ "100%", 20 ],
|
|
"$button_text": "realmsPlus.popup.bottom_button_text",
|
|
"$pressed_button_name": "button.renew"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|
|
}
|
|
|