{
  "Type": "Window",
  "Id": "mod_manager",
  "Title": "Mod Manager",
  "Icon": "\ud83d\udce6",
  "Classes": [
    "ps-window-holo"
  ],
  "State": "Maximized",
  "DisplayLocation": "Taskbar",
  "WindowGroup": "static_menu",
  "IsRestorable": false,
  "IsMinimizable": false,
  "Width": "100%",
  "Height": "100%",
  "Children": [
    {
      "Type": "Grid",
      "Id": "mod_manager_layout",
      "Width": "100%",
      "Height": "100%",
      "HorizontalAlignment": "Stretch",
      "VerticalAlignment": "Stretch",
      "ColumnDefinitions": [
        "1fr"
      ],
      "RowDefinitions": [
        "auto",
        "auto",
        "1fr"
      ],
      "Children": [
        {
          "Type": "Alert",
          "Grid.Column": 0,
          "Grid.Row": 0,
          "Id": "mod_manager_alert",
          "IsVisible": false,
          "Severity": "Error",
          "Message": "",
          "Margin": "0 0 16 0"
        },
        {
          "Type": "Grid",
          "Id": "mod_manager_header_bar",
          "Grid.Column": 0,
          "Grid.Row": 1,
          "Width": "100%",
          "HorizontalAlignment": "Stretch",
          "VerticalAlignment": "Center",
          "ColumnDefinitions": [
            "1fr",
            "auto"
          ],
          "RowDefinitions": [
            "1fr"
          ],
          "Margin": "0 0 12 0",
          "Children": [
            {
              "Type": "Label",
              "Id": "enabled_summary",
              "Grid.Column": 0,
              "Grid.Row": 0,
              "Text": "",
              "Classes": [
                "ps-text-secondary"
              ]
            },
            {
              "Type": "Input",
              "Id": "mod_manager_search",
              "Grid.Column": 1,
              "Grid.Row": 0,
              "Placeholder": "Search mods\u2026",
              "IsVisible": true,
              "Width": "240px",
              "CommitOnInput": true,
              "Command": "core.mod_manager.search"
            }
          ]
        },
        {
          "Type": "Grid",
          "Id": "mod_manager_content_grid",
          "Grid.Column": 0,
          "Grid.Row": 2,
          "Width": "100%",
          "Height": "100%",
          "HorizontalAlignment": "Stretch",
          "VerticalAlignment": "Stretch",
          "ColumnDefinitions": [
            "1fr"
          ],
          "RowDefinitions": [
            "1fr",
            "52px"
          ],
          "Children": [
            {
              "Type": "Grid",
              "Id": "mod_manager_main_grid",
              "Grid.Column": 0,
              "Grid.Row": 0,
              "Width": "100%",
              "Height": "100%",
              "HorizontalAlignment": "Stretch",
              "VerticalAlignment": "Stretch",
              "ColumnDefinitions": [
                "2fr",
                "16px",
                "1fr"
              ],
              "RowDefinitions": [
                "1fr"
              ],
              "Children": [
                {
                  "Type": "TabContainer",
                  "Id": "mod_manager_tabs",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Width": "100%",
                  "Height": "1fr",
                  "ActiveIndex": 0,
                  "Command": "core.mod_manager.tab_changed",
                  "Children": [
                    {
                      "Type": "TabItem",
                      "Title": "Installed",
                      "Children": [
                        {
                          "Type": "StackPanel",
                          "Orientation": "Vertical",
                          "Gap": 8,
                          "Width": "100%",
                          "Height": "1fr",
                          "Children": [
                            {
                              "Type": "Grid",
                              "Id": "mod_manager_header_row",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Center",
                              "Height": "32px",
                              "Padding": "0 8",
                              "ColumnDefinitions": [
                                "1fr",
                                "auto"
                              ],
                              "RowDefinitions": [
                                "1fr"
                              ],
                              "Children": [
                                {
                                  "Type": "Checkbox",
                                  "Id": "toggle_advanced",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "Label": "Advanced Mode",
                                  "VerticalAlignment": "Center",
                                  "Command": "core.toggle_mod_manager_mode"
                                },
                                {
                                  "Type": "StackPanel",
                                  "Id": "mod_manager_header_actions",
                                  "Grid.Column": 1,
                                  "Grid.Row": 0,
                                  "Orientation": "Horizontal",
                                  "HorizontalAlignment": "Right",
                                  "VerticalAlignment": "Center",
                                  "Gap": 8,
                                  "Children": [
                                    {
                                      "Type": "Button",
                                      "Id": "btn_expand_all",
                                      "Style": "Small",
                                      "Icon": "\u25be",
                                      "Text": "Expand all",
                                      "VerticalAlignment": "Center",
                                      "IsVisible": false,
                                      "Command": "core.mod_manager_expand_all"
                                    },
                                    {
                                      "Type": "Button",
                                      "Id": "btn_collapse_all",
                                      "Style": "Small",
                                      "Icon": "\u25b8",
                                      "Text": "Collapse all",
                                      "VerticalAlignment": "Center",
                                      "IsVisible": false,
                                      "Command": "core.mod_manager_collapse_all"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "Type": "ScrollBox",
                              "Id": "installed_list_scroll",
                              "Axis": "Vertical",
                              "Width": "100%",
                              "Height": "1fr",
                              "Padding": "0",
                              "Background": "transparent",
                              "classes": [
                                "borderless"
                              ],
                              "Children": [
                                {
                                  "Type": "DataGrid",
                                  "Id": "installed_grid",
                                  "SelectionMode": "Single",
                                  "Height": "Auto",
                                  "Columns": [
                                    {
                                      "Header": "Module",
                                      "Field": "module",
                                      "SortField": "moduleSort",
                                      "Width": "1fr"
                                    },
                                    {
                                      "Header": "Author",
                                      "Field": "author",
                                      "Width": "140px"
                                    },
                                    {
                                      "Header": "Version",
                                      "Field": "version",
                                      "Width": "100px"
                                    },
                                    {
                                      "Header": "State",
                                      "Field": "state",
                                      "Width": "160px"
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "TabItem",
                      "Title": "Hub",
                      "Children": [
                        {
                          "Type": "ScrollBox",
                          "Id": "hub_list_scroll",
                          "Axis": "Vertical",
                          "Width": "100%",
                          "Height": "1fr",
                          "Padding": "0",
                          "Background": "transparent",
                          "classes": [
                            "borderless"
                          ],
                          "Children": [
                            {
                              "Type": "DataGrid",
                              "Id": "hub_mod_grid",
                              "SelectionMode": "Single",
                              "Height": "Auto",
                              "Columns": [
                                {
                                  "Header": "Name",
                                  "Field": "name",
                                  "Width": "200px"
                                },
                                {
                                  "Header": "Author",
                                  "Field": "author",
                                  "Width": "120px"
                                },
                                {
                                  "Header": "Version",
                                  "Field": "version",
                                  "Width": "80px"
                                },
                                {
                                  "Header": "Action",
                                  "Field": "action",
                                  "Width": "100px"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Panel",
                  "Id": "mod_manager_inspector",
                  "Grid.Column": 2,
                  "Grid.Row": 0,
                  "Padding": "16",
                  "Width": "100%",
                  "Height": "1fr",
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Vertical",
                      "Gap": 16,
                      "Width": "100%",
                      "Height": "1fr",
                      "Children": [
                        {
                          "Type": "StackPanel",
                          "Id": "inspector_header",
                          "Orientation": "Vertical",
                          "Gap": 8,
                          "Width": "100%",
                          "Children": [
                            {
                              "Type": "Label",
                              "Id": "inspector_title",
                              "Style": "Label.Title",
                              "Text": "Select a mod"
                            },
                            {
                              "Type": "Grid",
                              "Id": "inspector_metadata_grid",
                              "Width": "100%",
                              "ColumnDefinitions": [
                                "auto",
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "auto",
                                "auto"
                              ],
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Id": "inspector_author_key",
                                  "Text": "Author",
                                  "Style": "Label.Mono",
                                  "Classes": [
                                    "ps-text-secondary"
                                  ],
                                  "Grid.Row": 0,
                                  "Grid.Column": 0
                                },
                                {
                                  "Type": "Label",
                                  "Id": "inspector_author",
                                  "Text": "",
                                  "Grid.Row": 0,
                                  "Grid.Column": 1
                                },
                                {
                                  "Type": "Label",
                                  "Id": "inspector_version_key",
                                  "Text": "Version",
                                  "Style": "Label.Mono",
                                  "Classes": [
                                    "ps-text-secondary"
                                  ],
                                  "Grid.Row": 1,
                                  "Grid.Column": 0
                                },
                                {
                                  "Type": "Label",
                                  "Id": "inspector_version",
                                  "Text": "",
                                  "Grid.Row": 1,
                                  "Grid.Column": 1
                                }
                              ]
                            },
                            {
                              "Type": "Separator",
                              "Id": "inspector_header_sep",
                              "Variant": "Subtle"
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "inspector_actions",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "Width": "100%",
                              "Children": [
                                {
                                  "Type": "Button",
                                  "Id": "inspector_action",
                                  "Text": "",
                                  "IsVisible": false
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "ScrollBox",
                          "Id": "inspector_scroll",
                          "Axis": "Vertical",
                          "Width": "100%",
                          "Height": "1fr",
                          "Children": [
                            {
                              "Type": "StackPanel",
                              "Id": "inspector_scroll_content",
                              "Orientation": "Vertical",
                              "Gap": 16,
                              "Width": "100%",
                              "Children": [
                                {
                                  "Type": "Image",
                                  "Id": "inspector_showcase",
                                  "Asset": "",
                                  "Stretch": "UniformToFill",
                                  "Width": "100%",
                                  "Height": "180px",
                                  "IsVisible": false,
                                  "Classes": [
                                    "ps-showcase"
                                  ]
                                },
                                {
                                  "Type": "Panel",
                                  "Id": "inspector_description_card",
                                  "Classes": [
                                    "ps-panel--glass",
                                    "ps-panel--accent-strip"
                                  ],
                                  "Padding": "12",
                                  "Width": "100%",
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Id": "inspector_description",
                                      "Text": "",
                                      "Classes": [
                                        "ps-text-secondary",
                                        "ps-pre-line"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "Type": "Panel",
                                  "Id": "inspector_dependencies_card",
                                  "Classes": [
                                    "ps-panel--glass",
                                    "ps-panel--accent-strip"
                                  ],
                                  "Padding": "12",
                                  "Width": "100%",
                                  "Children": [
                                    {
                                      "Type": "StackPanel",
                                      "Orientation": "Vertical",
                                      "Gap": 8,
                                      "Width": "100%",
                                      "Children": [
                                        {
                                          "Type": "Label",
                                          "Id": "inspector_dependencies_label",
                                          "Style": "Label.Heading",
                                          "Text": "Dependencies"
                                        },
                                        {
                                          "Type": "Label",
                                          "Id": "inspector_dependencies",
                                          "Text": "",
                                          "Classes": [
                                            "ps-pre-line"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "Type": "Panel",
                                  "Id": "inspector_required_by_card",
                                  "Classes": [
                                    "ps-panel--glass",
                                    "ps-panel--accent-strip"
                                  ],
                                  "Padding": "12",
                                  "Width": "100%",
                                  "Children": [
                                    {
                                      "Type": "StackPanel",
                                      "Orientation": "Vertical",
                                      "Gap": 8,
                                      "Width": "100%",
                                      "Children": [
                                        {
                                          "Type": "Label",
                                          "Id": "inspector_required_by_label",
                                          "Style": "Label.Heading",
                                          "Text": "Required by"
                                        },
                                        {
                                          "Type": "Label",
                                          "Id": "inspector_required_by",
                                          "Text": "",
                                          "Classes": [
                                            "ps-pre-line"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "Type": "Panel",
                                  "Id": "inspector_capabilities_card",
                                  "Classes": [
                                    "ps-panel--glass",
                                    "ps-panel--accent-strip"
                                  ],
                                  "Padding": "12",
                                  "Width": "100%",
                                  "Children": [
                                    {
                                      "Type": "StackPanel",
                                      "Orientation": "Vertical",
                                      "Gap": 8,
                                      "Width": "100%",
                                      "Children": [
                                        {
                                          "Type": "Label",
                                          "Id": "inspector_capabilities_label",
                                          "Style": "Label.Heading",
                                          "Text": "Capabilities"
                                        },
                                        {
                                          "Type": "Label",
                                          "Id": "inspector_capabilities",
                                          "Text": "",
                                          "Classes": [
                                            "ps-pre-line"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "Type": "Panel",
                                  "Id": "inspector_settings_section",
                                  "Classes": [
                                    "ps-panel--glass",
                                    "ps-panel--accent-strip"
                                  ],
                                  "Padding": "12",
                                  "Width": "100%",
                                  "IsVisible": false,
                                  "Children": [
                                    {
                                      "Type": "StackPanel",
                                      "Orientation": "Vertical",
                                      "Gap": 12,
                                      "Width": "100%",
                                      "Children": [
                                        {
                                          "Type": "Grid",
                                          "Id": "inspector_settings_header",
                                          "Width": "100%",
                                          "ColumnDefinitions": [
                                            "1fr",
                                            "auto"
                                          ],
                                          "RowDefinitions": [
                                            "1fr"
                                          ],
                                          "Children": [
                                            {
                                              "Type": "Label",
                                              "Id": "inspector_settings_label",
                                              "Grid.Column": 0,
                                              "Grid.Row": 0,
                                              "Style": "Label.Heading",
                                              "Text": "Settings"
                                            },
                                            {
                                              "Type": "Button",
                                              "Id": "mod_settings_reset",
                                              "Grid.Column": 1,
                                              "Grid.Row": 0,
                                              "Text": "Reset to defaults",
                                              "Style": "Small",
                                              "IsVisible": false,
                                              "IsEnabled": true,
                                              "Command": "core.mod_settings_reset"
                                            }
                                          ]
                                        },
                                        {
                                          "Type": "StackPanel",
                                          "Id": "mod_settings_container",
                                          "Orientation": "Vertical",
                                          "Gap": 8,
                                          "Width": "100%",
                                          "Height": "Auto",
                                          "Children": [
                                            {
                                              "Type": "Label",
                                              "Id": "mod_settings_empty",
                                              "Text": "Select an installed mod to view settings."
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "Type": "StackPanel",
              "Id": "mod_manager_footer_row",
              "Grid.Column": 0,
              "Grid.Row": 1,
              "Orientation": "Horizontal",
              "HorizontalAlignment": "Right",
              "VerticalAlignment": "Center",
              "Gap": 8,
              "Children": [
                {
                  "Type": "Button",
                  "Id": "btn_back",
                  "Text": "Back",
                  "Command": "core.toggle_mod_manager",
                  "Width": "120px"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "Background": "rgba(0,0,0,0.85)",
  "Padding": "16"
}
