{
    "namespace": "quest_book",
    "quest_book_content": {
        "type": "panel",
        "anchor_from": "top_left",
        "anchor_to": "top_left",
        "size": [
            "100%",
            "100%"
        ],
        "layer": 1,
        "controls": [
            {
                "tabs_panel@quest_book.tabs_panel": {}
            },
            {
                "tabs_content": {
                    "type": "panel",
                    "controls": [
                        {
                            "beginner_tab_content": {
                                "type": "panel",
                                "controls": [
                                    {
                                        "label@tab_label": {
                                            "text": "questBook.header.beginner_tab"
                                        }
                                    },
                                    {
                                        "panel@beginner_tab.beginner_tab_panel": {}
                                    }
                                ],
                                "bindings": [
                                    {
                                        "binding_name": "#title_text"
                                    },
                                    {
                                        "binding_type": "view",
                                        "source_property_name": "((#title_text - (#title_text - 'beginnerQuests' - 'intermediateQuests' - 'advancedQuests' - 'expertQuests' - 'masteryQuests')) = 'beginnerQuests')",
                                        "target_property_name": "#visible"
                                    }
                                ]
                            }
                        },
                        {
                            "intermediate_tab_content": {
                                "type": "panel",
                                "controls": [
                                    {
                                        "label@tab_label": {
                                            "text": "questBook.header.intermediate_tab"
                                        }
                                    },
                                    {
                                        "panel@intermediate_tab.intermediate_tab_panel": {}
                                    }
                                ],
                                "bindings": [
                                    {
                                        "binding_name": "#title_text"
                                    },
                                    {
                                        "binding_type": "view",
                                        "source_property_name": "((#title_text - (#title_text - 'beginnerQuests' - 'intermediateQuests' - 'advancedQuests' - 'expertQuests' - 'masteryQuests')) = 'intermediateQuests')",
                                        "target_property_name": "#visible"
                                    }
                                ]
                            }
                        },
                        {
                            "advanced_tab_content": {
                                "type": "panel",
                                "controls": [
                                    {
                                        "label@tab_label": {
                                            "text": "questBook.header.advanced_tab"
                                        }
                                    },
                                    {
                                        "panel@advanced_tab.advanced_tab_panel": {}
                                    }
                                ],
                                "bindings": [
                                    {
                                        "binding_name": "#title_text"
                                    },
                                    {
                                        "binding_type": "view",
                                        "source_property_name": "((#title_text - (#title_text - 'beginnerQuests' - 'intermediateQuests' - 'advancedQuests' - 'expertQuests' - 'masteryQuests')) = 'advancedQuests')",
                                        "target_property_name": "#visible"
                                    }
                                ]
                            }
                        },
                        {
                            "expert_tab_content": {
                                "type": "panel",
                                "controls": [
                                    {
                                        "label@tab_label": {
                                            "text": "questBook.header.expert_tab"
                                        }
                                    },
                                    {
                                        "panel@expert_tab.expert_tab_panel": {}
                                    }
                                ],
                                "bindings": [
                                    {
                                        "binding_name": "#title_text"
                                    },
                                    {
                                        "binding_type": "view",
                                        "source_property_name": "((#title_text - (#title_text - 'beginnerQuests' - 'intermediateQuests' - 'advancedQuests' - 'expertQuests' - 'masteryQuests')) = 'expertQuests')",
                                        "target_property_name": "#visible"
                                    }
                                ]
                            }
                        },
                        {
                            "mastery_tab_content": {
                                "type": "panel",
                                "controls": [
                                    {
                                        "label@tab_label": {
                                            "text": "questBook.header.mastery_tab"
                                        }
                                    },
                                    {
                                        "panel@mastery_tab.mastery_tab_panel": {}
                                    }
                                ],
                                "bindings": [
                                    {
                                        "binding_name": "#title_text"
                                    },
                                    {
                                        "binding_type": "view",
                                        "source_property_name": "((#title_text - (#title_text - 'beginnerQuests' - 'intermediateQuests' - 'advancedQuests' - 'expertQuests' - 'masteryQuests')) = 'masteryQuests')",
                                        "target_property_name": "#visible"
                                    }
                                ]
                            }
                        }
                    ]
                }
            }
        ]
    },
    "tab_label": {
        "type": "label",
        "anchor_from": "top_left",
        "anchor_to": "top_left",
        "color": "$title_text_color",
        "offset": [
            -1,
            -12
        ]
    },
    "tabs_panel": {
        "type": "stack_panel",
        "size": [
            "100%c",
            "100%c"
        ],
        "offset": [
            -8,
            -47
        ],
        "orientation": "horizontal",
        "anchor_to": "top_left",
        "anchor_from": "top_left",
        "controls": [
            {
                "beginner_tab@quest_tabs.tab_button": {
                    "$button_icon_texture": "textures/quest_book/tabs_icons/beginner",
                    "$is_left_most_tab": true,
                    "$button_index": 0
                }
            },
            {
                "padding@quest_book_utils.horizontal_padding": {
                    "size": [
                        2,
                        0
                    ]
                }
            },
            {
                "intermediate_tab@quest_tabs.tab_button": {
                    "$button_icon_texture": "textures/quest_book/tabs_icons/intermediate",
                    "$button_index": 1
                }
            },
            {
                "padding@quest_book_utils.horizontal_padding": {
                    "size": [
                        2,
                        0
                    ]
                }
            },
            {
                "advanced_tab@quest_tabs.tab_button": {
                    "$button_icon_texture": "textures/quest_book/tabs_icons/advanced",
                    "$button_index": 2
                }
            },
            {
                "padding@quest_book_utils.horizontal_padding": {
                    "size": [
                        2,
                        0
                    ]
                }
            },
            {
                "expert_tab@quest_tabs.tab_button": {
                    "$button_icon_texture": "textures/quest_book/tabs_icons/expert",
                    "$button_index": 3
                }
            },
            {
                "padding@quest_book_utils.horizontal_padding": {
                    "size": [
                        2,
                        0
                    ]
                }
            },
            {
                "mastery_tab@quest_tabs.tab_button": {
                    "$button_icon_texture": "textures/quest_book/tabs_icons/mastery",
                    "$button_index": 4
                }
            }
        ]
    }
}