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/content_section.json
Mike Ammerlaan 1440438305 v1.21.30.3
2024-09-17 09:13:33 -07:00

457 lines
13 KiB
JSON

{
"namespace": "realmsPlus_content",
"realmsPlus_content_section@realmsPlus.section_base": {
"controls": [
{
"content_section_top_padding@realmsPlus.content_section_top_padding": {}
},
{
"content_sections": {
"type": "stack_panel",
"size": [ "100%", "100%c" ],
"collection_name": "content_sections",
"factory": {
"name": "content_section_factory",
"control_ids": {
"icons": "@realmsPlus_content.content_pack_types_section",
"packs": "@realmsPlus_content.content_packs_included_section"
}
},
"bindings": [
{
"binding_name": "#content_tab_sections",
"binding_name_override": "#collection_length"
}
]
}
},
{
"content_section_bottom_padding@realmsPlus.content_section_top_padding": {}
}
]
},
"content_pack_types_section": {
"type": "stack_panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"includes_marketplace_pass_wrapper@common.tts_label_focus_wrapper": {
"size": [ "100%", 15 ],
"$tts_label_panel": "realmsPlus_content.includes_marketplace_pass"
}
},
{
"padding_contentSub@common.empty_panel": {
"size": [ "100%", 4 ]
}
},
{
"pack_types_wrapper@common.tts_label_focus_wrapper": {
"$tts_label_panel": "realmsPlus_content.pack_types"
}
}
]
},
"content_packs_included_section": {
"type": "stack_panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"popular_packs@realmsPlus_content.popular_packs": {}
},
{
"section_divider@realmsPlus.full_width_section_divider": {}
}
]
},
"persona_row@realmsPlus_content.pack_type_row_panel": {
"controls": [
{
"persona@realmsPlus_content.pack_type_description": {
"$pack_type_texture": "common_store.persona_small_icon",
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ "100% - 4px", 20 ]
}
}
]
},
"worlds_row@realmsPlus_content.pack_type_description": {
"$pack_type_texture": "common_store.world_small_icon",
"anchor_from": "left_middle",
"anchor_to": "left_middle"
},
"pack_types": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"$icon_color": "$body_text_color",
"controls": [
{
"middle_row@realmsPlus_content.pack_type_row_panel": {
"controls": [
{
"worlds_contentSub@realmsPlus_content.worlds_row": {
"$pack_type_description_text": "store.realmsPlus.content.worldDescription.contentSub"
}
},
{
"textures@realmsPlus_content.pack_type_description": {
"$pack_type_texture": "common_store.resource_pack_small_icon",
"$pack_type_description_text": "store.realmsPlus.content.textureDescription.contentSub",
"anchor_from": "right_middle",
"anchor_to": "right_middle"
}
}
]
}
},
{
"bottom_row@realmsPlus_content.pack_type_row_panel": {
"controls": [
{
"skins_persona_contentSub@realmsPlus_content.skins": {
"$pack_type_description_text": "store.realmsPlus.content.skinDescriptionPersona.contentSub"
}
},
{
"mashups@realmsPlus_content.pack_type_description": {
"$pack_type_texture": "common_store.mashup_small_icon",
"$pack_type_description_text": "store.realmsPlus.content.mashupDescription",
"anchor_from": "right_middle",
"anchor_to": "right_middle"
}
}
]
}
},
{
"bottom_contentSub@realmsPlus_content.persona_row": {
"$pack_type_description_text": "store.realmsPlus.content.personaDescription.contentSub"
}
}
]
},
"skins@realmsPlus_content.pack_type_description": {
"$pack_type_texture": "common_store.skinpack_small_icon",
"anchor_from": "left_middle",
"anchor_to": "left_middle"
},
"friends_get_access": {
"type": "label",
"size": [ "100%", "default" ],
"text": "store.realmsPlus.content.friendsGetAccess",
"font_type": "smooth",
"color": "$store_white_text_color"
},
"pack_type_row_panel": {
"type": "panel",
"size": [ "100%", "100%cm" ]
},
"pack_type_description": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "50% - 4px", 20 ],
"controls": [
{
"image_nesting_panel": {
"type": "panel",
"size": [ "100%c", "100%" ],
"controls": [
{
"texture@$pack_type_texture": {
"size": [ 8, 8 ]
}
}
]
}
},
{
"padding_0@common.empty_panel": {
"size": [ 4, "100%" ]
}
},
{
"description_nesting_panel": {
"type": "panel",
"size": [ "fill", "100%" ],
"controls": [
{
"description_label": {
"type": "label",
"size": [ "100%", "default" ],
"color": "$body_text_color",
"text": "$pack_type_description_text",
"font_type": "smooth"
}
}
]
}
}
]
},
"popular_packs": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"padding_0@common.empty_panel": {
"size": [ "100%", 2 ]
}
},
{
"pack_grid@realmsPlus_content.packs_collection": {}
},
{
"view_all_packs_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"view_all_packs_button@common_buttons.light_content_button": {
"$pressed_button_name": "button.view_all_packs",
"$button_content": "realmsPlus_buy.button_text",
"$button_text": "store.realmsPlus.content.viewAllPacks",
"$button_text_size": [ "default", "default" ],
"$button_text_max_size": [ "100% - 10px", 18 ],
"size": [ "100%", 20 ]
}
}
]
}
},
{
"padding_1@common.empty_panel": {
"size": [ "100%", 2 ]
}
},
{
"view_character_creator_items_button@common_buttons.light_content_button": {
"$pressed_button_name": "button.view_character_creator_items",
"$button_content": "csb_buy.button_text",
"$button_text": "store.csb.content.viewCharacterCreatorItems",
"$button_text_size": [ "default", "default" ],
"$button_text_max_size": [ "100% - 10px", 18 ],
"size": [ "100%", 20 ],
"bindings": [
{
"binding_name": "#realms_content_creator_button_visible",
"binding_name_override": "#visible"
}
]
}
},
{
"padding_2@common.empty_panel": {
"size": [ "100%", 2 ]
}
}
]
},
"popular_packs_label": {
"type": "label",
"size": [ "100% - 4%", "default" ],
"text": "#packs_label",
"color": "$body_text_color",
"bindings": [
{
"binding_name": "#packs_label"
}
]
},
"includes_marketplace_pass@csb.gradient_content_panel": {
"$gradient_content": "realmsPlus_content.includes_marketplace_pass_label",
"bindings": [
{
"binding_name": "#realms_contentSub_enabled",
"binding_name_override": "#visible"
}
]
},
"includes_marketplace_pass_label": {
"type": "label",
"size": [ "100% - 4%", "default" ],
"text": "store.realmsPlus.content.marketplacePass",
"color": "$light_button_default_text_color"
},
"packs_collection": {
"type": "stack_panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"row_1": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "100%cm" ],
"collection_name": "popular_packs_collection",
"controls": [
{
"pack_image_grid_item_0@realmsPlus_content.pack_image_grid_item": {
"collection_index": 0
}
},
{
"padding": {
"type": "panel",
"size": [ 4, 0 ]
}
},
{
"pack_image_grid_item_1@realmsPlus_content.pack_image_grid_item": {
"collection_index": 1
}
}
]
}
},
{
"padding_1": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"row_2": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "100%cm" ],
"collection_name": "popular_packs_collection",
"controls": [
{
"pack_image_grid_item_0@realmsPlus_content.pack_image_grid_item": {
"collection_index": 2
}
},
{
"padding": {
"type": "panel",
"size": [ 4, 0 ]
}
},
{
"pack_image_grid_item_1@realmsPlus_content.pack_image_grid_item": {
"collection_index": 3
}
}
]
}
},
{
"padding_2": {
"type": "panel",
"size": [ "100%", 4 ]
}
}
]
},
"pack_image_grid_item": {
"type": "panel",
"size": [ "50% - 2px", "56.25%x + 1.125px" ],
"controls": [
{
"bg@common_store.banner_fill": {
"size": [ "100%", "100%" ],
"layer": 1,
"controls": [
{
"featured_key_art": {
"type": "image",
"layer": 4,
"size": [ "100% - 2px", "100% - 2px" ],
"bilinear": true,
"bindings": [
{
"binding_type": "collection",
"binding_collection_name": "popular_packs_collection",
"binding_name": "#key_art_texture_file_system",
"binding_name_override": "#texture_file_system"
},
{
"binding_type": "collection",
"binding_collection_name": "popular_packs_collection",
"binding_name": "#key_art_texture_path",
"binding_name_override": "#texture"
}
],
"controls": [
{
"csb_chevron@csb_content.csb_content_chevron": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"offset": [ 0, 0.5 ]
}
}
]
}
},
{
"progress_loading@common_store.progress_loading": {
"size": [ "100%", "100%" ],
"$source_control_name": "featured_key_art",
"$source_property_name": "(#texture = '')",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"$hide_failure_text": true
}
}
]
}
},
{
"offer_button@common.button": {
"size": [ "100%", "100%" ],
"layer": 7,
"default_control": "",
"$pressed_button_name": "button.select_offer",
"tts_control_header": "#title_label",
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "popular_packs_collection"
},
{
"binding_type": "collection",
"binding_collection_name": "popular_packs_collection",
"binding_name": "#right_most_grid_item_focus_override_right",
"binding_name_override": "#focus_change_right",
"binding_condition": "visible"
},
{
"binding_type": "collection",
"binding_collection_name": "popular_packs_collection",
"binding_name": "#title_label"
}
],
"controls": [
{
"default@common.square_image_border_white": {
"color": [ 0, 0, 0 ]
}
},
{
"hover@common.square_image_border_white": {}
},
{
"pressed@common.square_image_border_white": {}
}
]
}
}
]
},
"realms_plus_content_chevron@realmsPlus.markdown_background": {
"size": [ "100%c", 12 ],
"layer": 1
}
}