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/csb_purchase_error_screen.json
Mike Ammerlaan cedc6e4171 v1.20.50.3
2023-12-05 10:02:40 -08:00

125 lines
3.3 KiB
JSON

{
"namespace": "csb_purchase_error",
"csb_purchase_error_screen@common.base_screen": {
"$screen_content": "csb_purchase_error.purchase_error_screen_content",
"force_render_below": true,
"$fill_alpha": 1
},
"purchase_error_screen_content": {
"type": "panel",
"controls": [
{
"main_panel@common_dialogs.main_panel_one_button": {
"$text_name": "store.csb.purchaseErrorDialog.title",
"$button_panel": "csb_purchase_error.purchase_error_modal_back_button",
"$child_control": "csb_purchase_error.purchase_error_modal_main_panel",
"size": "$modal_screen_size",
"$show_close_button": false
}
}
]
},
"purchase_error_modal_main_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100% - 10px", "100% - 8px" ],
"controls": [
{
"text_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"text": {
"type": "label",
"size": [ "100%", "default" ],
"color": "$store_white_text_color",
"font_type": "smooth",
"font_scale_factor": 0.8,
"text_alignment": "center",
"text": "store.csb.purchaseErrorDialog.body"
}
}
]
}
},
{
"padding_1": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"art_panel": {
"type": "panel",
"size": [ "100%", "fill" ],
"controls": [
{
"art": {
"type": "image",
"texture": "textures/ui/csb_purchase_error",
"layer": 1
}
}
]
}
},
{
"padding_2": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"error_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"error_code": {
"type": "label",
"size": [ "100%", "default" ],
"color": "$store_csb_text_color",
"font_type": "smooth",
"font_scale_factor": 0.8,
"text_alignment": "right",
"text": "#error_code",
"bindings": [
{
"binding_name": "#error_code"
}
]
}
},
{
"correlation_id": {
"type": "label",
"size": [ "100%", "default" ],
"color": "$store_csb_text_color",
"font_type": "smooth",
"font_scale_factor": 0.8,
"text_alignment": "right",
"text": "#correlation_id",
"bindings": [
{
"binding_name": "#correlation_id"
}
]
}
}
]
}
}
]
},
"purchase_error_modal_back_button@common_buttons.light_text_button": {
"$pressed_button_name": "button.purchaseErrorBack",
"$button_text": "store.csb.purchaseErrorDialog.back"
}
}