{
  "Type": "Window",
  "Id": "component_designer",
  "Title": "Create Research Project",
  "Icon": "\ud83d\udd27",
  "Classes": [
    "ps-window-holo"
  ],
  "State": "Maximized",
  "DisplayLocation": "Taskbar",
  "WindowGroup": "static_menu",
  "IsRestorable": false,
  "IsMinimizable": false,
  "Width": "100%",
  "Height": "100%",
  "Background": "rgba(0,0,0,0.85)",
  "BackgroundImage": "UI/Backgrounds/create_research_project.jpg",
  "Padding": "16",
  "Children": [
    {
      "Type": "Grid",
      "Id": "designer_layout",
      "Width": "100%",
      "Height": "100%",
      "HorizontalAlignment": "Stretch",
      "VerticalAlignment": "Stretch",
      "ColumnDefinitions": [
        "1fr",
        "2fr"
      ],
      "RowDefinitions": [
        "1fr",
        "auto"
      ],
      "Children": [
        {
          "Type": "ScrollBox",
          "Id": "designer_left_panel",
          "Grid.Column": 0,
          "Grid.Row": 0,
          "Axis": "Vertical",
          "Width": "100%",
          "Height": "100%",
          "Padding": "8",
          "Background": "transparent",
          "Children": [
            {
              "Type": "StackPanel",
              "Id": "designer_left_content",
              "Orientation": "Vertical",
              "Gap": 12,
              "Width": "100%",
              "Children": [
                {
                  "Type": "Select",
                  "Id": "designer_category_select",
                  "Width": "100%",
                  "Value": "",
                  "Options": [],
                  "IsSearchable": true,
                  "Placeholder": "Search categories...",
                  "Command": "core.designer_select_category",
                  "Margin": "0 0 4 0"
                },
                {
                  "Type": "StackPanel",
                  "Id": "designer_dropdowns_panel",
                  "Width": "100%",
                  "Orientation": "Vertical",
                  "Gap": 8,
                  "Children": []
                },
                {
                  "Type": "Panel",
                  "Id": "designer_radio_panel",
                  "Width": "100%",
                  "IsVisible": false,
                  "Children": []
                },
                {
                  "Type": "Panel",
                  "Id": "designer_notes_glass",
                  "Width": "100%",
                  "IsVisible": false,
                  "Classes": [
                    "ps-panel",
                    "ps-panel--glass"
                  ],
                  "Children": [
                    {
                      "Type": "Label",
                      "Id": "designer_notes_label",
                      "Text": "",
                      "Classes": [
                        "ps-text-secondary",
                        "designer-notes"
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "Type": "ScrollBox",
          "Id": "designer_right_panel",
          "Grid.Column": 1,
          "Grid.Row": 0,
          "Axis": "Vertical",
          "Width": "100%",
          "Height": "100%",
          "Padding": "8",
          "Background": "transparent",
          "Children": [
            {
              "Type": "StackPanel",
              "Id": "designer_right_content",
              "Orientation": "Vertical",
              "Gap": 8,
              "Width": "100%",
              "Children": [
                {
                  "Type": "StackPanel",
                  "Id": "designer_company_name_row",
                  "Orientation": "Horizontal",
                  "Gap": 8,
                  "Width": "100%",
                  "Children": [
                    {
                      "Type": "Input",
                      "Id": "designer_company_name_input",
                      "Width": "70%",
                      "Placeholder": "Company Name",
                      "Command": "core.designer_set_company_name"
                    },
                    {
                      "Type": "Checkbox",
                      "Id": "designer_show_next_tech",
                      "Label": "Show Next Tech",
                      "TooltipText": "Show the next researchable technology in each dropdown. Without this, only already-researched techs are visible.",
                      "Command": "core.designer_toggle_show_next_tech"
                    }
                  ]
                },
                {
                  "Type": "StackPanel",
                  "Id": "designer_design_name_row",
                  "Orientation": "Horizontal",
                  "Gap": 8,
                  "Width": "100%",
                  "Children": [
                    {
                      "Type": "Input",
                      "Id": "designer_design_name_input",
                      "Width": "70%",
                      "Placeholder": "Design Name",
                      "Command": "core.designer_set_design_name"
                    },
                    {
                      "Type": "Checkbox",
                      "Id": "designer_no_name_update",
                      "Label": "No Name Update",
                      "TooltipText": "Freeze the auto-generated design name. Prevents the name from changing when you adjust component parameters.",
                      "Command": "core.designer_toggle_no_name_update"
                    }
                  ]
                },
                {
                  "Type": "Panel",
                  "Id": "designer_specs_glass",
                  "Width": "100%",
                  "Height": "100%",
                  "Classes": [
                    "ps-panel",
                    "ps-panel--glass"
                  ],
                  "Children": [
                    {
                      "Type": "Label",
                      "Id": "designer_specs_text",
                      "Text": "",
                      "AllowHtml": true,
                      "Classes": [
                        "designer-specs"
                      ],
                      "Width": "100%"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "Type": "StackPanel",
          "Grid.Column": 0,
          "Grid.ColumnSpan": 2,
          "Grid.Row": 1,
          "Id": "designer_action_bar",
          "Orientation": "Horizontal",
          "HorizontalAlignment": "Left",
          "VerticalAlignment": "Center",
          "Gap": 8,
          "Margin": "10 0 0 0",
          "Children": [
            {
              "Type": "Button",
              "Id": "designer_create_button",
              "Text": "Create",
              "Style": "Primary",
              "Command": "core.designer_create",
              "Width": "120px"
            },
            {
              "Type": "Button",
              "Id": "designer_sm_instant_button",
              "Text": "Instant",
              "Style": "SpaceMaster",
              "IsVisible": false,
              "Command": "core.designer_sm_instant",
              "Width": "120px"
            },
            {
              "Type": "Button",
              "Id": "designer_prototype_button",
              "Text": "Prototype",
              "Command": "core.designer_prototype",
              "Width": "120px"
            },
            {
              "Type": "Button",
              "Id": "designer_company_button",
              "Text": "Company Name",
              "Command": "core.designer_company",
              "Width": "140px"
            },
            {
              "Type": "Button",
              "Id": "designer_missile_button",
              "Text": "Missile Design",
              "IsVisible": false,
              "Command": "core.designer_missile",
              "Width": "130px"
            },
            {
              "Type": "Button",
              "Id": "designer_turret_button",
              "Text": "Turret Design",
              "IsVisible": false,
              "Command": "core.designer_turret",
              "Width": "130px"
            },
            {
              "Type": "Button",
              "Id": "designer_gu_button",
              "Text": "GU Design",
              "IsVisible": false,
              "Command": "core.designer_gu",
              "Width": "130px"
            },
            {
              "Type": "Label",
              "Id": "designer_create_status_label",
              "Text": "",
              "Margin": "8 0 0 0"
            }
          ]
        }
      ]
    }
  ]
}
