1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-23 15:56:14 +00:00
bedrock-samples/resource_pack/ui/csb_sections/csb_purchase_amazondevicewarning_screen.json
Mike Ammerlaan cedc6e4171 v1.20.50.3
2023-12-05 10:02:40 -08:00

101 lines
2.6 KiB
JSON

{
"namespace": "csb_purchase_amazondevicewarning",
"csb_purchase_amazondevicewarning_screen@common.base_screen": {
"$screen_content": "csb_purchase_amazondevicewarning.screen_content",
"force_render_below": true,
"$fill_alpha": 1,
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
}
]
},
"screen_content": {
"type": "panel",
"controls": [
{
"main_panel@common_dialogs.main_panel_one_button": {
"$text_name": "store.csb.purchase.amazonDeviceWarning.title",
"$button_panel": "csb_purchase_amazondevicewarning.back_button",
"$child_control": "csb_purchase_amazondevicewarning.main_panel",
"size": "$world_conversion_complete_screen_size"
}
}
]
},
"main_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100% - 50px", "100% - 4px" ],
"controls": [
{
"text_panel_1": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"text": {
"type": "label",
"size": [ "100%", "default" ],
"font_type": "smooth",
"text_alignment": "center",
"text": "store.csb.purchase.amazonDeviceWarning.body.line1",
"color": "$store_white_text_color"
}
}
]
}
},
{
"art_panel": {
"type": "panel",
"size": [ "100%", "fill" ],
"controls": [
{
"art": {
"type": "image",
"texture": "textures/ui/csb_purchase_amazondevicewarning",
"layer": 1
}
}
]
}
},
{
"padding": {
"type": "panel",
"size": [ "100%", "2px" ]
}
},
{
"text_panel_2": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"text": {
"type": "label",
"size": [ "100%", "default" ],
"font_type": "smooth",
"text_alignment": "center",
"text": "store.csb.purchase.amazonDeviceWarning.body.line2",
"color": "$store_white_text_color"
}
}
]
}
}
]
},
"back_button@common_buttons.light_text_button": {
"$pressed_button_name": "button.goBack",
"$button_text": "store.csb.purchase.amazonDeviceWarning.button.back"
}
}