{
  "namespace": "resource_packs",

  "black_image": {
    "type": "image",
    "texture": "textures/ui/Black"
  },

  "gray_image": {
    "type": "image",
    "texture": "textures/ui/Gray"
  },

  "white_image": {
    "type": "panel",
    "$glyph_color|default": [ 1.0, 1.0, 1.0 ],
    "controls": [
      {
        "border": {
          "type": "image",
          "size": [ "100%", "100%" ],
          "texture": "textures/ui/White",
          "color": "$glyph_color"
        }
      }
    ]
  },

  "icon_image": {
    "type": "image",
    "texture": "#icon_path",
    "zip_folder": "#icon_zip",
    "texture_file_system": "#icon_file_system",
    "$icon_collection_name": "none",
    "layer": 8,
    "bindings": [
      {
        "binding_collection_name": "$icon_collection_name",
        "binding_name": "#icon_path",
        "binding_name_override": "#texture",
        "binding_type": "collection"
      },
      {
        "binding_collection_name": "$icon_collection_name",
        "binding_name": "#icon_zip",
        "binding_name_override": "#zip_folder",
        "binding_type": "collection"
      },
      {
        "binding_collection_name": "$icon_collection_name",
        "binding_name": "#icon_file_system",
        "binding_name_override": "#texture_file_system",
        "binding_type": "collection"
      }
    ]
  },

  "resource_packs_toggle_button_control": {
    "type": "panel",
    "layer": 2,
    "controls": [
      {
        "icon_border@white_image": {
          "size": [ 17, 17 ],
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "offset": [ 5, 0 ],
          "layer": 1
        }
      },
      {
        "cycling_icon": {
          "type": "image",
          "size": [ 15, 15 ],
          "offset": [ 6, 0 ],
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "$icon_collection_name": "none",
          "layer": 3,
          "bindings": [
            {
              "binding_name": "$cycling_icon_path",
              "binding_name_override": "#texture",
              "binding_condition": "always"
            },
            {
              "binding_name": "$cycling_icon_zip",
              "binding_name_override": "#zip_folder",
              "binding_condition": "always"
            },
            {
              "binding_name": "$cycling_icon_file_system",
              "binding_name_override": "#texture_file_system",
              "binding_condition": "always"
            }
          ]
        }
      },
      {
        "tab_button_text": {
          "type": "label",
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "max_size": [ "100% - 34px", "100%" ],
          "offset": [ 34, 0 ],
          "text": "$button_text",
          "layer": 3,
          "color": "$text_color",
          "alpha": "$content_alpha"
        }
      }
    ]
  },

  "resource_packs_section_toggle_base@common_toggles.light_ui_toggle": {
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "size": [ "100%", "30px" ],
    "$button_size_override": [ "100%", "100% + 1px" ],

    "$button_type_panel": "resource_packs.resource_packs_toggle_button_control",

    "$radio_toggle_group": true,
    "$toggle_name": "navigation_tab",
    "$toggle_group_default_selected": "$default_selector_toggle_index",

    "$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"
  },

  "icon_lock": {
    "type": "image",
    "texture": "textures/ui/lock",
    "size": [ 8, 8 ]
  },

  "icon_unlock": {
    "type": "image",
    "texture": "textures/ui/unLock",
    "size": [ 10, 8 ]
  },

  "unlock_panel": {
    "layer": 4,
    "type": "panel",
    "size": [ 12, 10 ],
    "controls": [
      {
        "icon_unlock@resource_packs.icon_unlock": {
          "layer": 1,
          "anchor_from": "left_middle",
          "anchor_to": "left_middle"
        }
      }
    ],
    "bindings": [
      {
        "binding_name": "#is_premium_unlocked",
        "binding_name_override": "#visible",
        "binding_collection_name": "$unlock_pack_collection",
        "binding_type": "collection"
      }
    ]
  },

  "selected_icon_image@resource_packs.icon_image": {
    "$icon_collection_name": "$selected_pack_items"
  },

  "available_icon_image@resource_packs.icon_image": {
    "$icon_collection_name": "$available_pack_items"
  },

  "unowned_icon_image@resource_packs.icon_image": {
    "$icon_collection_name": "$unowned_pack_items"
  },

  "invalid_icon_image@resource_packs.icon_image": {
    "$icon_collection_name": "$invalid_pack_items"
  },

  "arrow_image": {
    "type": "image",
    "size": [ 24, 24 ]
  },

  "disabled_button_image": {
    "type": "image",
    "texture": "textures/ui/disabledButton",
    "size": [ 16, 16 ],
    "layer": 8
  },

  "button_image": {
    "type": "image",
    "texture": "$buttonImage"
  },

  "minus_image": {
    "type": "image",
    "size": [ 11, 3 ],
    "texture": "textures/ui/minus"
  },

  "plus_image": {
    "type": "image",
    "size": [ 11, 11 ],
    "texture": "textures/ui/plus"
  },

  "error_image": {
    "type": "image",
    "size": [ 9, 14 ],
    "texture": "textures/ui/Caution"
  },

  "no_error_image": {
    "type": "image",
    "size": [ 14, 12 ],
    "texture": "textures/ui/confirm"
  },

  "up_arrow_image@resource_packs.arrow_image": {
    "texture": "textures/ui/up_arrow",
    "size": [ 12, 12 ]
  },

  "down_arrow_image@resource_packs.arrow_image": {
    "texture": "textures/ui/down_arrow",
    "size": [ 12, 12 ]
  },

  "progress_loading_bars": {
    "type": "image",
    "layer": 1,
    "texture": "textures/ui/loading_bar",
    "size": [ 16, 8 ],
    "uv_size": [ 64, 8 ],
    "uv": "@common.bar_animation",
    "color": [ 0.7, 0.7, 0.7, 1.0 ]
  },

  "error_image_wrapper": {
    "type": "panel",
    "anchor_from": "top_middle",
    "anchor_to": "top_middle",
    "controls": [
      {
        "error_image@resource_packs.error_image": {
          "bindings": [
            {
              "binding_collection_name": "$button_collection_name",
              "binding_name": "#has_errors",
              "binding_name_override": "#visible",
              "binding_type": "collection"
            }
          ]
        }
      },
      {
        "no_error_image@resource_packs.no_error_image": {
          "bindings": [
            {
              "binding_collection_name": "$button_collection_name",
              "binding_name": "#error_free",
              "binding_name_override": "#visible",
              "binding_type": "collection"
            }
          ]
        }
      },
      {
        "progress_loading_bars@resource_packs.progress_loading_bars": {
          "bindings": [
            {
              "binding_collection_name": "$button_collection_name",
              "binding_name": "#report_generating",
              "binding_name_override": "#visible",
              "binding_type": "collection"
            }
          ]
        }
      }
    ]
  },

  "options_icon": {
    "type": "panel",
    "size": [ 15, 15 ],
    "offset": "$button_press_offset",
    "controls": [
      {
        "glyph_color": {
          "type": "image",
          "texture": "textures/ui/debug_glyph",
          "color": "$glyph_color"
        }
      },
      {
        "glyph": {
          "type": "image",
          "texture": "textures/ui/debug_glyph_color"
        }
      }
    ]
  },

  "common_pack_button@common.button": {
    "sound_volume": 1.0,
    "size": [ "100%", "100%" ],
    "focus_enabled": true
  },

  "available_pack_button_layout": {
    "type": "panel",
    "controls": [
      {
        "pack_background@resource_packs.pack_background": {
          "layer": 1,
          "$collection_name": "$available_pack_items"
        }
      },
      {
        "available_icon_image@resource_packs.available_icon_image": {
          "layer": 4,
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "size": [ 42, 42 ],
          "offset": [ 1, 0 ]
        }
      },
      {
        "name_panel": {
          "type": "stack_panel",
          "anchor_from": "top_right",
          "anchor_to": "top_right",
          "orientation": "horizontal",
          "size": [ "100% - 48px", "10px" ],
          "offset": [ -2, 2 ],
          "controls": [
            {
              "available_pack_name_label@resource_packs.available_pack_name_label": {
                "layer": 5,
                "size": [ "fill", 10 ]
              }
            },
            {
              "lock_panel": {
                "layer": 5,
                "type": "panel",
                "size": [ 10, 10 ],
                "controls": [
                  {
                    "icon_lock@resource_packs.icon_lock": {
                      "layer": 1,
                      "anchor_from": "top_left",
                      "anchor_to": "top_left"
                    }
                  }
                ],
                "bindings": [
                  {
                    "binding_name": "#is_premium_locked",
                    "binding_name_override": "#visible",
                    "binding_collection_name": "$available_pack_items",
                    "binding_type": "collection"
                  }
                ]
              }
            },
            {
              "unlock_panel@resource_packs.unlock_panel": {
                "$unlock_pack_collection": "$available_pack_items"
              }
            },
            {
              "available_file_size_label@resource_packs.available_file_size_label": {
                "layer": 5,
                "size": [ "default", 10 ]
              }
            }

          ]
        }
      },
      {
        "description_panel": {
          "layer": 4,
          "type": "panel",
          "anchor_from": "bottom_right",
          "anchor_to": "bottom_right",
          "size": [ "100%-45px", "30px" ],
          "offset": [ -1, -1 ],
          "controls": [
            {
              "available_pack_description_label@resource_packs.available_pack_description_label": {
                "layer": 1,
                "size": [ "100%-2px", "100%" ],
                "offset": [ 1, 0 ]
              }
            }
          ]
        }
      }
    ]
  },

  "available_pack_button_layout_hover": {
    "type": "panel",
    "controls": [
      {
        "pack_background@resource_packs.pack_background": {
          "layer": 1,
          "$collection_name": "$available_pack_items"
        }
      },
      {
        "hover_image@resource_packs.white_image": {
          "layer": 3
        }
      },
      {
        "available_icon_image@resource_packs.available_icon_image": {
          "layer": 4,
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "size": [ 42, 42 ],
          "offset": [ 1, 0 ]
        }
      },
      {
        "name_panel": {
          "type": "stack_panel",
          "anchor_from": "top_right",
          "anchor_to": "top_right",
          "orientation": "horizontal",
          "size": [ "100% - 48px", "10px" ],
          "offset": [ -2, 2 ],
          "controls": [
            {
              "available_pack_name_label@resource_packs.available_pack_name_label": {
                "layer": 5,
                "size": [ "fill", 10 ]
              }
            },
            {
              "lock_panel": {
                "layer": 5,
                "type": "panel",
                "size": [ 10, 10 ],
                "controls": [
                  {
                    "icon_lock@resource_packs.icon_lock": {
                      "layer": 1,
                      "anchor_from": "top_left",
                      "anchor_to": "top_left"
                    }
                  }
                ],
                "bindings": [
                  {
                    "binding_name": "#is_premium_locked",
                    "binding_name_override": "#visible",
                    "binding_collection_name": "$available_pack_items",
                    "binding_type": "collection"
                  }
                ]
              }
            },
            {
              "unlock_panel@resource_packs.unlock_panel": {
                "$unlock_pack_collection": "$available_pack_items"
              }
            },
            {
              "available_file_size_label@resource_packs.available_file_size_label": {
                "layer": 5,
                "size": [ "default", 10 ]
              }
            }

          ]
        }
      },
      {
        "description_panel": {
          "layer": 4,
          "type": "panel",
          "anchor_from": "bottom_right",
          "anchor_to": "bottom_right",
          "size": [ "100%-45px", 30 ],
          "offset": [ -1, -1 ],
          "controls": [
            {
              "available_pack_description_label@resource_packs.available_pack_description_label": {
                "layer": 1,
                "size": [ "100%-2px", "100%" ],
                "offset": [ 1, 0 ]
              }
            }
          ]
        }
      }
    ]
  },

  "available_pack_button@resource_packs.common_pack_button": {
    "$pressed_button_name": "$button.available_pack",
    "controls": [
      { "default@resource_packs.available_pack_button_layout": {} },
      { "pressed@resource_packs.available_pack_button_layout_hover": {} },
      { "hover@resource_packs.available_pack_button_layout_hover": {} }
    ],
    "bindings": [
      {
        "binding_collection_name": "$available_pack_items",
        "binding_type": "collection_details"
      }
    ]
  },

  "unowned_pack_button_layout": {
    "type": "panel",
    "controls": [
      {
        "pack_background@resource_packs.pack_background": {
          "layer": 1,
          "$collection_name": "$unowned_pack_items"
        }
      },
      {
        "unowned_icon_image@resource_packs.unowned_icon_image": {
          "layer": 4,
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "size": [ 42, 42 ],
          "offset": [ 1, 0 ]
        }
      },
      {
        "name_panel": {
          "type": "stack_panel",
          "anchor_from": "top_right",
          "anchor_to": "top_right",
          "orientation": "horizontal",
          "size": [ "100% - 48px", "10px" ],
          "offset": [ -2, 2 ],
          "controls": [
            {
              "unowned_pack_name_label@resource_packs.unowned_pack_name_label": {
                "layer": 5,
                "size": [ "fill", 10 ]
              }
            },
            {
              "lock_panel": {
                "layer": 5,
                "type": "panel",
                "size": [ 10, 10 ],
                "controls": [
                  {
                    "icon_lock@resource_packs.icon_lock": {
                      "layer": 1,
                      "anchor_from": "top_left",
                      "anchor_to": "top_left"
                    }
                  }
                ],
                "bindings": [
                  {
                    "binding_name": "#is_premium_locked",
                    "binding_name_override": "#visible",
                    "binding_collection_name": "$unowned_pack_items",
                    "binding_type": "collection"
                  }
                ]
              }
            },
            {
              "unlock_panel@resource_packs.unlock_panel": {
                "$unlock_pack_collection": "$unowned_pack_items"
              }
            },
            {
              "unowned_file_size_label@resource_packs.unowned_file_size_label": {
                "layer": 5,
                "size": [ "default", 10 ]
              }
            }

          ]
        }
      },
      {
        "description_panel": {
          "layer": 4,
          "type": "panel",
          "anchor_from": "bottom_right",
          "anchor_to": "bottom_right",
          "size": [ "100%-45px", "30px" ],
          "offset": [ -1, -1 ],
          "controls": [
            {
              "unowned_pack_description_label@resource_packs.unowned_pack_description_label": {
                "layer": 1,
                "size": [ "100%-2px", "100%" ],
                "offset": [ 1, 0 ]
              }
            }
          ]
        }
      }
    ]
  },

  "unowned_pack_button_layout_hover": {
    "type": "panel",
    "controls": [
      {
        "pack_background@resource_packs.pack_background": {
          "layer": 1,
          "$collection_name": "$unowned_pack_items"
        }
      },
      {
        "hover_image@resource_packs.white_image": {
          "layer": 3
        }
      },
      {
        "unowned_icon_image@resource_packs.unowned_icon_image": {
          "layer": 4,
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "size": [ 42, 42 ],
          "offset": [ 1, 0 ]
        }
      },
      {
        "name_panel": {
          "type": "stack_panel",
          "anchor_from": "top_right",
          "anchor_to": "top_right",
          "orientation": "horizontal",
          "size": [ "100% - 48px", "10px" ],
          "offset": [ -2, 2 ],
          "controls": [
            {
              "unowned_pack_name_label@resource_packs.unowned_pack_name_label": {
                "layer": 5,
                "size": [ "fill", 10 ]
              }
            },
            {
              "lock_panel": {
                "layer": 5,
                "type": "panel",
                "size": [ 10, 10 ],
                "controls": [
                  {
                    "icon_lock@resource_packs.icon_lock": {
                      "layer": 1,
                      "anchor_from": "top_left",
                      "anchor_to": "top_left"
                    }
                  }
                ],
                "bindings": [
                  {
                    "binding_name": "#is_premium_locked",
                    "binding_name_override": "#visible",
                    "binding_collection_name": "$unowned_pack_items",
                    "binding_type": "collection"
                  }
                ]
              }
            },
            {
              "unlock_panel@resource_packs.unlock_panel": {
                "$unlock_pack_collection": "$unowned_pack_items"
              }
            },
            {
              "unowned_file_size_label@resource_packs.unowned_file_size_label": {
                "layer": 5,
                "size": [ "default", 10 ]
              }
            }

          ]
        }
      },
      {
        "description_panel": {
          "layer": 4,
          "type": "panel",
          "anchor_from": "bottom_right",
          "anchor_to": "bottom_right",
          "size": [ "100%-45px", 30 ],
          "offset": [ -1, -1 ],
          "controls": [
            {
              "unowned_pack_description_label@resource_packs.unowned_pack_description_label": {
                "layer": 1,
                "size": [ "100%-2px", "100%" ],
                "offset": [ 1, 0 ]
              }
            }
          ]
        }
      }
    ]
  },

  "unowned_pack_button@resource_packs.common_pack_button": {
    "$pressed_button_name": "$button.unowned_pack",
    "controls": [
      { "default@resource_packs.unowned_pack_button_layout": {} },
      { "pressed@resource_packs.unowned_pack_button_layout_hover": {} },
      { "hover@resource_packs.unowned_pack_button_layout_hover": {} }
    ],
    "bindings": [
      {
        "binding_collection_name": "$unowned_pack_items",
        "binding_type": "collection_details"
      }
    ]
  },

  "invalid_pack_button_layout": {
    "type": "panel",
    "controls": [
      {
        "pack_background@resource_packs.pack_background": {
          "layer": 1,
          "$collection_name": "$invalid_pack_items"
        }
      },
      {
        "invalid_icon_image@resource_packs.invalid_icon_image": {
          "layer": 4,
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "size": [ 42, 42 ],
          "offset": [ 1, 0 ]
        }
      },
      {
        "name_panel": {
          "layer": 5,
          "type": "panel",
          "anchor_from": "top_right",
          "anchor_to": "top_right",
          "size": [ "100% - 48px", 10 ],
          "offset": [ -2, 2 ],
          "controls": [
            {
              "invalid_pack_name_label@resource_packs.invalid_pack_name_label": {
                "size": [ "100%", 10 ],
                "layer": 1
              }
            }
          ]
        }
      },
      {
        "description_panel": {
          "layer": 4,
          "type": "panel",
          "anchor_from": "bottom_right",
          "anchor_to": "bottom_right",
          "size": [ "100%-45px", "30px" ],
          "offset": [ -1, -1 ],
          "controls": [
            {
              "invalid_pack_description_label@resource_packs.invalid_pack_description_label": {
                "layer": 1,
                "size": [ "100%-2px", "100%" ],
                "offset": [ 1, 0 ]
              }
            }
          ]
        }
      }
    ]
  },

  "invalid_pack_button_layout_hover": {
    "type": "panel",
    "controls": [
      {
        "pack_background@resource_packs.pack_background": {
          "layer": 1,
          "$collection_name": "$invalid_pack_items"
        }
      },
      {
        "hover_image@resource_packs.white_image": {
          "layer": 3
        }
      },
      {
        "invalid_icon_image@resource_packs.invalid_icon_image": {
          "layer": 4,
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "size": [ 42, 42 ],
          "offset": [ 1, 0 ]
        }
      },
      {
        "name_panel": {
          "type": "panel",
          "anchor_from": "top_right",
          "anchor_to": "top_right",
          "size": [ "100% - 48px", "10px" ],
          "offset": [ -2, 2 ],
          "controls": [
            {
              "invalid_pack_name_label@resource_packs.invalid_pack_name_label": {
                "layer": 5,
                "size": [ "100%", 10 ]
              }
            }
          ]
        }
      },
      {
        "description_panel": {
          "layer": 4,
          "type": "panel",
          "anchor_from": "bottom_right",
          "anchor_to": "bottom_right",
          "size": [ "100%-45px", 30 ],
          "offset": [ -1, -1 ],
          "controls": [
            {
              "invalid_pack_description_label@resource_packs.invalid_pack_description_label": {
                "layer": 1,
                "size": [ "100%-2px", "100%" ],
                "offset": [ 1, 0 ]
              }
            }
          ]
        }
      }
    ]
  },

  "invalid_pack_button@resource_packs.common_pack_button": {
    "$pressed_button_name": "$button.invalid_pack",
    "controls": [
      { "default@resource_packs.invalid_pack_button_layout": {} },
      { "pressed@resource_packs.invalid_pack_button_layout_hover": {} },
      { "hover@resource_packs.invalid_pack_button_layout_hover": {} }
    ],
    "bindings": [
      {
        "binding_collection_name": "$invalid_pack_items",
        "binding_type": "collection_details"
      }
    ]
  },

  "empty_resource_pack_button": {
    "type": "panel",
    "size": [ 0, 0 ]
  },

  "resource_pack_button_padding": {
    "$resource_pack_button_variable|default": "",
    "type": "panel",
    // If the button we are padding is the empty button, we shouldn't be visible.
    "visible": "(not ($resource_pack_button_variable = 'resource_packs.empty_resource_pack_button'))",
    "size": "$resource_pack_button_padding_size",
    "bindings": [
      {
        "binding_type": "view",
        "source_control_name": "$resource_pack_button_variable",
        "source_property_name": "#visible",
        "target_property_name": "#visible",
        "resolve_sibling_scope": true
      }
    ]
  },

  "input_button_panel": {
    "type": "input_panel",
    "modal": true,
    "inline_modal": true,
    "focus_enabled": false,
    // We need to set the visibility false or we try to set focus to this object since it's modal.
    "visible": false,
    "layer": 1,
    "size": [ "100%c", 28 ],
    "controls": [
      {
        "border_image": {
          "type": "image",
          "size": [ "100%c + 4px", "100%" ],
          "texture": "textures/ui/Banners",
          "$resource_pack_button_0|default": "resource_packs.empty_resource_pack_button",
          "$resource_pack_button_1|default": "resource_packs.empty_resource_pack_button",
          "$resource_pack_button_2|default": "resource_packs.empty_resource_pack_button",
          "$resource_pack_button_3|default": "resource_packs.empty_resource_pack_button",
          "$resource_pack_button_4|default": "resource_packs.empty_resource_pack_button",

          "$resource_pack_button_padding_size|default": [ 2, "100%" ],

          "controls": [
            {
              "button_panel": {
                "type": "stack_panel",
                "orientation": "horizontal",
                "size": [ "100%c", 24 ],
                "controls": [
                  { "$resource_pack_button_0@$resource_pack_button_0": {} },
                  {
                    "padding_0@resource_packs.resource_pack_button_padding": {
                      "$resource_pack_button_variable": "$resource_pack_button_1"
                    }
                  },
                  { "$resource_pack_button_1@$resource_pack_button_1": {} },
                  {
                    "padding_1@resource_packs.resource_pack_button_padding": {
                      "$resource_pack_button_variable": "$resource_pack_button_2"
                    }
                  },
                  { "$resource_pack_button_2@$resource_pack_button_2": {} },
                  {
                    "padding_2@resource_packs.resource_pack_button_padding": {
                      "$resource_pack_button_variable": "$resource_pack_button_3"
                    }
                  },
                  { "$resource_pack_button_3@$resource_pack_button_3": {} },
                  {
                    "padding_3@resource_packs.resource_pack_button_padding": {
                      "$resource_pack_button_variable": "$resource_pack_button_4"
                    }
                  },
                  { "$resource_pack_button_4@$resource_pack_button_4": {} }
                ]
              }
            }
          ]
        }
      }
    ],
    "button_mappings": [
      {
        "from_button_id": "button.menu_cancel",
        "to_button_id": "$button.deselected_pack",
        "mapping_type": "global"
      },
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "$button.deselected_pack",
        "mapping_type": "global",
        "consume_event": false
      },
      {
        "from_button_id": "button.menu_left",
        "to_button_id": "button.menu_left",
        "mapping_type": "global",
        "scope": "view"
      },
      {
        "from_button_id": "button.menu_right",
        "to_button_id": "button.menu_right",
        "mapping_type": "global",
        "scope": "view"
      }
    ],
    "bindings": [
      {
        "binding_collection_name": "$button_collection_name",
        "binding_name": "#direction_button_visible",
        "binding_name_override": "#visible",
        "binding_type": "collection"
      },
      {
        "binding_name": "#is_using_gamepad",
        "binding_name_override": "#modal",
        "binding_type": "global"
      }
    ]
  },

  "selected_pack_button_layout": {
    "type": "panel",
    "controls": [
      {
        "pack_background@resource_packs.pack_background": {
          "layer": 1,
          "$collection_name": "$selected_pack_items"
        }
      },
      {
        "selected_icon_image@resource_packs.selected_icon_image": {
          "layer": 4,
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "size": [ 42, 42 ],
          "offset": [ 1, 0 ]
        }
      },
      {
        "name_panel": {
          "layer": 5,
          "type": "stack_panel",
          "orientation": "horizontal",
          "anchor_from": "top_right",
          "anchor_to": "top_right",
          "size": [ "100% - 48px", 10 ],
          "offset": [ -2, 2 ],
          "controls": [
            {
              "selected_pack_name_label@resource_packs.selected_pack_name_label": {
                "size": [ "fill", 10 ],
                "layer": 1
              }
            },
            {
              "unlock_panel@resource_packs.unlock_panel": {
                "$unlock_pack_collection": "$selected_pack_items"
              }
            },
            {
              "selected_file_size_label@resource_packs.selected_file_size_label": {
                "size": [ "default", 10 ],
                "layer": 1
              }
            }
          ]
        }
      },
      {
        "description_panel": {
          "layer": 4,
          "type": "panel",
          "anchor_from": "bottom_right",
          "anchor_to": "bottom_right",
          "size": [ "100%-45px", 30 ],
          "offset": [ -1, -1 ],
          "controls": [
            {
              "selected_pack_description_label@resource_packs.selected_pack_description_label": {
                "layer": 1,
                "size": [ "100%-2px", "100%" ],
                "offset": [ 1, 0 ]
              }
            }
          ]
        }
      }
    ]
  },

  "selected_pack_button_layout_hover": {
    "type": "panel",
    "controls": [
      {
        "pack_background@resource_packs.pack_background": {
          "layer": 1,
          "$collection_name": "$selected_pack_items"
        }
      },
      {
        "hover_image@resource_packs.white_image": {
          "layer": 3
        }
      },
      {
        "selected_icon_image@resource_packs.selected_icon_image": {
          "layer": 4,
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "size": [ 42, 42 ],
          "offset": [ 1, 0 ]
        }
      },
      {
        "name_panel": {
          "layer": 5,
          "type": "stack_panel",
          "orientation": "horizontal",
          "anchor_from": "top_right",
          "anchor_to": "top_right",
          "size": [ "100% - 48px", 10 ],
          "offset": [ -2, 2 ],
          "controls": [
            {
              "selected_pack_name_label@resource_packs.selected_pack_name_label": {
                "size": [ "fill", 10 ],
                "layer": 1
              }
            },
            {
              "unlock_panel@resource_packs.unlock_panel": {
                "$unlock_pack_collection": "$selected_pack_items"
              }
            },
            {
              "selected_file_size_label@resource_packs.selected_file_size_label": {
                "size": [ "default", 10 ],
                "layer": 1
              }
            }
          ]
        }
      },
      {
        "description_panel": {
          "layer": 4,
          "type": "panel",
          "anchor_from": "bottom_right",
          "anchor_to": "bottom_right",
          "size": [ "100%-45px", "30px" ],
          "offset": [ -1, -1 ],
          "controls": [
            {
              "selected_pack_description_label@resource_packs.selected_pack_description_label": {
                "layer": 1,
                "size": [ "100%-2px", "100%" ],
                "offset": [ 1, 0 ]
              }
            }
          ]
        }
      }
    ]
  },

  "selected_pack_button@resource_packs.common_pack_button": {
    "$pressed_button_name": "$button.selected_pack",
    "controls": [
      { "default@resource_packs.selected_pack_button_layout": {} },
      { "pressed@resource_packs.selected_pack_button_layout_hover": {} },
      { "hover@resource_packs.selected_pack_button_layout_hover": {} }
    ],
    "bindings": [
      {
        "binding_collection_name": "$selected_pack_items",
        "binding_type": "collection_details"
      }
    ]
  },

  "selected_pack_movement_button@common_buttons.light_glyph_button": {
    "$pressed_button_name": "$button.selected_pack",
    "$enabled_binding_name": "(not #is_selected)",
    "$visible_binding_name|default": "",
    "$visible_binding_type|default": "collection",

    // If $visible_binding_name isn't set we won't use that bind.
    "variables": [
      {
        "requires": "($visible_binding_name = '' and $visible_binding_type = collection)",
        "$visible_binding_type": "none"
      }
    ],

    "size": [ 24, 24 ],
    "bindings": [
      {
        "binding_collection_name": "$button_collection_name",
        "binding_type": "collection_details"
      },
      {
        "binding_collection_name": "$button_collection_name",
        "binding_name": "$enabled_binding_name",
        "binding_name_override": "#enabled",
        "binding_type": "collection"
      },
      {
        "binding_collection_name": "$button_collection_name",
        "binding_name": "$visible_binding_name",
        "binding_name_override": "#visible",
        "binding_type": "$visible_binding_type"
      }
    ]
  },

  "selected_pack_minus_button@resource_packs.selected_pack_movement_button": {
    "default_focus_precedence": 1,
    "$pressed_button_name": "$button.move_left",
    "$button_content": "resource_packs.minus_image",
    "$enabled_binding_name": "#can_move"
  },

  "selected_pack_plus_button@resource_packs.selected_pack_movement_button": {
    "default_focus_precedence": 1,
    "$pressed_button_name": "$button.move_left",
    "$button_content": "resource_packs.plus_image",
    "$enabled_binding_name": "#can_move"
  },

  "selected_pack_up_button@resource_packs.selected_pack_movement_button": {
    "$pressed_button_name": "$button.sort_up",
    "$button_content": "resource_packs.up_arrow_image",
    "$enabled_binding_name": "#can_sort_up",
    "$button_content_offset": [ 1, 1 ]
  },

  "selected_pack_down_button@resource_packs.selected_pack_movement_button": {
    "$pressed_button_name": "$button.sort_down",
    "$button_content": "resource_packs.down_arrow_image",
    "$enabled_binding_name": "#can_sort_down",
    "$button_content_offset": [ 1, 1 ]
  },

  "selected_pack_warning_button@common_buttons.light_content_button": {
    "$pressed_button_name": "$button.report_errors",
    "$button_content": "resource_packs.error_image_wrapper",

    "size": [ 24, 24 ],
    "bindings": [
      {
        "binding_collection_name": "$button_collection_name",
        "binding_type": "collection_details"
      },
      {
        "binding_collection_name": "$button_collection_name",
        "binding_name": "(not #report_generating)",
        "binding_name_override": "#enabled",
        "binding_type": "collection"
      },
      {
        "binding_collection_name": "$button_collection_name",
        "binding_name": "#report_button_visible",
        "binding_name_override": "#visible",
        "binding_type": "collection"
      }
    ]
  },

  "selected_pack_options_button@common_buttons.light_glyph_button": {
    "size": [ 24, 24 ],
    "$pressed_button_name": "$button.pack_settings",
    "$button_type_panel": "resource_packs.options_icon",

    "bindings": [
      {
        "binding_type": "collection",
        "binding_collection_name": "$button_collection_name",
        "binding_name": "#has_pack_settings",
        "binding_name_override": "#visible"
      },
      {
        "binding_type": "collection_details",
        "binding_collection_name": "$button_collection_name"
      }
    ]
  },

  "white_label": {
    "type": "label",
    "color": "$main_header_text_color"
  },

  "gray_label": {
    "type": "label",
    "color": "$dark_button_secondary_default_text_color"
  },

  "title_label@resource_packs.white_label": {
    "text": "resourcePack.title"
  },

  "available_packs_title_label@resource_packs.white_label": {
    "text": "$available_label_text"
  },

  "unowned_packs_title_label@resource_packs.white_label": {
    "text": "$unowned_label_text"
  },

  "suggested_content_offers_title_label@resource_packs.white_label": {
    "text": "$suggested_content_offers_label_text",
    "$suggested_content_offers_binding_type|default": "global",
    "bindings": [
      {
        "binding_type": "$suggested_content_offers_binding_type",
        "binding_name": "$suggested_content_offers_label_text"
      }
    ]
  },

  "selected_packs_title_label@resource_packs.white_label": {
    "text": "$selected_label_text"
  },

  "name_label@resource_packs.white_label": {
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "text": "#name"
  },

  "size_label@resource_packs.white_label": {
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "text": "#size"
  },

  "description_label@resource_packs.white_label": {
    "text": "$bottom_description_text"
  },

  "pack_label@resource_packs.gray_label": {
    "text": "#description"
  },

  "selected_pack_description_label@resource_packs.pack_label": {
    "$desc_collection_name": "$selected_pack_items",
    "bindings": [
      {
        "binding_collection_name": "$desc_collection_name",
        "binding_name": "#description",
        "binding_type": "collection"
      }
    ]
  },

  "available_pack_description_label@resource_packs.selected_pack_description_label": {
    "$desc_collection_name": "$available_pack_items"
  },

  "unowned_pack_description_label@resource_packs.selected_pack_description_label": {
    "$desc_collection_name": "$unowned_pack_items"
  },

  "selected_pack_name_label@resource_packs.name_label": {
    "$name_collection_name": "$selected_pack_items",
    "bindings": [
      {
        "binding_collection_name": "$name_collection_name",
        "binding_name": "#name",
        "binding_type": "collection"
      }
    ]
  },

  "selected_file_size_label@resource_packs.size_label": {
    "$size_collection_name": "$selected_pack_items",
    "bindings": [
      {
        "binding_collection_name": "$size_collection_name",
        "binding_name": "#size",
        "binding_type": "collection"
      }
    ]
  },

  "available_pack_name_label@resource_packs.selected_pack_name_label": {
    "$name_collection_name": "$available_pack_items"
  },

  "available_file_size_label@resource_packs.selected_file_size_label": {
    "$size_collection_name": "$available_pack_items"
  },

  "unowned_pack_name_label@resource_packs.selected_pack_name_label": {
    "$name_collection_name": "$unowned_pack_items"
  },

  "unowned_file_size_label@resource_packs.selected_file_size_label": {
    "$size_collection_name": "$unowned_pack_items"
  },

  "invalid_pack_name_label@resource_packs.selected_pack_name_label": {
    "$name_collection_name": "$invalid_pack_items"
  },

  "invalid_pack_description_label@resource_packs.selected_pack_description_label": {
    "$desc_collection_name": "$invalid_pack_items"
  },

  "available_panel": {
    "type": "panel",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "size": [ "50%-4px", "100%-1px" ],
    "offset": [ 3, 0 ],
    "controls": [
      {
        "selected_packs@common.scrolling_panel": {
          "$scrolling_content": "resource_packs.available_stack_panel",
          "$scroll_pane_name": "available_packs_pane",
          "$scrolling_pane_size": [ "100%-2px", "100%" ],
          "$scrolling_pane_offset": [ 2, 0 ],
          "$show_background": false,
          "$scroll_size": [ 6, "100%-4px" ],
          "variables": [
            {
              "requires": "$pocket_screen",
              "$touch": true
            }
          ]
        }
      }
    ]
  },

  "checkbox_visuals@common.toggle_visuals": {
    "size": [ 30, "100%" ],
    "anchor_from": "left_middle",
    "anchor_to": "left_middle"
  },

  "header_control@common.checkbox": {
    "size": [ "100%", "100%" ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "$toggle_name": "force_user_agreement_level",
    "$toggle_state_binding_name": "#force_user_agreement_level",
    "$toggle_enabled_binding_name": "#force_user_agreement_level_enabled",
    "$enabled|default": false,
    "enabled": "$enabled",
    "variables": [
      {
        "requires": "$show_checkbox",
        "$toggle_enabled_binding_type": "global",
        "$enabled": true
      }
    ],

    "controls": [
      {
        "header_description_stack_panel": {
          "type": "stack_panel",
          "orientation": "horizontal",
          "size": [ "100%", "100%" ],
          "anchor_from": "top_left",
          "anchor_to": "top_left",
          "$header_text": "resourcePack.header.behavior",
          "$text_offset": [ 5, 3 ],
          "variables": [
            {
              "requires": "$show_checkbox",
              "$header_text": "resourcePack.header.level",
              "$text_offset": [ -2, 3 ]
            }
          ],
          "controls": [
            {
              "checkbox_visuals@resource_packs.checkbox_visuals": {
                "visible": "$show_checkbox"
              }
            },
            {
              "buffer_panel": {
                "type": "panel",
                "layer": 3,
                "size": [ "fill", "default" ],
                "controls": [
                  {
                    "label@resource_packs.description_label": {
                      "offset": "$text_offset",
                      "size": [ "100%-6px", "100% - 3px" ],
                      "text": "$header_text",
                      "anchor_from": "center",
                      "anchor_to": "center"
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  },

  "panel_bg": {
    "type": "panel",
    "controls": [
      { "black_background@resource_packs.black_image": { "layer": 1 } },
      {
        "gray@resource_packs.gray_image": {
          "size": [ "100%-2px", "100%-2px" ],
          "layer": 2
        }
      }
    ]
  },

  "selected_stack_panel": {
    "type": "stack_panel",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "controls": [
      {
        "error_panel": {
          "type": "panel",
          "visible": "(not $is_pregame)",
          "size": [ "100%", 30 ],
          "controls": [
            { "panel_bg@resource_packs.panel_bg": {} },
            {
              "error_label": {
                "type": "label",
                "color": "$light_grid_item_text_color",
                "offset": [ 5, 3 ],
                "size": [ "100% - 10px", "100% - 6px" ],
                "text": "$in_game_error_text",
                "anchor_from": "top_left",
                "anchor_to": "top_left",
                "layer": 3
              }
            }
          ]
        }
      },
      {
        "offset_0": {
          "type": "panel",
          "visible": "(not $is_pregame)",
          "size": [ "100%", "6px" ]
        }
      },
      {
        "top_panel": {
          "type": "panel",
          "visible": "$top_label_box",
          "size": [ "100%", 30 ],
          "$force_pack_download_binding_type|default": "none",
          "controls": [
            { "panel_bg@resource_packs.panel_bg": {} },
            { "header_control@resource_packs.header_control": {} }
          ],
          "bindings": [
            {
              "binding_name": "#force_pack_download_enabled_level",
              "binding_name_override": "#visible",
              "binding_type": "$force_pack_download_binding_type"
            }
          ]
        }
      },
      {
        "offset_if_top_panel_active": {
          "type": "panel",
          "visible": "$top_label_box",
          "size": [ "100%", "6px" ]
        }
      },
      {
        "selected_label_and_size_stack_panel": {
          "type": "stack_panel",
          "orientation": "horizontal",
          "size": [ "100%", 12 ],
          "controls": [
            {
              "selected_packs_title_label@resource_packs.selected_packs_title_label": {
                "size": [ "fill", 12 ]
              }
            },
            {
              "loaded_extensions_size_label": {
                "type": "label",
                "color": "$light_grid_item_text_color",
                "size": [ "default", 12 ],
                "anchor_to": "top_left",
                "anchor_from": "top_left",
                "text": "$total_size_binding",
                "bindings": [
                  {
                    "binding_name": "$total_size_binding"
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "selected_pack_grid@resource_packs.selected_pack_grid": {
          "size": [ "100%", "default" ]
        }
      },
      {
        "default_item": {
          "type": "panel",
          "size": [ "100%-2px", "44px" ],
          "controls": [
            { "black_background@resource_packs.black_image": { "layer": 1 } },
            {
              "gray@resource_packs.gray_image": {
                "anchor_from": "right_middle",
                "anchor_to": "right_middle",
                "size": [ "100%-45px", "42px" ],
                "offset": [ -1, 0 ],
                "layer": 2
              }
            },
            {
              "icon_image@resource_packs.icon_image": {
                "layer": 4,
                "anchor_from": "left_middle",
                "anchor_to": "left_middle",
                "size": [ 42, 42 ],
                "offset": [ 1, 0 ],
                "type": "image",
                "texture": "$default_item_texture",
                "texture_file_system": "$default_item_file_system",
                "zip_folder": "$default_item_zip",
                "bindings": [
                  {
                    "binding_name": "$default_item_texture",
                    "binding_name_override": "#texture"
                  },
                  {
                    "binding_name": "$default_item_file_system",
                    "binding_name_override": "#texture_file_system"
                  },
                  {
                    "binding_name": "$default_item_zip",
                    "binding_name_override": "#zip_folder"
                  }
                ]
              }
            },
            {
              "name_panel": {
                "layer": 5,
                "type": "panel",
                "anchor_from": "top_right",
                "anchor_to": "top_right",
                "size": [ "100% - 48px", 10 ],
                "offset": [ -2, 2 ],
                "controls": [
                  {
                    "white_label@resource_packs.white_label": {
                      "anchor_from": "top_left",
                      "anchor_to": "top_left",
                      "text": "$default_item_title",
                      "layer": 1
                    }
                  }
                ]
              }
            },
            {
              "description_panel": {
                "layer": 4,
                "type": "panel",
                "anchor_from": "bottom_right",
                "anchor_to": "bottom_right",
                "size": [ "100%-45px", 30 ],
                "offset": [ -1, -1 ],
                "controls": [
                  {
                    "gray_label@resource_packs.gray_label": {
                      "layer": 1,
                      "size": [ "100%-2px", "100%" ],
                      "text": "$default_item_description",
                      "offset": [ 1, 0 ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "offset_1": {
          "type": "panel",
          "size": [ "100%", "6px" ],
          "bindings": [
            {
              "binding_name": "(not $no_available_packs_visibility_binding)",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      {
        "available_packs_title_label@resource_packs.available_packs_title_label": {
          "size": [ "100%", "12px" ],
          "bindings": [
            {
              "binding_name": "(not $no_available_packs_visibility_binding)",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      {
        "available_pack_grid@resource_packs.available_pack_grid": {
          "size": [ "100%", "default" ],
          "$available_grid_visible_binding_name": "(not $no_available_packs_visibility_binding)",
          "$available_grid_visible_binding_type": "global"
        }
      },
      {
        "invalid_pack_grid@resource_packs.invalid_pack_grid": {
          "size": [ "100%", "default" ]
        }
      },
      {
        "unowned_packs_stack_panel": {
          "type": "stack_panel",
          "ignored": "(not $is_pregame or not $display_suggested_content_offers or $education_edition)",
          "anchor_from": "top_left",
          "anchor_to": "top_left",
          "controls": [
            {
              "offset_2": {
                "type": "panel",
                "size": [ "100%", "6px" ]
              }
            },
            {
              "unowned_packs_title_label@resource_packs.unowned_packs_title_label": {
                "size": [ "100%", "12px" ]
              }
            },
            {
              "unowned_pack_grid@resource_packs.unowned_pack_grid": {
                "size": [ "100%", "default" ]
              }
            },
            {
              "more_suggested_content_offers_button@common_buttons.light_text_button": {
                "size": [ "100% - 2px", 30 ],
                "$pressed_button_name": "$button.more_suggested_content_offers",
                "$button_text": "$view_more_unowned_content_button_text",
                "bindings": [
                  {
                    "binding_name": "$view_more_unowned_content_button_visibility_binding",
                    "binding_name_override": "#visible"
                  }
                ]
              }
            }
          ],
          "bindings": [
            {
              "binding_type": "view",
              "source_control_name": "unowned_pack_grid",
              "source_property_name": "(#collection_length > 0)",
              "target_property_name": "#visible"
            }
          ]
        }
      },
      {
        "offset_3": {
          "type": "panel",
          "size": [ "100%", "10px" ]
        }
      },
      {
        "filler_panel": {
          "type": "panel",
          "size": [ "100%", "100%c" ],
          "controls": [
            {
              "description_label@resource_packs.description_label": {
                "size": [ "100%", "default" ]
              }
            }
          ]
        }
      }
    ]
  },
  "available_stack_panel": {
    "type": "stack_panel",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "controls": [
      {
        "available_packs_title_label@resource_packs.available_packs_title_label": {
          "size": [ "100%", "12px" ]
        }
      },
      {
        "available_pack_grid@resource_packs.available_pack_grid": {
          "size": [ "100%", "default" ]
        }
      }
    ]
  },
  "pack_background": {
    "type": "panel",
    "controls": [
      { "black_image@resource_packs.black_image": { "layer": 1 } },
      {
        "white_image@resource_packs.white_image": {
          "layer": 2,
          "bindings": [
            {
              "binding_name": "#is_selected",
              "binding_name_override": "#visible",
              "binding_collection_name": "$collection_name",
              "binding_type": "collection"
            }
          ]
        }
      },
      {
        "gray_image@resource_packs.gray_image": {
          "anchor_from": "right_middle",
          "anchor_to": "right_middle",
          "size": [ "100%-45px", "42px" ],
          "offset": [ -1, 0 ],
          "layer": 3
        }
      }
    ]
  },

  "selected_pack_panel": {
    "type": "stack_panel",
    "size": [ "100%-2px", "100%c" ],
    "min_size": [ "100% - 2px", "44px" ],
    "$button_collection_name": "$selected_pack_items",
    "$resource_pack_button_0": "resource_packs.selected_pack_minus_button",
    "$resource_pack_button_1": "resource_packs.selected_pack_up_button",
    "$resource_pack_button_2": "resource_packs.selected_pack_down_button",
    "$resource_pack_button_3": "resource_packs.selected_pack_options_button",
    "$resource_pack_button_4": "resource_packs.selected_pack_warning_button",
    "controls": [
      {
        "selected_pack_button@resource_packs.selected_pack_button": {
          "size": [ "100%", 44 ],
          "layer": 1
        }
      },
      {
        "center_panel": {
          "type": "panel",
          "size": [ "100%", "100%c" ],
          "controls": [
            {
              "visibility_panel": {
                "type": "panel",
                "size": [ "100%", "100%c" ],
                "controls": [
                  {
                    "selected_pack_direction_buttons@resource_packs.input_button_panel": {
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  },
  "available_pack_panel": {
    "type": "stack_panel",
    "size": [ "100%-2px", "100%c" ],
    "min_size": [ "100% - 2px", "44px" ],
    "$button_collection_name": "$available_pack_items",
    "$resource_pack_button_0": "resource_packs.selected_pack_plus_button",
    "$resource_pack_button_1": "resource_packs.selected_pack_up_button",
    "$resource_pack_button_2": "resource_packs.selected_pack_down_button",
    "$resource_pack_button_3": "resource_packs.selected_pack_warning_button",
    "controls": [
      {
        "available_pack_button@resource_packs.available_pack_button": {
          "size": [ "100%", 44 ],
          "layer": 1
        }
      },
      {
        "center_panel": {
          "type": "panel",
          "size": [ "100%", "100%c" ],
          "controls": [
            {
              "selected_pack_direction_buttons@resource_packs.input_button_panel": {
              }
            }
          ]
        }
      }
    ]
  },
  "unowned_pack_panel": {
    "type": "stack_panel",
    "size": [ "100% - 2px", "100%c" ],
    "min_size": [ "100% - 2px", "44px" ],
    "$button_collection_name": "$unowned_pack_items",
    "$resource_pack_button_0": "resource_packs.selected_pack_plus_button",
    "$resource_pack_button_1": "resource_packs.selected_pack_up_button",
    "$resource_pack_button_2": "resource_packs.selected_pack_down_button",
    "$resource_pack_button_3": "resource_packs.selected_pack_warning_button",
    "ignored": "$education_edition",
    "controls": [
      {
        "unowned_pack_button@resource_packs.unowned_pack_button": {
          "size": [ "100%", 44 ],
          "layer": 1
        }
      },
      {
        "center_panel": {
          "type": "panel",
          "size": [ "100%", "100%c" ],
          "controls": [
            {
              "selected_pack_direction_buttons@resource_packs.input_button_panel": {
              }
            }
          ]
        }
      }
    ]
  },
  "invalid_pack_panel": {
    "type": "panel",
    "size": [ "100%-2px", "44px" ],
    "controls": [
      {
        "invalid_pack_button@resource_packs.invalid_pack_button": {
          "layer": 1
        }
      }
    ]
  },
  "available_pack_name_panel": {
    "type": "panel"
  },
  "selected_pack_grid": {
    "type": "stack_panel",
    "orientation": "vertical",

    "factory": {
      "name": "selected_pack_factory",
      "control_name": "resource_packs.selected_pack_panel"
    },

    "collection_name": "$selected_pack_items",
    "bindings": [
      {
        "binding_name": "$selected_grid_dimensions",
        "binding_name_override": "#collection_length"
      }
    ]
  },
  "available_pack_grid": {
    "type": "stack_panel",
    "orientation": "vertical",

    "factory": {
      "name": "available_pack_factory",
      "control_name": "resource_packs.available_pack_panel"
    },

    "collection_name": "$available_pack_items",
    "$available_grid_visible_binding_name|default": "",
    "$available_grid_visible_binding_type|default": "none",
    "bindings": [
      {
        "binding_name": "$available_grid_dimensions",
        "binding_name_override": "#collection_length"
      },
      {
        "binding_name": "$available_grid_visible_binding_name",
        "binding_name_override": "#visible",
        "binding_type": "$available_grid_visible_binding_type"
      }
    ]
  },
  "unowned_pack_grid": {
    "type": "stack_panel",
    "orientation": "vertical",
    "ignored": "$education_edition",

    "factory": {
      "name": "unowned_pack_factory",
      "control_name": "resource_packs.unowned_pack_panel"
    },

    "collection_name": "$unowned_pack_items",
    "bindings": [
      {
        "binding_name": "$unowned_grid_dimensions",
        "binding_name_override": "#collection_length"
      }
    ]
  },
  "invalid_pack_grid": {
    "type": "stack_panel",
    "orientation": "vertical",

    "factory": {
      "name": "invalid_pack_factory",
      "control_name": "resource_packs.invalid_pack_panel"
    },

    "collection_name": "$invalid_pack_items",
    "bindings": [
      {
        "binding_name": "$invalid_grid_dimensions",
        "binding_name_override": "#collection_length"
      }
    ]
  }
}