{
    "namespace": "sleeping_bag",
    "transparent_bg": {
        "type": "image",
        "texture": "textures/backpacks/ui/invisible",
        "layer": 2
    },
    "anim_alpha": {
        "anim_type": "alpha",
        "easing": "linear",
        "from": 0,
        "to": 0.8,
        "duration": 2
    },
    "sleeping_bag_content": {
        "type": "panel",
        "size": [
            "100%",
            "100%"
        ],
        "controls": [
            {
                "bg": {
                    "type": "image",
                    "texture": "textures/ui/Black",
                    "layer": 2,
                    "anims": [
                      "@sleeping_bag.anim_alpha"
                    ],
                    "size": [
                        "100%",
                        "100%"
                    ]
                }
            },
            {
                "leave_button": {
                    "type": "stack_panel",
                    "size": [
                        "100%c",
                        "100%c"
                    ],
                    "offset": [
                        0,
                        -50
                    ],
                    "anchor_from": "bottom_middle",
                    "anchor_to": "bottom_middle",
                    "orientation": "horizontal",
                    "collection_name": "form_buttons",
                    "controls": [
                        {
                            "button@common_buttons.light_text_button": {
                                "collection_index": 0,
                                "$pressed_button_name": "button.form_button_click",
                                "$default_button_texture": "textures/backpacks/ui/button.default",
                                "$hover_button_texture": "textures/backpacks/ui/button.hover",
                                "$pressed_button_texture": "textures/backpacks/ui/button.default",
                                "$focus_border_size": [
                                    0,
                                    0
                                ],
                                "$button_image_size": [
                                    "100%",
                                    "100%"
                                ],
                                "size": [
                                    140,
                                    22
                                ],
                                "$button_text": "#form_button_text",
                                "$button_text_binding_type": "collection",
                                "$button_text_grid_collection_name": "form_buttons",
                                "bindings": [
                                    {
                                        "binding_type": "collection_details",
                                        "binding_collection_name": "form_buttons"
                                    },
                                    {
                                        "binding_name": "#form_button_text",
                                        "binding_type": "collection",
                                        "binding_collection_name": "form_buttons"
                                    }
                                ]
                            }
                        }
                    ]
                }
            }
        ]
    }
}