{
    "namespace": "backpack",
    "backpack_label@chest.chest_label": {
        "text": "($title - ('%.9s' * $title))"
    },
    "small_grid": {
        "type": "grid",
        "size": [
            162,
            72
        ],
        "anchor_from": "top_left",
        "anchor_to": "top_left",
        "grid_dimensions": [
            9,
            4
        ],
        "grid_item_template": "chest.chest_grid_item",
        "collection_name": "container_items"
    },
    "close_button_panel": {
        "type": "panel",
        "size": [
            "100%c",
            "100%c"
        ],
        "offset": [
            20,
            -22
        ],
        "anchor_to": "top_right",
        "anchor_from": "top_right",
        "controls": [
            {
                "background": {
                    "type": "image",
                    "size": [
                        "100%c + 4px",
                        "100%c + 4px"
                    ],
                    "texture": "textures/ui/toolbar_background",
                    "controls": [
                        {
                            "close_button@common.light_close_button": {
                                "offset": [
                                    0,
                                    0
                                ],
                                "anchor_from": "center",
                                "anchor_to": "center"
                            }
                        }
                    ]
                }
            }
        ]
    },
    "tanks_panel": {
        "type": "panel",
        "size": [
            "100%",
            "100%"
        ],
        "controls": [
            {
                "primary_tank_panel": {
                    "type": "panel",
                    "size": [
                        "100%",
                        "100%"
                    ],
                    "controls": [
                        {
                            "background": {
                                "type": "image",
                                "texture": "textures/backpacks/ui/primary_tank_bg",
                                "anchor_to": "top_left",
                                "anchor_from": "top_left",
                                "layer": 2,
                                "size": [
                                    24,
                                    98
                                ],
                                "offset": [
                                    -20,
                                    0
                                ]
                            }
                        },
                        {
                            "bucket_input_slot@ui_utils.grid_item": {
                                "$index": 36,
                                "anchor_to": "top_left",
                                "anchor_from": "top_left",
                                "offset": [
                                    -15,
                                    6
                                ]
                            }
                        },
                        {
                            "tank": {
                                "type": "panel",
                                "size": [
                                    18,
                                    48
                                ],
                                "anchor_to": "top_left",
                                "anchor_from": "top_left",
                                "controls": [
                                    {
                                        "background": {
                                            "type": "image",
                                            "texture": "textures/backpacks/ui/tank_overlay",
                                            "layer": 10,
                                            "size": [
                                                18,
                                                48
                                            ],
                                            "offset": [
                                                -15,
                                                25
                                            ]
                                        }
                                    },
                                    {
                                        "bottom_tank_slot@ui_utils.invisible_grid_item": {
                                            "$index": 38,
                                            "offset": [
                                                -15,
                                                56
                                            ]
                                        }
                                    },
                                    {
                                        "middle_tank_slot@ui_utils.invisible_grid_item": {
                                            "$index": 39,
                                            "offset": [
                                                -15,
                                                40
                                            ]
                                        }
                                    },
                                    {
                                        "top_tank_slot@ui_utils.invisible_grid_item": {
                                            "$index": 40,
                                            "offset": [
                                                -15,
                                                24
                                            ]
                                        }
                                    }
                                ]
                            }
                        },
                        {
                            "bucket_output_slot@ui_utils.grid_item": {
                                "$index": 37,
                                "anchor_to": "top_left",
                                "anchor_from": "top_left",
                                "offset": [
                                    -15,
                                    74
                                ]
                            }
                        }
                    ]
                }
            },
            {
                "secondary_tank_panel": {
                    "type": "panel",
                    "size": [
                        "100%",
                        "100%"
                    ],
                    "controls": [
                        {
                            "background": {
                                "type": "image",
                                "texture": "textures/backpacks/ui/secondary_tank_bg",
                                "anchor_to": "top_right",
                                "anchor_from": "top_right",
                                "layer": 2,
                                "size": [
                                    24,
                                    98
                                ],
                                "offset": [
                                    20,
                                    0
                                ]
                            }
                        },
                        {
                            "bucket_input_slot@ui_utils.grid_item": {
                                "$index": 41,
                                "anchor_to": "top_right",
                                "anchor_from": "top_right",
                                "offset": [
                                    15,
                                    6
                                ]
                            }
                        },
                        {
                            "tank": {
                                "type": "panel",
                                "size": [
                                    18,
                                    48
                                ],
                                "anchor_to": "top_right",
                                "anchor_from": "top_right",
                                "controls": [
                                    {
                                        "background": {
                                            "type": "image",
                                            "texture": "textures/backpacks/ui/tank_overlay",
                                            "layer": 10,
                                            "size": [
                                                18,
                                                48
                                            ],
                                            "offset": [
                                                15,
                                                25
                                            ]
                                        }
                                    },
                                    {
                                        "bottom_tank_slot@ui_utils.invisible_grid_item": {
                                            "$index": 43,
                                            "offset": [
                                                15,
                                                56
                                            ]
                                        }
                                    },
                                    {
                                        "middle_tank_slot@ui_utils.invisible_grid_item": {
                                            "$index": 44,
                                            "offset": [
                                                15,
                                                40
                                            ]
                                        }
                                    },
                                    {
                                        "top_tank_slot@ui_utils.invisible_grid_item": {
                                            "$index": 45,
                                            "offset": [
                                                15,
                                                24
                                            ]
                                        }
                                    }
                                ]
                            }
                        },
                        {
                            "bucket_output_slot@ui_utils.grid_item": {
                                "$index": 42,
                                "anchor_to": "top_right",
                                "anchor_from": "top_right",
                                "offset": [
                                    15,
                                    74
                                ]
                            }
                        }
                    ]
                }
            }
        ]
    },
    "backpack_panel_top_half": {
        "type": "panel",
        "size": [
            "100%",
            "100%"
        ],
        "offset": [
            0,
            11
        ],
        "anchor_to": "top_left",
        "anchor_from": "top_left",
        "controls": [
            {
                "chest_label@chest.chest_label": {}
            },
            {
                "small_grid@backpack.small_grid": {
                    "offset": [
                        7,
                        9
                    ]
                }
            }
        ]
    },
    "backpack_panel": {
        "type": "panel",
        "$toggle_group_default_selected": 1,
        "controls": [
            {
                "container_gamepad_helpers@common.container_gamepad_helpers": {}
            },
            {
                "selected_item_details_factory@common.selected_item_details_factory": {}
            },
            {
                "item_lock_notification_factory@common.item_lock_notification_factory": {}
            },
            {
                "root_panel@common.root_panel": {
                    "layer": 1,
                    "size": [ 176, 186 ],
                    "controls": [
                        {
                            "common_panel@common.common_panel": {
                                "$show_close_button": false
                            }
                        },
                        {
                            "backpack_panel": {
                                "type": "panel",
                                "layer": 5,
                                "controls": [
                                    {
                                        "close_button_panel@backpack.close_button_panel": {}
                                    },
                                    {
                                        "tanks_panel@backpack.tanks_panel": {}
                                    },
                                    {
                                        "backpack_panel_top_half@backpack.backpack_panel_top_half": {}
                                    },
                                    {
                                        "inventory_panel_bottom_half_with_label@common.inventory_panel_bottom_half_with_label": {}
                                    },
                                    {
                                        "hotbar_grid@common.hotbar_grid_template": {}
                                    },
                                    {
                                        "inventory_take_progress_icon_button@common.inventory_take_progress_icon_button": {}
                                    },
                                    {
                                        "flying_item_renderer@common.flying_item_renderer": {
                                            "layer": 15
                                        }
                                    }
                                ]
                            }
                        },
                        {
                            "inventory_selected_icon_button@common.inventory_selected_icon_button": {}
                        },
                        {
                            "gamepad_cursor@common.gamepad_cursor_button": {}
                        }
                    ]
                }
            }
        ]
    }
}