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

177 lines
5.1 KiB
JSON

{
"namespace": "realmsplus_upgrade_notice_screen",
"screen@common.base_screen": {
"$screen_content": "realmsplus_upgrade_notice_screen.main_content",
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
}
]
},
"main_content": {
"type": "panel",
"controls": [
{
"dialog@common_dialogs.main_panel_no_buttons": {
"size": [ "78.43%", "80.36%" ],
"$text_name": "realmsPlusUpgradeNotice.title",
"$title_offset": [ 0, 8 ],
"$child_control": "realmsplus_upgrade_notice_screen.content"
}
}
]
},
"content": {
"type": "stack_panel",
"size": [ "100% - 6px", "100% - 6px" ],
"controls": [
{
"image_row_positioner": {
"type": "panel",
"size": [ "100%", "100%cm" ],
"controls": [
{
"image_row": {
"type": "stack_panel",
"orientation": "horizontal",
"anchor_from": "center",
"anchor_to": "center",
"size": [ "100%", "100%cm" ],
"controls": [
{
"left_border@common.focus_border_black": {
"size": [ "50%-9px", "100%c+2px" ],
"layer": 2,
"controls": [
{
"left_img@common.service_repo_image_panel": {
"$repo_image_texture": "realms_plus_key_art",
"layer": -1,
"size": [ "100%-2px", "56.25%x" ]
}
}
]
}
},
{
"plus_panel": {
"type": "panel",
"size": ["18px", "100%sm"],
"controls": [
{
"plus_img": {
"type": "image",
"layer": 2,
"size": [ "11px", "11px" ],
"texture": "textures/ui/plus.png"
}
}
]
}
},
{
"right_border@common.focus_border_black": {
"size": [ "50%-9px", "100%c+2px" ],
"layer": 2,
"controls": [
{
"right_img@common.service_repo_image_panel": {
"$repo_image_texture": "realms_10_player",
"layer": -1,
"size": [ "100%-2px", "56.25%x" ]
}
}
]
}
}
]
}
}
]
}
},
{
"padding_0": {
"type": "panel",
"size": [ "100%", 3 ]
}
},
{
"wall_of_text": {
"type": "panel",
"size": [ "100%", "fill" ],
"controls": [
{
"the_text": {
"type": "label",
"text": "$notice_text", // set in controller, based on Options FSM, ACK_REALMSPLUS_UPGRADE
"size": [ "100%", "100%" ],
"layer": 2,
"color": "$body_text_color",
"font_type": "smooth"
}
}
]
}
},
{
"buttons_row": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "18px" ],
"controls": [
{
"left@common_buttons.light_content_button": {
"size": [ "50%-2px", "100%" ],
"$pressed_button_name": "button.continue_button",
"$button_content": "realmsplus_upgrade_notice_screen.lbutton_label"
}
},
{
"button_spacer": {
"type": "panel",
"size": [ "4px", "100%" ]
}
},
{
"right@common_buttons.light_content_button": {
"size": [ "50%-2px", "100%" ],
"$pressed_button_name": "button.viewpacks",
"$button_content": "realmsplus_upgrade_notice_screen.rbutton_label"
}
}
]
}
}
]
},
"buttonlbl": {
"type": "panel",
"layer": 2,
"$text_in_button|default": "",
"controls": [
{
"label": {
"type": "label",
"color": "$text_color",
"text": "$text_in_button"
}
}
]
},
"lbutton_label@realmsplus_upgrade_notice_screen.buttonlbl": {
"$text_in_button": "realmsPlusUpgradeNotice.continue"
},
"rbutton_label@realmsplus_upgrade_notice_screen.buttonlbl": {
"$text_in_button": "realmsPlusUpgradeNotice.viewpacks"
}
}