{
  "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,
    "$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.main_panel",
          "$button_text": "store.title"
        }
      }
    ]
  },

  "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_realms_plus_screen": true,
          "$content_offer_panel_size": [ "100% - 40px", "100%" ],
          "$realms_chevron_binding_name": "#view_packs_chevron"          
        }
      }
    ]
  }

}
