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

140 lines
3.9 KiB
JSON

{
"namespace": "realmsPlus_packs",
"view_all_packs_screen@common_store.store_base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.controller_secondary_select",
"to_button_id": "button.search",
"mapping_type": "global",
"ignored": "$is_on_3p_server"
},
{
"from_button_id": "button.controller_select",
"to_button_id": "button.coin_wallet",
"mapping_type": "global"
}
],
"$default_text_color": [ 0.3, 0.3, 0.3 ],
"$screen_content": "realmsPlus_packs.view_packs_screen_content",
"$header_safezone_control": "common_store.store_top_bar_filler",
"$header_bar_control": "common_store.store_top_bar",
"$screen_background_control": "realmsPlus.purple_background",
"$is_full_screen_layout": true,
"$ignore_inventory_button": "$is_sidebar_navigation_enabled",
"$fill_alpha": 1
},
"view_packs_screen_content": {
"type": "panel",
"alpha": "@common_store.screen_fade_in_alpha_anim",
"propagate_alpha": true,
"disable_anim_fast_forward": true,
"controls": [
{
"main_panel@common_store.store_header_with_coins": {
"$child_control": "realmsPlus_packs.realmsPlus_view_packs_screen_main_panel",
"$button_text": "store.title"
}
}
]
},
"realmsPlus_view_packs_screen_main_panel@sidebar_navigation.sidebar_view": {
"$sidebar_main_view_content": "realmsPlus_packs.main_panel"
},
"main_panel": {
"type": "input_panel",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"controls": [
{
"offers@common.scrolling_panel": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100% - 2px", "100%" ],
"$scrolling_pane_size": [ "100%", "100%" ],
"$scrolling_pane_offset": [ 0, 0 ],
"$scroll_size": [ 5, "100% - 8px" ],
"$scrolling_content": "realmsPlus_packs.scrolling_content_stack",
"$scroll_bar_left_padding_size": [ 0, 0 ],
"$show_background": false,
"$bar_visible": false,
"bindings": [
{
"binding_name": "(not #page_loading_visible)",
"binding_name_override": "#visible",
"binding_condition": "always"
}
]
}
},
{
"progress_loading@common_store.progress_loading": {
"layer": 100, // Make this on top
"bindings": [
{
"binding_name": "#page_loading_visible",
"binding_name_override": "#visible",
"binding_condition": "always"
}
]
}
}
]
},
"scrolling_content_stack": {
"type": "stack_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"padding_0": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"view_all_packs_title_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"view_all_packs_title@common.minecraftTenLabel": {
"size": [ "default", "default" ],
"max_size": [ "100%", "default" ],
"color": "$store_white_text_color",
"font_type": "MinecraftTenEmoticon",
"text": "store.realmsPlus.viewAllPacksTitle"
}
}
]
}
},
{
"padding_1": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"store_factory@common_store.store_section_factory": {
"$is_subscription_screen": true,
"$content_offer_panel_size": [ "100% - 40px", "100%" ]
}
}
]
}
}