1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-27 06:58:55 +00:00
bedrock-samples/resource_pack/ui/realmsPlus_sections/realmsPlus_buy_now_screen.json
Mike Ammerlaan 1c48a87a35 v1.21.20.3
2024-08-13 09:36:05 -07:00

391 lines
11 KiB
JSON

{
"namespace": "realmsPlus_buy",
"buy_now_content": {
"type": "stack_panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"description_stack@realmsPlus_buy.description_stack": {}
},
{
"realm_name@realmsPlus_buy.realm_name_stack": {}
},
{
"terms_and_conditions@realmsPlus_buy.terms_and_conditions": {}
},
{
"padding_2": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"buy_button@realmsPlus_buy.buy_button_panel": {
"$pressed_button_name": "button.create_realm",
"$buy_now_bindings": [
{
"binding_name": "#has_checked_tos",
"binding_name_override": "#enabled"
}
]
}
},
{
"padding_3": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"platform_terms_factory": {
"type": "stack_panel",
"factory": {
"name": "platform_terms_factory",
"control_ids": {
"terms": "@realmsPlus_buy.content_text_section"
}
},
"collection_name": "platform_terms_collection",
"bindings": [
{
"binding_name": "#platform_term_controls",
"binding_name_override": "#collection_length"
}
]
}
}
]
},
"content_text_section": {
"type": "stack_panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"text_description_wrapper@common.tts_label_focus_wrapper": {
"$tts_label_panel": "realmsPlus_buy.content_description"
}
},
{
"padding": {
"type": "panel",
"size": [ "100%", 4 ]
}
}
]
},
"content_description": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"content_description_label": {
"type": "label",
"size": [ "100%", "default" ],
"text": "#platform_terms_text",
"color": "$body_text_color",
"font_type": "smooth",
"bindings": [
{
"binding_name": "#platform_terms_text",
"binding_collection_name": "platform_terms_collection",
"binding_type": "collection"
}
]
}
}
]
},
"trial_image_and_description": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "100%cm" ],
"controls": [
{
"realms_image": {
"type": "image",
"size": [ "25%", "133.4%x" ],
"texture": "textures/ui/realms_poster_art_with_logo"
}
},
{
"padding": {
"type": "panel",
"size": [ 4, 0 ]
}
},
{
"description_text_wrapper@common.tts_label_focus_wrapper": {
"size": [ "fill", "100%cm" ],
"$tts_label_panel": "realmsPlus_buy.description_text"
}
}
]
},
"description_text": {
"type": "label",
"text": "#trial_desciption_text",
"color": "$store_white_text_color",
"font_type": "smooth",
"size": [ "100%", "default" ],
"bindings": [
{
"binding_name": "#trial_desciption_text"
}
]
},
"title_text": {
"type": "label",
"size": [ "100% - 4px", "default" ],
"text": "#buy_now_banner_text",
"color": "$store_white_text_color",
"bindings": [
{
"binding_name": "#buy_now_banner_text"
}
]
},
"title_with_gradient@realmsPlus.gradient_content_panel": {
"$gradient_content": "realmsPlus_buy.title_text"
},
"description_stack": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"title_with_gradient_wrapper@common.tts_label_focus_wrapper": {
"size": [ "100%", 15 ],
"$tts_label_panel": "realmsPlus_buy.title_with_gradient"
}
},
{
"padding": {
"type": "panel",
"size": [ 0, 4 ]
}
},
{ "image_and_description@realmsPlus_buy.trial_image_and_description": {} }
]
},
"realm_name_stack": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"realm_name_label@common.minecraftTenLabel": {
"size": [ "100%", "default" ],
"text": "realmsCreateScreen.nameHeader.name",
"color": "$store_white_text_color"
}
},
{
"padding_0": {
"type": "panel",
"size": [ "100%", 1 ]
}
},
{
"realm_name_text_box@common.text_edit_box": {
"size": [ "100%", 20 ],
"$text_edit_box_label_anchor_point": "left_middle",
"$place_holder_text": "#placeholder_realm_name",
"$text_edit_box_placeholder_content_binding_name": "#placeholder_realm_name",
"$option_binding_name": "#realms_name_box",
"$text_box_name": "#realms_name_box",
"$text_edit_box_content_binding_name": "#realms_name_box",
"$text_edit_box_enabled_binding_type": "none",
"$focus_override_right": "FOCUS_OVERRIDE_STOP"
}
}
]
},
"terms_and_conditions": {
"type": "panel",
"size": [ "100%", 34 ],
"controls": [
{
"terms_panel@realmsPlus_buy.terms_and_conditions_panel": {}
}
]
},
"terms_and_conditions_panel": {
"type": "panel",
"size": [ "100%", "100% - 4px" ],
"controls": [
{
"name_label@common.minecraftTenLabel": {
"offset": [ 0, -1 ],
"text": "realmsCreateScreen.termsAndConditionsHeader",
"color": "$store_white_text_color",
"anchor_from": "top_left",
"anchor_to": "top_left",
"layer": 2
}
},
{
"terms_string_panel": {
"type": "panel",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"offset": [ 0, 7 ],
"size": [ "100%", "100% - 10px" ],
"$pressed_button_name_terms_conditions": "button.tos_hyperlink",
"$pressed_button_name_privacy_policy": "button.privpol_hyperlink",
"variables": [
{
// Stop-gap measure until we can get hyperlinks to work from VR and FireTV
"requires": "($is_holographic or $fire_tv)",
"$pressed_button_name_terms_conditions": "button.tos_popup"
},
{
// Stop-gap measure until we can get hyperlinks to work from VR and FireTV
"requires": "($is_holographic or $fire_tv)",
"$pressed_button_name_privacy_policy": "button.privpol_popup"
}
],
"controls": [
{
"banner_fill": {
"type": "image",
"size": [ "100%", "100%" ],
"layer": 2,
"texture": "textures/ui/Black",
"keep_ratio": false
}
},
{
"buttons_stack_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "100%" ],
"variables": [
{
"requires": "(not $is_low_memory_device)",
"$button_font_scale_factor": 1.39
}
],
"controls": [
{
"agree_panel": {
"type": "panel",
"size": [ 68, "100%" ],
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"layer": 3,
"controls": [
{
"checkbox_control@settings_common.checkbox_with_highlight_and_label": {
"$toggle_name": "#agree_terms_and_conditions",
"$checkbox_label_text": "realmsCreateScreen.termsAndConditionsAgree",
"$checkbox_label_font_type": "smooth"
}
}
]
}
},
{
"view_terms_button@realmsPlus_buy.view_terms_button": {
"size": [ "fill", "100%" ]
}
},
{
"privacy_policy_button@realmsPlus_buy.privacy_policy_button": {
"size": [ "fill", "100%" ]
}
}
]
}
}
]
}
}
]
},
"button_text@common.minecraftTenLabel": {
"size": "$button_text_size",
"max_size": "$button_text_max_size",
"text": "$button_text",
"color": "$text_color"
},
"view_terms_button@common_buttons.light_content_button": {
"$button_text": "store.realmsPlus.buyNow.viewTerms",
"$button_text_size": [ "default", "default" ],
"$button_text_max_size": [ "100% - 10px", 18 ],
"$pressed_button_name": "$pressed_button_name_terms_conditions",
"$button_content": "realmsPlus_buy.button_text"
},
"privacy_policy_button@common_buttons.light_content_button": {
"$button_text": "store.realmsPlus.buyNow.viewPrivacyPolicy",
"$button_text_size": [ "default", "default" ],
"$button_text_max_size": [ "100% - 10px", 18 ],
"$pressed_button_name": "$pressed_button_name_privacy_policy",
"$button_content": "realmsPlus_buy.button_text"
},
"buy_button_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"buy_button@common_buttons.light_content_button": {
"size": [ "100%", 20 ],
"$button_content": "realmsPlus_buy.buy_button_content",
"bindings": "$buy_now_bindings"
}
}
]
},
"buy_button_content": {
"type": "panel",
"size": [ "100%", "100%" ],
"controls": [
{
"button_chevron_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%c", "100%" ],
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"offset": [ -2, -2 ],
"controls": [
{
"buy_button_chevron@realmsPlus.markdown_background_animated": {}
}
]
}
},
{
"button_text@common.minecraftTenLabel": {
"text": "#buy_now_button_text",
"size": [ "default", "default" ],
"color": "$text_color",
"offset": [ 0, -2 ],
"layer": 1,
"bindings": [
{
"binding_name": "#buy_now_button_text"
}
]
}
}
]
}
}