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

1556 lines
50 KiB
JSON

{
"namespace": "store_inventory",
"sign_in_button@common_buttons.light_text_form_fitting_button": {
"size": [ "100%c", "100%" ],
"$anchor": "top_left",
"$pressed_button_name": "button.signin",
"$button_text": "store.xbl.signin",
"$button_state_panel": "common_buttons.new_ui_width_fitting_button_panel",
"$button_type_panel": "common_buttons.width_fitting_button_content_panel",
"$button_content": "common_buttons.new_ui_binding_button_label",
"$button_size_override": [ "100%c", "100%" ],
"$button_offset": [ 0, -0.5 ],
"bindings": [
{
"binding_name": "#show_signin_button",
"binding_name_override": "#visible"
}
],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "$pressed_button_name",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "$pressed_button_name",
"mapping_type": "focused"
}
]
},
"no_xbl_and_local_content_warning_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100% - 2px", "100%c" ],
"bindings": [
{
"binding_name": "#show_no_xbl_and_local_content_warning",
"binding_name_override": "#visible"
}
],
"controls": [
{
"image_and_description_bg_panel@common_store.banner_fill": {
"size": [ "100%", "100%c" ],
"controls": [
{
"image_and_description_panel": {
"type": "panel",
"size": [ "100% - 8px", "100%c" ],
"controls": [
{
"image_and_description_stack": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"layer": 2,
"controls": [
{
"top_padding": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"warning_image_and_label_1": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "100%cm" ],
"controls": [
{
"xbl_image_center_panel": {
"type": "panel",
"size": [ "50%", "100%c" ],
"inherit_max_sibling_height": true,
"controls": [
{
"xbl_sign_in_image": {
"type": "image",
"keep_ratio": true,
"size": [ "100%", "50%x" ],
"texture": "textures/ui/sign_in_prompts_my_content"
}
}
]
}
},
{
"xbl_image_padding_warning": {
"type": "panel",
"size": [ 8, 0 ]
}
},
{
"warning_label_centering_panel": {
"type": "panel",
"size": [ "fill", "100%c" ],
"inherit_max_sibling_height": true,
"controls": [
{
"warning_label_stack": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"top_padding": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"message_text@store_inventory.sign_in_panel_text_body": {
"$body_text": "store.sign_in_warning.no_xbl_and_no_local_content.line1",
"$secondary_text": "store.sign_in_warning.no_xbl_and_no_local_content.line2"
}
},
{
"xbl_image_padding_warning": {
"type": "panel",
"size": [ "100%", 8 ]
}
},
{
"sign_in_button_centering_panel": {
"type": "panel",
"size": [ "90%", "100%c" ],
"visible": "$is_pregame",
"controls": [
{
"sigh_in_button@store_inventory.sign_in_button": {
"size": [ "70%", "100%c" ],
"min_size": [ "70%", 30 ],
"focus_enabled": true,
"$button_text": "store.xbl.signin",
"$button_state_panel": "common_buttons.new_ui_height_fitting_button_panel",
"$button_type_panel": "common_buttons.height_fitting_button_content_panel",
"$button_content": "common_buttons.new_ui_binding_button_label",
"$button_text_max_size": [ "100%", "100%c" ],
"$button_size_override": [ "100%", "100%c" ],
"$button_min_size_override": [ "100%", 30 ],
"$button_border_min_size_override": [ "100%", 30 ],
"$button_image_min_size_override": [ "100% - 2px", 28 ],
"$button_offset": [ 0, 0 ],
"$text_alignment": "center",
"$anchor": "center",
"bindings": []
}
}
]
}
}
]
}
}
]
}
}
]
}
},
{
"bottom_padding": {
"type": "panel",
"size": [ "100%", 4 ]
}
}
]
}
}
]
}
}
]
}
},
{
"bottom_padding": {
"type": "panel",
"size": [ "100%", 4 ]
}
}
]
},
"no_xbl_and_no_local_conent_warning_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100% - 2px", "100%c" ],
"bindings": [
{
"binding_name": "#show_no_xbl_and_no_local_content_warning",
"binding_name_override": "#visible"
}
],
"controls": [
{
"image_and_description_bg_panel@common_store.banner_fill": {
"size": [ "100%", "100%c" ],
"controls": [
{
"image_and_description_panel": {
"type": "panel",
"size": [ "100% - 8px", "100%c" ],
"controls": [
{
"image_and_description_stack": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"layer": 2,
"controls": [
{
"top_padding": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"warning_image_and_label_1": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "100%cm" ],
"controls": [
{
"xbl_image_center_panel": {
"type": "panel",
"size": [ "50%", "100%c" ],
"inherit_max_sibling_height": true,
"controls": [
{
"xbl_sign_in_image": {
"type": "image",
"keep_ratio": true,
"size": [ "100%", "50%x" ],
"texture": "textures/ui/sign_in_prompts_my_content"
}
}
]
}
},
{
"xbl_image_padding_warning": {
"type": "panel",
"size": [ 8, 0 ]
}
},
{
"warning_label_centering_panel": {
"type": "panel",
"size": [ "fill", "100%c" ],
"inherit_max_sibling_height": true,
"controls": [
{
"warning_label_stack": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"top_padding": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"message_text@store_inventory.sign_in_panel_text_body": {
"$body_text": "store.sign_in_warning.no_xbl_and_no_local_content.line1",
"$secondary_text": "store.sign_in_warning.no_xbl_and_no_local_content.line2"
}
},
{
"xbl_image_padding_warning": {
"type": "panel",
"size": [ "100%", 8 ]
}
},
{
"sign_in_button_centering_panel": {
"type": "panel",
"size": [ "90%", "100%c" ],
"visible": "$is_pregame",
"controls": [
{
"sigh_in_button@store_inventory.sign_in_button": {
"size": [ "70%", "100%c" ],
"min_size": [ "70%", 30 ],
"focus_enabled": true,
"$button_text": "store.xbl.signin",
"$button_state_panel": "common_buttons.new_ui_height_fitting_button_panel",
"$button_type_panel": "common_buttons.height_fitting_button_content_panel",
"$button_content": "common_buttons.new_ui_binding_button_label",
"$button_text_max_size": [ "100%", "100%c" ],
"$button_size_override": [ "100%", "100%c" ],
"$button_min_size_override": [ "100%", 30 ],
"$button_border_min_size_override": [ "100%", 30 ],
"$button_image_min_size_override": [ "100% - 2px", 28 ],
"$button_offset": [ 0, 0 ],
"$text_alignment": "center",
"$anchor": "center",
"bindings": []
}
}
]
}
}
]
}
}
]
}
}
]
}
},
{
"bottom_padding": {
"type": "panel",
"size": [ "100%", 4 ]
}
}
]
}
}
]
}
}
]
}
},
{
"bottom_padding": {
"type": "panel",
"size": [ "100%", 4 ]
}
}
]
},
"inventory_sign_in_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"$button_focus_precedence": 10,
"controls": [
{
"no_xbl_and_local_content_warning_panel@store_inventory.no_xbl_and_local_content_warning_panel": {}
},
{
"no_xbl_and_no_local_conent_warning_panel@store_inventory.no_xbl_and_no_local_conent_warning_panel": {}
}
]
},
//--------------------------------------------------------------------------------
// Left Side
//--------------------------------------------------------------------------------
"divider_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"top_pad": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"divider@common.horizontal_divider": {}
},
{
"bottom_pad": {
"type": "panel",
"size": [ "100%", 4 ]
}
}
]
},
"right_image": {
"type": "image",
"size": [ 8, 8 ],
"texture": "textures/ui/arrowRight"
},
"down_image": {
"type": "image",
"size": [ 8, 8 ],
"texture": "textures/ui/arrowDown"
},
"section_toggle_base@common_toggles.light_image_toggle_collection": {
"size": [ "100%", 20 ],
"$radio_toggle_group": true,
"$toggle_name": "navigation_tab",
"$hover_texture|default": "textures/ui/button_borderless_light",
"$default_checked_text_color": "$light_toggle_default_text_color",
"$toggle_state_binding_name": "#toggle_state",
"$toggle_tab_focus_binding_type": "global",
"$toggle_tab_focus_binding_name": "#navigation_tab_focus_precedence",
"$toggle_on_hover_binding_type": "global",
"$toggle_on_hover_binding_name": "#toggle_on_hover"
},
"owned_toggle@store_inventory.section_toggle_base": {
"$button_content": "store_inventory.owned_dropdown_content",
"$toggle_view_binding_name": "owned_toggle",
"$toggle_group_forced_index": 0
},
"current_toggle@store_inventory.section_toggle_base": {
"$button_content": "store_inventory.current_dropdown_content",
"$toggle_view_binding_name": "current_toggle",
"$toggle_group_forced_index": 1
},
"removed_toggle@store_inventory.section_toggle_base": {
"$button_content": "store_inventory.removed_dropdown_content",
"$toggle_view_binding_name": "removed_toggle",
"$toggle_group_forced_index": 2
},
"subscriptions_toggle@store_inventory.section_toggle_base": {
"$button_content": "store_inventory.subscriptions_text_panel",
"$toggle_view_binding_name": "view_subscriptions_button_toggle",
"$toggle_group_forced_index": 3
},
"inventory_left_panel": {
"type": "stack_panel",
"orientation": "vertical",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"size": [ "100% - 10px", "100%c" ],
"layer": 3,
"focus_container": true,
"use_last_focus": false,
"$focus_id": "left_side",
"$focus_override_right": "right_side",
"focus_navigation_mode_left": "",
"focus_navigation_mode_right": "",
"focus_navigation_mode_down": "",
"focus_navigation_mode_up": "",
"controls": [
{
"top_pad": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"owned_toggle@store_inventory.owned_toggle": {}
},
{
"owned_dropdown_box_panel": {
"type": "image",
"size": [ "100%", "100%c" ],
"texture": "textures/ui/screen_background",
"alpha": "$fill_alpha",
"$fill_alpha|default": 0.8,
"variables": [
{
"requires": "$is_holographic",
"$fill_alpha": 1.0
}
],
"layer": 2,
"controls": [
{
"owned_dropdown_box@store_inventory.dropdown_box": {
"$dropdown_collection_name": "owned_items_collection"
}
}
]
}
},
{
"divider_0@store_inventory.divider_panel": {
"layer": 2,
"bindings": [
{
"binding_name": "#realms_enabled",
"binding_name_override": "#visible"
}
]
}
},
{
"csub_panel": {
"type": "panel",
"variables": [
{
"requires": "$is_holographic",
"$fill_alpha": 1.0
}
],
"size": [ "100%", "100%cm" ],
"layer": 2,
"bindings": [
{
"binding_name": "#realms_enabled",
"binding_name_override": "#visible"
}
],
"controls": [
{
"csub_stack_panel@store_inventory.csub_stack_panel": {}
}
]
}
},
{
"divider_1@store_inventory.divider_panel": {
"layer": 3,
"bindings": [
{
"binding_name": "#realms_enabled",
"binding_name_override": "#visible"
}
]
}
},
{
"subscriptions_toggle@store_inventory.subscriptions_toggle": {
"bindings": [
{
"binding_name": "#realms_enabled",
"binding_name_override": "#visible"
}
]
}
}
]
},
"csub_stack_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"padding_title_vertical": {
"type": "panel",
"size": [ "100%", 3 ]
}
},
{
"section_title": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", 20 ],
"layer": 1,
"controls": [
{
"padding_title_horizontal": {
"type": "panel",
"size": [ 3, "100%" ]
}
},
{
"testTitle@common_csb.csb_header": {}
}
]
}
},
{
"dropdown_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"dropdown_stack_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100% - 8px", "100%c" ],
"controls": [
{
"current_toggle@store_inventory.current_toggle": {
"$focus_id": "current_toggle"
}
},
{
"current_dropdown_box_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"current_dropdown_box@store_inventory.dropdown_box": {
"$dropdown_collection_name": "current_items_collection"
}
}
]
}
},
{
"pad_1": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"removed_toggle@store_inventory.removed_toggle": {
"$focus_id": "removed_toggle"
}
},
{
"removed_dropdown_box_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"removed_dropdown_box@store_inventory.dropdown_box": {
"$dropdown_collection_name": "removed_items_collection"
}
}
]
}
},
{
"pad_2": {
"type": "panel",
"size": [ "100%", 5 ]
}
}
]
}
}
]
}
}
]
},
"subscriptions_text_panel": {
"type": "panel",
"size": [ "100% - 6px", "100%c" ],
"controls": [
{
"subscriptions_text@common.minecraftTenLabel": {
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"offset": [ 0, -2 ],
"size": [ "default", 10 ],
"max_size": [ "100%", 10 ],
"text": "store.inventory.button.subscriptions",
"color": "$text_color"
}
}
]
},
"realms_plus_stack_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"section_title": {
"type": "image",
"size": [ "100%", 20 ],
"texture": "textures/ui/purple_gradient",
"tiled": "y",
"layer": 1,
"controls": [
{
"border": {
"type": "image",
"size": [ "100%", "100%" ],
"texture": "textures/ui/square_image_border_white",
"color": "$realms_plus_border_color",
"layer": 4
}
},
{
"section_title_label@common.minecraftTenLabel": {
"type": "label",
"size": [ "default", 10 ],
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"offset": [ 5, -1 ],
"max_size": [ "100%", 10 ],
"text": "store.realmsPlus",
"color": "$generic_button_text_color",
"layer": 3
}
},
{
"particles": {
"type": "image",
"size": [ 20, 20 ],
"texture": "textures/ui/realms_particles",
"anchor_from": "right_middle",
"anchor_to": "right_middle",
"offset": [ -10, 0 ],
"layer": 2
}
}
]
}
},
{
"dropdown_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"dropdown_stack_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100% - 8px", "100%c" ],
"controls": [
{
"pad_0": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"current_toggle@store_inventory.current_toggle": {
"$focus_id": "current_toggle"
}
},
{
"current_dropdown_box_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"current_dropdown_box@store_inventory.dropdown_box": {
"$dropdown_collection_name": "current_items_collection"
}
}
]
}
},
{
"pad_1": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"removed_toggle@store_inventory.removed_toggle": {
"$focus_id": "removed_toggle"
}
},
{
"removed_dropdown_box_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"removed_dropdown_box@store_inventory.dropdown_box": {
"$dropdown_collection_name": "removed_items_collection"
}
}
]
}
},
{
"pad_2": {
"type": "panel",
"size": [ "100%", 5 ]
}
}
]
}
}
]
}
}
]
},
"dropdown_button_content": {
"type": "stack_panel",
"orientation": "horizontal",
"use_priority": true,
"size": [ "100% - 6px", 15 ],
"controls": [
{
"title_label@common.minecraftTenLabel": {
"priority": 0,
"size": [ "default", 10 ],
"max_size": [ "fill", 10 ],
"text": "$title_text",
"color": "$text_color",
"text_alignment": "left"
}
},
{
"pad_0_fill": {
"priority": 0,
"type": "panel",
"size": [ "fill", "100%" ]
}
},
{
"pad_0": {
"priority": 0,
"type": "panel",
"size": [ 1, "100%" ]
}
},
{
"icon_panel": {
"priority": 2,
"type": "panel",
"size": [ "100%c", "100%" ],
"controls": [
{
"block_icon": {
"type": "image",
"size": "$icon_size",
"texture": "$icon_texture"
}
}
]
}
},
{
"pad_1": {
"priority": 2,
"type": "panel",
"size": [ 3, "100%" ]
}
},
{
"pad_2": {
"priority": 1,
"type": "panel",
"size": [ 1, "100%" ]
}
},
{
"count_panel": {
"priority": 1,
"type": "panel",
"size": [ "100%c", "100%" ],
"max_size": [ "50%", "100%" ],
"controls": [
{
"count": {
"type": "label",
"size": [ "default", 10 ],
"text": "#collection_count",
"color": "$text_color",
"bindings": [
{
"binding_collection_name": "$dropdown_collection_name",
"binding_name": "#collection_count",
"binding_type": "collection"
}
]
}
}
]
}
},
{
"pad_3": {
"priority": 2,
"type": "panel",
"size": [ 5, "100%" ]
}
},
{
"right_carrot": {
"priority": 0,
"type": "panel",
"size": [ "100%c", "100%" ],
"controls": [
{
"right@store_inventory.right_image": {
"color": "$text_color"
}
}
],
"bindings": [
{
"binding_collection_name": "$dropdown_collection_name",
"binding_name": "(not #subcategories_visible)",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"down_carrot": {
"priority": 0,
"type": "panel",
"size": [ "100%c", "100%" ],
"controls": [
{
"down@store_inventory.down_image": {
"color": "$text_color"
}
}
],
"bindings": [
{
"binding_collection_name": "$dropdown_collection_name",
"binding_name": "#subcategories_visible",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
}
]
},
"owned_dropdown_content@store_inventory.dropdown_button_content": {
"$title_text": "store.inventory.dropdown.owned",
"$icon_texture|default": "textures/ui/creative_icon",
"$icon_size": [ 20, 16 ],
"$dropdown_collection_name": "owned_items_collection"
},
"current_dropdown_content@store_inventory.dropdown_button_content": {
"$title_text": "store.inventory.dropdown.current",
"$icon_texture|default": "",
"$icon_size": [ 11, 14 ],
"$dropdown_collection_name": "current_items_collection"
},
"removed_dropdown_content@store_inventory.dropdown_button_content": {
"$title_text": "store.inventory.dropdown.removed",
"$icon_texture|default": "",
"$icon_size": [ 11, 14 ],
"$dropdown_collection_name": "removed_items_collection"
},
"dropdown_box": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100% - 8px", "100%c" ],
"bindings": [
{
"binding_collection_name": "$dropdown_collection_name",
"binding_name": "#subcategories_visible",
"binding_name_override": "#visible",
"binding_type": "collection"
}
],
"controls": [
{
"top_pad": {
"type": "panel",
"size": [ "100%", 4 ]
}
},
{
"all@store_inventory.category_panel_button": {
"$category_label": "gui.all",
"$category_icon": "textures/ui/glyph_all_pack_small", // This is a blank texture file for now.
"$category_count": "#collection_count",
"$category_pressed_button_name": "button.all",
"$icon_visible": "#collections_icon_visible"
}
},
{
"divider_0@store_inventory.divider_panel": {
"layer": 2
}
},
{
"addons@store_inventory.category_panel_button": {
"$category_label": "store.search.filter.addOns",
"$category_icon": "textures/ui/glyph_addon_pack_small",
"$category_count": "#addons_count",
"$category_pressed_button_name": "button.addons",
"$icon_visible": "#category_addons_icon_visible",
"bindings": [
{
"binding_type": "collection",
"binding_collection_name": "$dropdown_collection_name",
"binding_name": "#addons_visible",
"binding_name_override": "#visible"
}
]
}
},
{
"divider_1@store_inventory.divider_panel": {
"layer": 2,
"bindings": [
{
"binding_type": "collection",
"binding_collection_name": "$dropdown_collection_name",
"binding_name": "#addons_visible",
"binding_name_override": "#visible"
}
]
}
},
{
"skins@store_inventory.category_panel_button": {
"$category_label": "store.search.filter.skinPacks",
"$category_icon": "textures/ui/glyph_skin_pack_small",
"$category_count": "#skins_count",
"$category_pressed_button_name": "button.skins",
"$icon_visible": "#category_skins_icon_visible"
}
},
{
"divider_2@store_inventory.divider_panel": {
"layer": 2
}
},
{
"worlds@store_inventory.category_panel_button": {
"$category_label": "store.search.filter.worldTemplates",
"$category_icon": "textures/ui/glyph_world_template_small",
"$category_count": "#worlds_count",
"$category_pressed_button_name": "button.worlds",
"$icon_visible": "#category_worlds_icon_visible"
}
},
{
"divider_3@store_inventory.divider_panel": {
"layer": 2
}
},
{
"textures@store_inventory.category_panel_button": {
"$category_label": "store.search.filter.texturePacks",
"$category_icon": "textures/ui/glyph_resource_pack_small",
"$category_count": "#textures_count",
"$category_pressed_button_name": "button.textures",
"$icon_visible": "#category_textures_icon_visible"
}
},
{
"divider_4@store_inventory.divider_panel": {
"layer": 2
}
},
{
"mashups@store_inventory.category_panel_button": {
"$category_label": "store.search.filter.mashupPacks",
"$category_icon": "textures/ui/glyph_mashup_pack_small",
"$category_count": "#mashups_count",
"$category_pressed_button_name": "button.mashups",
"$icon_visible": "#category_mashups_icon_visible"
}
},
{
"bottom_pad": {
"type": "panel",
"size": [ "100%", 4 ]
}
}
]
},
"category_panel_button@common.button": {
"size": [ "100%", "100%c + 4px" ],
"$pressed_button_name": "$category_pressed_button_name",
"property_bag": {
"#collection_name": "$dropdown_collection_name"
},
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "$category_pressed_button_name",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "$category_pressed_button_name",
"mapping_type": "pressed"
}
],
"controls": [
{
"default@store_inventory.category_stack_panel": {}
},
{
"hover@store_inventory.category_stack_panel": {
"$color": "$csub_text_color"
}
},
{
"pressed@store_inventory.category_stack_panel": {
"$color": "$csub_text_color"
}
}
]
},
"category_stack_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", 10 ],
"$color|default": "$generic_button_text_color",
"controls": [
{
"text": {
"type": "label",
"size": [ "default", "100%" ],
"max_size": [ "50%", "100%" ],
"text": "$category_label",
"color": "$color"
}
},
{
"fill_pad": {
"type": "panel",
"size": [ "fill", "100%" ]
}
},
{
"icon": {
"type": "image",
"size": [ 10, 10 ],
"texture": "$category_icon",
"color": "$color",
"visible": "$icon_visible",
"bindings": [
{
"binding_type": "collection",
"binding_collection_name": "$dropdown_collection_name",
"binding_name": "$icon_visible",
"binding_name_override": "#visible"
}
]
}
},
{
"pad_1": {
"type": "panel",
"size": [ 2, "100%" ]
}
},
{
"number": {
"type": "label",
"size": [ "default", "100%" ],
"max_size": [ "50% - 15px", "100%" ],
"text": "$category_count",
"color": "$color",
"bindings": [
{
"binding_name": "$category_count",
"binding_type": "collection",
"binding_collection_name": "$dropdown_collection_name"
}
]
}
}
]
},
//--------------------------------------------------------------------------------
// Right Side
//--------------------------------------------------------------------------------
"search_object@common_store.search_object": {
"$has_section_above_search_panel": true,
"$upper_section_conent": "store_inventory.inventory_sign_in_panel",
"$store_offer_grid_prefix": "",
"$store_offer_grid_item_size": [ "33.3333%", "56.25%x + 36px" ],
"$store_offer_grid_bindings": [
{
"binding_name": "#max_grid_offers",
"binding_name_override": "#maximum_grid_items"
},
{
"binding_name": "#grid_list_visible",
"binding_name_override": "#visible"
}
]
},
"list_panel": {
"type": "input_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"list_panel_content": {
"type": "panel",
"bindings": [
{
"binding_type": "view",
"source_control_name": "progress_loading",
"source_property_name": "(not #visible)",
"target_property_name": "#visible",
"resolve_sibling_scope": true
}
],
"controls": [
{
"search_and_offers_grid_scroll_panel@common.scrolling_panel": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"$scrolling_pane_size": [ "100%", "100%" ],
"$scroll_size": [ 5, "100% - 8px" ],
"$scrolling_content": "store_inventory.search_object",
"$scroll_bar_left_padding_size": [ 2, 0 ],
"$scroll_bar_right_padding_size": [ 0, 0 ],
"$show_background": false,
"$bar_visible": true
}
}
]
}
},
{
"progress_loading@common_store.progress_loading": {
"layer": 100,
"bindings": [
{
"binding_name": "#page_loading_visible",
"binding_name_override": "#visible"
}
]
}
}
],
"bindings": [
{
"binding_type": "view",
"source_control_name": "$toggle_binding",
"source_property_name": "#toggle_state",
"target_property_name": "#visible",
"binding_name_override": "#visible"
}
]
},
"items_content_section@store_inventory.list_panel": {
"$toggle_binding": "owned_toggle",
"$store_offer_grid_collection_name": "items_collection",
"$offer_collection_prefix": "items"
},
"subscriptions_content_section": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100% - 4px", "100%" ],
"controls": [
{
"left_pad": {
"type": "panel",
"size": [ 4, "100%" ]
}
},
{
"search_and_offers_grid_scroll_panel@common.scrolling_panel": {
"$scrolling_pane_size": [ "100%", "100%" ],
"$scroll_size": [ 5, "100% - 4px" ],
"$scrolling_content": "general_section.view_subscriptions_section",
"$scroll_bar_left_padding_size": [ 0, 0 ],
"$scroll_bar_right_padding_size": [ 4, 0 ],
"$show_background": false,
"$bar_visible": true
}
}
]
},
"right_pane_factory": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%" ],
"collection_name": "right_pane_factory_collection",
"factory": {
"name": "inventory_section_factory",
"control_ids": {
"items_collection_tab": "@store_inventory.items_content_section",
"subscriptions_tab": "@store_inventory.subscriptions_content_section"
},
"factory_variables": [
"$store_factory_clipping_event",
"$store_factory_collection_details",
"$store_factory_binding_type",
"$store_factory_collection_prefix",
"$store_factory_collection_name",
"$store_header_size"
]
},
"bindings": [
{
"binding_name": "#inventory_section_content",
"binding_name_override": "#collection_length"
}
]
},
"content_area": {
"type": "panel",
"size": [ "100%", "100%" ],
"layer": 1,
"focus_container": true,
"use_last_focus": false,
"$focus_id": "right_side",
"focus_navigation_mode_left": "none",
"focus_navigation_mode_right": "stop",
"focus_navigation_mode_down": "contained",
"focus_navigation_mode_up": "contained",
"controls": [
{
"control": {
"type": "stack_panel",
"size": [ "100%", "100%" ],
"anchor_from": "top_right",
"anchor_to": "top_right",
"controls": [
{
"right_pane_factory@store_inventory.right_pane_factory": {}
}
]
}
}
]
},
//--------------------------------------------------------------------------------
// Screen
//--------------------------------------------------------------------------------
"main_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "100%" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"inventory_left_panel": {
"type": "panel",
"size": [ "30%", "100%" ],
"controls": [
{
"inventory_left_image": {
"type": "image",
"size": [ "100%", "100%" ],
"texture": "textures/ui/White",
"color": "$csb_panel_background",
"$fill_alpha|default": 1.0,
"alpha": "$fill_alpha",
"variables": [
{
"requires": "$is_holographic",
"$fill_alpha": 1.0
}
],
"layer": 1
}
},
{
"left_scrolling_panel@common.scrolling_panel": {
"$scrolling_content_anchor_from": "top_middle",
"$scrolling_content_anchor_to": "top_middle",
"$scrolling_content": "store_inventory.inventory_left_panel",
"$show_background": false,
"$scroll_size": [ "5px", "100% - 8px" ],
"$scroll_bar_left_padding_size": [ 4, 0 ],
"layer": 3
}
}
]
}
},
{
"divider_panel": {
"type": "panel",
"size": [ "100%c", "100% + 1px" ],
"controls": [
{
"main_divider": {
"type": "image",
"size": [ 3, "100%" ],
"offset": [ 0, -1 ],
"tiled": "y",
"texture": "textures/ui/HowToPlayDivider",
"layer": 10
}
}
]
}
},
{
"inventory_right_panel": {
"type": "panel",
"size": [ "fill", "100%" ],
"controls": [
{
"right_panel_background_image": {
"type": "image",
"size": [ "100%", "100%" ],
"texture": "textures/ui/slider_background.png",
"tiled": true,
"variables": [
{
"requires": "$is_holographic",
"$fill_alpha": 1.0
}
],
"layer": 1
}
},
{
"content_right_panel@store_inventory.content_area": {}
}
]
}
}
]
},
"store_inventory_screen_main_panel": {
"type": "panel",
"controls": [
{
"main_content_view@sidebar_navigation.sidebar_view": {
"$sidebar_main_view_content": "store_inventory.main_panel"
}
},
{
"sort_and_filter_modals@common_store.sort_and_filter_menu_modals": {}
}
]
},
"store_search_screen_content": {
"type": "panel",
"alpha": "@common_store.screen_fade_in_alpha_anim",
"propagate_alpha": true,
"disable_anim_fast_forward": true,
"$store_factory_clipping_event": "#inventory_grid_clip_event",
"controls": [
{
"main_panel@common_store.store_header_with_coins": {
"$child_control": "store_inventory.store_inventory_screen_main_panel",
"$button_text": "store.title"
}
},
{
"popup_dialog_factory": {
"type": "factory",
"control_ids": {
"no_store_connection": "@common_store.popup_dialog__no_store_connection",
"restore_popup": "@common_store.popup_dialog__restore_popup",
"restore_failed": "@common_store.popup_dialog__restore_failed"
}
}
}
]
},
"store_inventory_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": "store_inventory.store_search_screen_content",
"$header_safezone_control": "common_store.store_top_bar_filler",
"$header_bar_control": "common_store.store_top_bar",
"$screen_background_control": "common_store.store_background",
"$is_full_screen_layout": true,
"$ignore_inventory_button": "$is_sidebar_navigation_enabled",
"variables": [
{
"requires": "(not $use_animation)",
"$screen_animations": [
"@common.screen_exit_animation_no_offset"
],
"$background_animations": []
},
{
"requires": "($use_animation or (not $is_sidebar_navigation_enabled))",
"$screen_animations": [
"@common.screen_exit_animation_pop_offset",
"@common.screen_exit_animation_pop_fade"
],
"$background_animations": []
}
]
},
"signin_text_section_body": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"$body_text|default": "",
"$secondary_text|default": ""
},
"signin_text": {
"type": "label",
"text": "$body_text",
"max_size": [ "100%", "100%c" ],
"font_type": "smooth",
"color": "$store_white_text_color"
},
"signin_text_02": {
"type": "label",
"text": "$secondary_text",
"max_size": [ "100%", "100%c" ],
"font_type": "smooth",
"color": "$store_white_text_color"
},
"signin_text_section@store_inventory.signin_text_section_body": {
"controls": [
{
"signin_text@store_inventory.signin_text": {}
},
{
"line_1_padding_line_2": {
"type": "panel",
"size": [ "100%", 8 ]
}
},
{
"signin_text_02@store_inventory.signin_text_02": {}
}
]
},
"sign_in_panel_text_body@common_buttons.text_body_focus_border_for_controller_button": {
"$text_control": "store_inventory.signin_text_section",
"$text_control_size": [ "90%", "100%c" ],
"$signin_body_controls": [
{
"signin_text_section@store_inventory.signin_text_section": {}
}
]
}
}