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_subscription_panel.json
Mike Ammerlaan 1c48a87a35 v1.21.20.3
2024-08-13 09:36:05 -07:00

368 lines
15 KiB
JSON

{
"namespace": "csb_subscription_panel",
"csb_container": {
"ignored": "$pre_release",
"anchor_from": "top_left",
"anchor_to": "top_right",
"type": "panel",
"size": [ "100%", "100px" ],
"controls": [
{
"fill": {
"type": "image",
"size": [ "100%", "100%" ],
"texture": "textures/ui/Black",
"keep_ratio": false,
"alpha": 1.0
}
},
{
"border": {
"type": "image",
"size": [ "100% + 2px", "100% + 2px" ],
"texture": "textures/ui/Black",
"layer": 2
}
},
{
"panel_contents": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%" ],
"controls": [
{
"content_container": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "70px" ],
"controls": [
{
"side_image_stack_left": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "40%", "100%" ],
"controls": [
{
"csb_image": {
"type": "image",
"size": [ "default", "default" ],
"keep_ratio": false,
"anchor_from": "top_left",
"anchor_to": "top_left",
"layer": 3,
"texture": "textures/ui/csb_subscribe_banner"
}
}
]
}
},
{
"padding_02": {
"type": "panel",
"size": [ 5, "100%" ]
}
},
{
"side_stack_right": {
"type": "stack_panel",
"orientation": "vertical",
"anchor_from": "top_right",
"size": [ "45%", "100px" ],
"controls": [
{
"interior_content_stack": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%" ],
"layer": 3,
"controls": [
{
"panel_label@common.minecraftTenLabel": {
"offset": [ 0, -1 ],
"text": "options.csbHeading",
"color": "$store_white_text_color",
"anchor_from": "top_left",
"anchor_to": "top_left",
"layer": 2
}
},
{
"interior_top_padding": {
"type": "panel",
"size": [ "100%", 2 ]
}
},
{
"description_panel": {
"type": "stack_panel",
"anchor_to": "top_left",
"orientation": "vertical",
"size": [ "100%", 10 ],
"controls": [
{
"interior_label_panel": {
"type": "panel",
"size": [ "100%", "100%" ],
"controls": [
{
"panel_label": {
"type": "label",
"text": "options.csbSubheading",
"font_type": "smooth",
"offset": [ 2, -1 ],
"font_scale_factor": 0.7,
"size": [ "default", "default" ],
"max_size": [ "100% - 4px", "100%" ],
"color": "$0_color_format",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"layer": 3
}
},
{
"background_panel": {
"type": "image",
"size": [ "100%sm + 4px", "80%" ],
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"keep_ratio": false,
"texture": "textures/ui/White",
"color": "$csb_secondary_panel_background"
}
}
]
}
}
]
}
},
{
"interior_top_padding_01": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"ln_01_container": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "15%+5px" ],
"controls": [
{
"bullet_holder_01": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "10%", "100%" ],
"controls": [
{
"bullet_spacer": {
"type": "panel",
"size": [ "100%", 1 ]
}
},
{
"bullet_01": {
"type": "label",
"text": "●",
"font_type": "Minecraft",
"backup_font_type": "UIFont",
"color": "$generic_button_text_color",
"text_alignment": "center",
"font_scale_factor": 0.5,
"size": [ "100%", "90%" ]
}
}
]
}
},
{
"panel_details_ln1": {
"type": "label",
"anchor_from": "top_right",
"anchor_to": "top_right",
"text": "options.csbInfoLine01",
"font_type": "smooth",
"backup_font_type": "UIFont",
"color": "$generic_button_text_color",
"text_alignment": "left",
"font_scale_factor": 0.8,
"size": [ "90%", "100%" ]
}
}
]
}
},
{
"ln_02_container": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "15%" ],
"controls": [
{
"bullet_holder_02": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "10%", "100%" ],
"controls": [
{
"bullet_spacer": {
"type": "panel",
"size": [ "100%", 1 ]
}
},
{
"bullet_02": {
"type": "label",
"text": "●",
"font_type": "Minecraft",
"backup_font_type": "UIFont",
"color": "$generic_button_text_color",
"text_alignment": "center",
"font_scale_factor": 0.5,
"size": [ "100%", "90%" ]
}
}
]
}
},
{
"panel_details_ln3": {
"type": "label",
"anchor_from": "top_right",
"anchor_to": "top_right",
"text": "options.csbInfoLine02",
"font_type": "smooth",
"backup_font_type": "UIFont",
"color": "$generic_button_text_color",
"text_alignment": "left",
"font_scale_factor": 0.8,
"size": [ "90%", "100%" ]
}
}
]
}
},
{
"interior_top_padding02": {
"type": "panel",
"size": [ "100%", 1 ]
}
}
]
}
}
]
}
}
]
}
},
{
"button_panel_spacer": {
"type": "panel",
"size": [ "100%", 5 ]
}
},
{
"csb_buttons": {
"type": "stack_panel",
"anchor_from": "center",
"anchor_to": "center",
"orientation": "horizontal",
"size": [ "100%-4px", "20%" ],
"controls": [
{
"button_panel_padding": {
"type": "panel",
"size": [ 4, "100%" ]
}
},
{
"$left_button": {}
},
{
"padding_01": {
"type": "panel",
"size": [ 4, "100%" ]
}
},
{
"csb_info_button@common_buttons.light_content_button": {
"$button_text": "options.viewSubscriptions.button.info",
"$button_text_size": [ "default", "default" ],
"size": [ "fill", "100%" ],
"$button_text_max_size": [ "100% - 10px", 18 ],
"$pressed_button_name": "button.csb_info",
"$button_content": "csb_buy.button_text"
}
}
]
}
}
]
}
}
],
"$csb_panel_bindings|default": [
{
"binding_name": "#csb_buy_panel_visible",
"binding_name_override": "#visible"
}
],
"bindings": "$csb_panel_bindings"
},
"csb_buy_container": {
"ignored": "$pre_release",
"type": "panel",
"size": [ "50%", "100%" ],
"controls": [
{
"csb_buy_button@common_buttons.light_content_button": {
"$button_text": "#csb_price_text",
"size": [ "100%", "100%" ],
"$button_text_binding_type": "global",
"$pressed_button_name": "button.csb_buy",
"$button_content": "csb_subscription_panel.csb_buy_button_text"
}
}
]
},
"csb_buy_button_text@common.minecraftTenLabel": {
"text": "$button_text",
"color": "$text_color",
"offset": "$button_text_offset",
"$button_text_binding_type|default": "none",
"$button_text_size|default": [ "default", "default" ],
"$button_text_offset|default": [ 0, -1 ],
"bindings": [
{
"binding_type": "$button_text_binding_type",
"binding_name": "$button_text"
}
]
},
"csb_cancel_button@common_buttons.light_content_button": {
"$button_text": "gui.cancel",
"$button_text_size": [ "default", "default" ],
"$button_text_max_size": [ "100% - 10px", 18 ],
"size": [ "50%", "100%" ],
"$pressed_button_name": "button.csb_cancel",
"$button_content": "csb_buy.button_text",
"bindings": [
{
"binding_name": "(not #csb_platform_mismatch)",
"binding_name_override": "#enabled"
}
]
}
}