{
  "Type": "Window",
  "Id": "system_viewer",
  "Title": "System View",
  "Icon": "\ud83d\udd2d",
  "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)",
  "Padding": "16",
  "Children": [
    {
      "Type": "Grid",
      "Id": "system_viewer_layout",
      "Width": "100%",
      "Height": "100%",
      "RowDefinitions": [
        "Auto",
        "1fr",
        "Auto",
        "Auto",
        "Auto"
      ],
      "Children": [
        {
          "Type": "StackPanel",
          "Id": "sv_zone_a_root",
          "Grid.Row": 0,
          "Orientation": "Vertical",
          "Width": "100%",
          "Gap": 10,
          "Margin": "0 0 8px 0",
          "Children": [
            {
              "Type": "Grid",
              "Id": "sv_zone_a_header",
              "Width": "100%",
              "ColumnDefinitions": [
                "1fr",
                "Auto"
              ],
              "Children": [
                {
                  "Type": "StackPanel",
                  "Id": "sv_zone_a_context",
                  "Grid.Column": 0,
                  "Orientation": "Horizontal",
                  "Gap": 10,
                  "Width": "100%",
                  "AlignItems": "Center",
                  "Children": [
                    {
                      "Type": "Select",
                      "Id": "sv_race_selector",
                      "Width": "220px",
                      "Value": "",
                      "Options": [],
                      "Command": "core.system_viewer.select_race"
                    },
                    {
                      "Type": "Select",
                      "Id": "sv_system_selector",
                      "Width": "320px",
                      "Value": "",
                      "Options": [],
                      "Command": "core.system_viewer.select_system",
                      "IsSearchable": true
                    },
                    {
                      "Type": "Input",
                      "Id": "sv_table_search",
                      "Width": "200px",
                      "Placeholder": "Search bodies...",
                      "Value": "",
                      "Command": "core.system_viewer.set_body_filter",
                      "CommitOnInput": true,
                      "ShowClearButton": true
                    },
                    {
                      "Type": "Label",
                      "Text": "Age",
                      "Classes": [
                        "ps-text-muted"
                      ]
                    },
                    {
                      "Type": "Label",
                      "Id": "sv_info_age",
                      "Text": "--",
                      "Classes": [
                        "ps-data",
                        "ps-data--compact"
                      ]
                    },
                    {
                      "Type": "Label",
                      "Text": "Discovered",
                      "Classes": [
                        "ps-text-muted"
                      ]
                    },
                    {
                      "Type": "Label",
                      "Id": "sv_info_discovered",
                      "Text": "--",
                      "Classes": [
                        "ps-data",
                        "ps-data--compact"
                      ]
                    },
                    {
                      "Type": "Label",
                      "Text": "JSP/Loc",
                      "Classes": [
                        "ps-text-muted"
                      ]
                    },
                    {
                      "Type": "Label",
                      "Id": "sv_info_jsp",
                      "Text": "--",
                      "Classes": [
                        "ps-data",
                        "ps-data--compact"
                      ]
                    },
                    {
                      "Type": "Label",
                      "Text": "JP Survey",
                      "Classes": [
                        "ps-text-muted"
                      ]
                    },
                    {
                      "Type": "Label",
                      "Id": "sv_info_jp_survey",
                      "Text": "--",
                      "Classes": [
                        "ps-data",
                        "ps-data--compact"
                      ]
                    },
                    {
                      "Type": "Label",
                      "Text": "SB Survey",
                      "Classes": [
                        "ps-text-muted"
                      ]
                    },
                    {
                      "Type": "Label",
                      "Id": "sv_info_sb_survey",
                      "Text": "--",
                      "Classes": [
                        "ps-data",
                        "ps-data--compact"
                      ]
                    }
                  ]
                },
                {
                  "Type": "Button",
                  "Id": "sv_star_summary_collapse",
                  "Grid.Column": 1,
                  "Text": "\u25be",
                  "Command": "core.system_viewer.toggle_star_summary",
                  "Classes": [
                    "ps-btn--sm"
                  ]
                }
              ]
            },
            {
              "Type": "StackPanel",
              "Id": "sv_star_summary_panel",
              "Orientation": "Vertical",
              "Width": "100%",
              "Gap": 6,
              "Margin": "0 0 8px 0",
              "Children": [
                {
                  "Type": "DataGrid",
                  "Id": "sv_star_summary_grid",
                  "Width": "100%",
                  "EnableVerticalScroll": false,
                  "HeadersVisible": true,
                  "UseZebraStriping": false,
                  "AllowSorting": false,
                  "SelectionMode": "Single",
                  "OnSelectionChanged": "core.system_viewer.select_star_row",
                  "Columns": [
                    {
                      "Header": "Name",
                      "Field": "name"
                    },
                    {
                      "Header": "Spectral",
                      "Field": "spectral"
                    },
                    {
                      "Header": "Diameter",
                      "Field": "diameter",
                      "Align": "Right"
                    },
                    {
                      "Header": "Mass",
                      "Field": "mass",
                      "Align": "Right"
                    },
                    {
                      "Header": "Luminosity",
                      "Field": "luminosity",
                      "Align": "Right"
                    },
                    {
                      "Header": "Parent",
                      "Field": "parent"
                    },
                    {
                      "Header": "Period",
                      "Field": "period",
                      "Align": "Right"
                    },
                    {
                      "Header": "Distance",
                      "Field": "distance",
                      "Align": "Right"
                    },
                    {
                      "Header": "Perihelion",
                      "Field": "perihelion",
                      "Align": "Right"
                    },
                    {
                      "Header": "Aphelion",
                      "Field": "aphelion",
                      "Align": "Right"
                    },
                    {
                      "Header": "Pl",
                      "Field": "planets",
                      "Align": "Right"
                    },
                    {
                      "Header": "Mo",
                      "Field": "moons",
                      "Align": "Right"
                    },
                    {
                      "Header": "As",
                      "Field": "asteroids",
                      "Align": "Right"
                    },
                    {
                      "Header": "Co",
                      "Field": "comets",
                      "Align": "Right"
                    },
                    {
                      "Header": "Hab",
                      "Field": "habitable",
                      "Align": "Right"
                    },
                    {
                      "Header": "N-Hab",
                      "Field": "nearHab",
                      "Align": "Right"
                    },
                    {
                      "Field": "entityId",
                      "IsHidden": true
                    }
                  ],
                  "Rows": []
                }
              ]
            }
          ]
        },
        {
          "Type": "StackPanel",
          "Id": "sv_zone_b_root",
          "Grid.Row": 1,
          "Orientation": "Vertical",
          "Width": "100%",
          "Height": "100%",
          "Gap": 10,
          "Children": [
            {
              "Type": "Grid",
              "Id": "sv_zone_b_filters_header",
              "Width": "100%",
              "ColumnDefinitions": [
                "1fr",
                "1fr",
                "1fr",
                "1.5fr"
              ],
              "Children": [
                {
                  "Type": "RadioGroup",
                  "Id": "sv_moon_filter",
                  "Grid.Column": 0,
                  "Label": "Moons",
                  "Style": "segmented",
                  "Orientation": "Horizontal",
                  "SelectedValue": "all",
                  "IsEnabled": true,
                  "Command": "core.system_viewer.set_moon_filter",
                  "Items": [
                    {
                      "Label": "All Moons",
                      "Value": "all"
                    },
                    {
                      "Label": "With Minerals",
                      "Value": "minerals"
                    },
                    {
                      "Label": "Hide Moons",
                      "Value": "hide"
                    }
                  ]
                },
                {
                  "Type": "RadioGroup",
                  "Id": "sv_asteroid_filter",
                  "Grid.Column": 1,
                  "Label": "Asteroids",
                  "Style": "segmented",
                  "Orientation": "Horizontal",
                  "SelectedValue": "hide",
                  "IsEnabled": true,
                  "Command": "core.system_viewer.set_asteroid_filter",
                  "Items": [
                    {
                      "Label": "All Asteroids",
                      "Value": "all"
                    },
                    {
                      "Label": "With Minerals",
                      "Value": "minerals"
                    },
                    {
                      "Label": "Hide Asteroids",
                      "Value": "hide"
                    }
                  ]
                },
                {
                  "Type": "RadioGroup",
                  "Id": "sv_comet_filter",
                  "Grid.Column": 2,
                  "Label": "Comets",
                  "Style": "segmented",
                  "Orientation": "Horizontal",
                  "SelectedValue": "minerals",
                  "IsEnabled": true,
                  "Command": "core.system_viewer.set_comet_filter",
                  "Items": [
                    {
                      "Label": "All Comets",
                      "Value": "all"
                    },
                    {
                      "Label": "With Minerals",
                      "Value": "minerals"
                    },
                    {
                      "Label": "Hide Comets",
                      "Value": "hide"
                    }
                  ]
                },
                {
                  "Type": "CheckGroup",
                  "Id": "sv_body_flag_filter",
                  "Grid.Column": 3,
                  "Label": "Flags",
                  "Orientation": "Horizontal",
                  "IsEnabled": true,
                  "Command": "core.system_viewer.toggle_body_flags",
                  "Items": [
                    {
                      "Label": "Minerals",
                      "Value": "minerals"
                    },
                    {
                      "Label": "No Survey",
                      "Value": "no_survey"
                    },
                    {
                      "Label": "Ground Survey",
                      "Value": "ground_survey"
                    },
                    {
                      "Label": "OM Eligible",
                      "Value": "om_eligible"
                    },
                    {
                      "Label": "Max CC/Temp",
                      "Value": "max_cc_temp"
                    }
                  ],
                  "SelectedValues": [
                    "minerals",
                    "no_survey",
                    "ground_survey"
                  ]
                }
              ]
            },
            {
              "Type": "Label",
              "Id": "sv_body_table_status",
              "Text": "Body table loads here after GAM-0155-02.",
              "Classes": [
                "ps-text-secondary"
              ]
            },
            {
              "Type": "DataGrid",
              "Id": "sv_body_table_grid",
              "Width": "100%",
              "Height": "100%",
              "EnableVerticalScroll": true,
              "EnableHorizontalScroll": true,
              "UseZebraStriping": true,
              "SelectionMode": "Single",
              "OnSelectionChanged": "core.system_viewer.select_body_row",
              "AllowSorting": true,
              "Columns": [],
              "Rows": []
            }
          ]
        },
        {
          "Type": "StackPanel",
          "Id": "sv_zone_c_root",
          "Grid.Row": 2,
          "Width": "100%",
          "Margin": "12px 0 0 0",
          "Gap": 8,
          "Children": [
            {
              "Type": "Grid",
              "Id": "sv_zone_c_detail_grid",
              "Width": "100%",
              "ColumnDefinitions": [
                "1fr",
                "Auto",
                "1.3fr",
                "Auto",
                "1fr",
                "1fr",
                "Auto",
                "Auto"
              ],
              "Children": [
                {
                  "Type": "StackPanel",
                  "Id": "sv_zone_c_jump_points",
                  "Grid.Column": 0,
                  "Orientation": "Vertical",
                  "Gap": 6,
                  "Padding": "12",
                  "Children": [
                    {
                      "Type": "Label",
                      "Text": "Jump Points",
                      "Classes": [
                        "ps-panel-title"
                      ]
                    },
                    {
                      "Type": "DataGrid",
                      "Id": "sv_jump_point_grid",
                      "Classes": [
                        "ps-grid--compact"
                      ],
                      "Flex": "1",
                      "Width": "100%",
                      "Height": "100%",
                      "EnableVerticalScroll": true,
                      "UseZebraStriping": false,
                      "SelectionMode": "Single",
                      "OnSelectionChanged": "core.system_viewer.select_jp_row",
                      "AllowSorting": false,
                      "Columns": [
                        {
                          "Header": "#",
                          "Field": "index",
                          "Align": "Right",
                          "Width": "32px"
                        },
                        {
                          "Header": "Dist (m km)",
                          "Field": "distance",
                          "Align": "Right"
                        },
                        {
                          "Header": "Bear",
                          "Field": "bearing",
                          "Align": "Right"
                        },
                        {
                          "Header": "Destination",
                          "Field": "destination"
                        },
                        {
                          "Field": "entityId",
                          "IsHidden": true
                        }
                      ],
                      "Rows": []
                    }
                  ]
                },
                {
                  "Type": "StackPanel",
                  "Id": "sv_zone_c_sm_actions",
                  "Grid.Column": 1,
                  "Orientation": "Vertical",
                  "Gap": 4,
                  "Padding": "8 4",
                  "AlignItems": "Center",
                  "Style": "SpaceMaster",
                  "IsVisible": false,
                  "Children": [
                    {
                      "Type": "Button",
                      "Id": "sv_sm_explore_jp",
                      "Text": "Explore JP",
                      "Style": "SpaceMaster",
                      "IsVisible": false,
                      "Command": "core.system_viewer.sm_explore_jp",
                      "Width": "100%"
                    },
                    {
                      "Type": "Button",
                      "Id": "sv_sm_add_jp",
                      "Text": "Add Jump Point",
                      "Style": "SpaceMaster",
                      "IsVisible": false,
                      "Command": "core.system_viewer.sm_add_jp",
                      "Width": "100%"
                    },
                    {
                      "Type": "Button",
                      "Id": "sv_sm_del_jp",
                      "Text": "Del Jump Point",
                      "Style": "SpaceMaster",
                      "IsVisible": false,
                      "Command": "core.system_viewer.sm_del_jp",
                      "Width": "100%"
                    },
                    {
                      "Type": "Button",
                      "Id": "sv_sm_change_pos",
                      "Text": "Change Position",
                      "Style": "SpaceMaster",
                      "IsVisible": false,
                      "Command": "core.system_viewer.sm_change_pos_open",
                      "Width": "100%"
                    },
                    {
                      "Type": "Button",
                      "Id": "sv_sm_stabilize_jp",
                      "Text": "Stabilize JP",
                      "Style": "SpaceMaster",
                      "IsVisible": false,
                      "Command": "core.system_viewer.sm_stabilize_jp",
                      "Width": "100%"
                    },
                    {
                      "Type": "Button",
                      "Id": "sv_sm_destabilize_jp",
                      "Text": "Destabilise JP",
                      "Style": "SpaceMaster",
                      "IsVisible": false,
                      "Command": "core.system_viewer.sm_destabilize_jp",
                      "Width": "100%"
                    }
                  ]
                },
                {
                  "Type": "StackPanel",
                  "Id": "sv_zone_c_minerals",
                  "Grid.Column": 2,
                  "Orientation": "Vertical",
                  "Gap": 6,
                  "Padding": "12",
                  "Children": [
                    {
                      "Type": "Label",
                      "Text": "Minerals",
                      "Classes": [
                        "ps-panel-title"
                      ]
                    },
                    {
                      "Type": "DataGrid",
                      "Id": "sv_mineral_detail_grid",
                      "Classes": [
                        "ps-grid--compact"
                      ],
                      "Flex": "1",
                      "Width": "100%",
                      "Height": "100%",
                      "EnableVerticalScroll": true,
                      "UseZebraStriping": false,
                      "AllowSorting": true,
                      "Columns": [
                        {
                          "Header": "Mineral",
                          "Field": "mineral",
                          "CellType": "mineralName"
                        },
                        {
                          "Header": "Accessibility",
                          "Field": "accessibility",
                          "Align": "Right"
                        },
                        {
                          "Header": "Amount",
                          "Field": "amount",
                          "Align": "Right"
                        }
                      ],
                      "Rows": [],
                      "FooterLeftText": "",
                      "FooterRightText": ""
                    },
                    {
                      "Type": "Label",
                      "Id": "sv_detail_select_hint",
                      "Text": "Select a body to view mineral deposits, colony cost, and atmosphere details.",
                      "Classes": [
                        "ps-alert",
                        "ps-alert--info"
                      ],
                      "IsVisible": false
                    }
                  ]
                },
                {
                  "Type": "StackPanel",
                  "Id": "sv_zone_c_sm_minerals",
                  "Grid.Column": 3,
                  "Orientation": "Vertical",
                  "Gap": 4,
                  "Padding": "8 4",
                  "AlignItems": "Center",
                  "Style": "SpaceMaster",
                  "IsVisible": false,
                  "Children": [
                    {
                      "Type": "Button",
                      "Id": "sv_sm_survey_body",
                      "Text": "Survey Body",
                      "Style": "SpaceMaster",
                      "IsVisible": false,
                      "Command": "core.system_viewer.sm_survey_body",
                      "Width": "100%"
                    },
                    {
                      "Type": "Button",
                      "Id": "sv_sm_create_ruins",
                      "Text": "Create Ruins",
                      "Style": "SpaceMaster",
                      "IsVisible": false,
                      "Command": "core.system_viewer.sm_create_ruins_open",
                      "Width": "100%"
                    },
                    {
                      "Type": "Button",
                      "Id": "sv_sm_hw_minerals",
                      "Text": "HW Minerals",
                      "Style": "SpaceMaster",
                      "IsVisible": false,
                      "Command": "core.system_viewer.sm_hw_minerals",
                      "Width": "100%"
                    },
                    {
                      "Type": "Button",
                      "Id": "sv_sm_redo_minerals",
                      "Text": "Redo Minerals",
                      "Style": "SpaceMaster",
                      "IsVisible": false,
                      "Command": "core.system_viewer.sm_redo_minerals_open",
                      "Width": "100%"
                    },
                    {
                      "Type": "Button",
                      "Id": "sv_sm_specify_minerals",
                      "Text": "Specify Minerals",
                      "Style": "SpaceMaster",
                      "IsVisible": false,
                      "Command": "core.system_viewer.sm_specify_minerals_open",
                      "Width": "100%"
                    },
                    {
                      "Type": "Button",
                      "Id": "sv_sm_clear_minerals",
                      "Text": "Clear Minerals",
                      "Style": "SpaceMaster",
                      "IsVisible": false,
                      "Command": "core.system_viewer.sm_clear_minerals",
                      "Width": "100%"
                    },
                    {
                      "Type": "Button",
                      "Id": "sv_sm_min_as_text",
                      "Text": "Min As Text",
                      "Style": "SpaceMaster",
                      "IsVisible": false,
                      "Command": "core.system_viewer.sm_min_as_text",
                      "Width": "100%"
                    }
                  ]
                },
                {
                  "Type": "StackPanel",
                  "Id": "sv_zone_c_colony_cost",
                  "Grid.Column": 4,
                  "Orientation": "Vertical",
                  "Gap": 6,
                  "Padding": "12",
                  "Children": [
                    {
                      "Type": "Label",
                      "Text": "Colony Cost",
                      "Classes": [
                        "ps-panel-title"
                      ]
                    },
                    {
                      "Type": "PropertyGrid",
                      "Id": "sv_colony_cost_grid",
                      "Classes": [
                        "ps-pgrid--compact"
                      ],
                      "Sections": []
                    }
                  ]
                },
                {
                  "Type": "StackPanel",
                  "Id": "sv_zone_c_atmosphere",
                  "Grid.Column": 5,
                  "Orientation": "Vertical",
                  "Gap": 6,
                  "Padding": "12",
                  "Children": [
                    {
                      "Type": "Label",
                      "Text": "Atmosphere",
                      "Classes": [
                        "ps-panel-title"
                      ]
                    },
                    {
                      "Type": "DataGrid",
                      "Id": "sv_atmosphere_grid",
                      "Classes": [
                        "ps-grid--compact"
                      ],
                      "Width": "100%",
                      "Height": "120px",
                      "EnableVerticalScroll": true,
                      "UseZebraStriping": false,
                      "AllowSorting": false,
                      "Columns": [
                        {
                          "Header": "Gas",
                          "Field": "gas"
                        },
                        {
                          "Header": "%",
                          "Field": "percentage",
                          "Align": "Right"
                        },
                        {
                          "Header": "atm",
                          "Field": "pressure",
                          "Align": "Right"
                        }
                      ],
                      "Rows": []
                    },
                    {
                      "Type": "PropertyGrid",
                      "Id": "sv_atmosphere_env_grid",
                      "Classes": [
                        "ps-pgrid--compact"
                      ],
                      "Sections": []
                    }
                  ]
                },
                {
                  "Type": "StackPanel",
                  "Id": "sv_zone_c_cc_projection",
                  "Grid.Column": 6,
                  "Style": "SpaceMasterHide",
                  "Orientation": "Vertical",
                  "Gap": 6,
                  "Padding": "12",
                  "Children": [
                    {
                      "Type": "Label",
                      "Text": "Colony Cost Projection",
                      "Classes": [
                        "ps-panel-title"
                      ]
                    },
                    {
                      "Type": "DataGrid",
                      "Id": "sv_cc_projection_grid",
                      "Classes": [
                        "ps-grid--compact"
                      ],
                      "Width": "100%",
                      "Height": "180px",
                      "HeadersVisible": false,
                      "EnableVerticalScroll": false,
                      "UseZebraStriping": true,
                      "AllowSorting": false,
                      "Columns": [
                        {
                          "Field": "period",
                          "Width": "50px"
                        },
                        {
                          "Field": "v1",
                          "Align": "Right",
                          "Width": "45px"
                        },
                        {
                          "Field": "v2",
                          "Align": "Right",
                          "Width": "45px"
                        },
                        {
                          "Field": "v3",
                          "Align": "Right",
                          "Width": "45px"
                        },
                        {
                          "Field": "v4",
                          "Align": "Right",
                          "Width": "45px"
                        },
                        {
                          "Field": "v5",
                          "Align": "Right",
                          "Width": "45px"
                        },
                        {
                          "Field": "v6",
                          "Align": "Right",
                          "Width": "45px"
                        },
                        {
                          "Field": "v7",
                          "Align": "Right",
                          "Width": "45px"
                        },
                        {
                          "Field": "v8",
                          "Align": "Right",
                          "Width": "45px"
                        }
                      ],
                      "Rows": []
                    }
                  ]
                },
                {
                  "Type": "StackPanel",
                  "Id": "sv_zone_c_sm_system_actions",
                  "Grid.Column": 7,
                  "Orientation": "Vertical",
                  "Gap": 4,
                  "Padding": "8 4",
                  "AlignItems": "Center",
                  "Style": "SpaceMaster",
                  "IsVisible": false,
                  "Children": [
                    {
                      "Type": "Label",
                      "Text": "SM Actions",
                      "Classes": [
                        "ps-panel-title"
                      ]
                    },
                    {
                      "Type": "Grid",
                      "Id": "sv_sm_system_actions_grid",
                      "Width": "100%",
                      "ColumnDefinitions": [
                        "1fr",
                        "1fr"
                      ],
                      "Children": [
                        {
                          "Type": "StackPanel",
                          "Grid.Column": 0,
                          "Orientation": "Vertical",
                          "Gap": 4,
                          "Children": [
                            {
                              "Type": "Button",
                              "Id": "sv_sm_create_race",
                              "Text": "Create Race",
                              "Style": "SpaceMaster",
                              "IsVisible": false,
                              "Command": "core.system_viewer.sm_create_race",
                              "Width": "100%"
                            },
                            {
                              "Type": "Button",
                              "Id": "sv_sm_create_system",
                              "Text": "Create System",
                              "Style": "SpaceMaster",
                              "IsVisible": false,
                              "Command": "core.system_viewer.sm_create_system",
                              "Width": "100%"
                            },
                            {
                              "Type": "Button",
                              "Id": "sv_sm_add_star",
                              "Text": "Add Star",
                              "Style": "SpaceMaster",
                              "IsVisible": false,
                              "Command": "core.system_viewer.sm_add_star",
                              "Width": "100%"
                            },
                            {
                              "Type": "Button",
                              "Id": "sv_sm_add_body",
                              "Text": "Add Body",
                              "Style": "SpaceMaster",
                              "IsVisible": false,
                              "Command": "core.system_viewer.sm_add_body",
                              "Width": "100%"
                            },
                            {
                              "Type": "Button",
                              "Id": "sv_sm_add_moons",
                              "Text": "Add Moons",
                              "Style": "SpaceMaster",
                              "IsVisible": false,
                              "Command": "core.system_viewer.sm_add_moons",
                              "Width": "100%"
                            },
                            {
                              "Type": "Button",
                              "Id": "sv_sm_delete_star",
                              "Text": "Delete Star",
                              "Style": "SpaceMaster",
                              "IsVisible": false,
                              "Command": "core.system_viewer.sm_delete_star",
                              "Width": "100%"
                            },
                            {
                              "Type": "Button",
                              "Id": "sv_sm_delete_asteroids",
                              "Text": "Delete Asteroids",
                              "Style": "SpaceMaster",
                              "IsVisible": false,
                              "Command": "core.system_viewer.sm_delete_asteroids",
                              "Width": "100%"
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Grid.Column": 1,
                          "Orientation": "Vertical",
                          "Gap": 4,
                          "Children": [
                            {
                              "Type": "Button",
                              "Id": "sv_sm_create_swarm",
                              "Text": "Create Swarm",
                              "Style": "SpaceMaster",
                              "IsVisible": false,
                              "Command": "core.system_viewer.sm_create_swarm",
                              "Width": "100%"
                            },
                            {
                              "Type": "Button",
                              "Id": "sv_sm_create_habitable",
                              "Text": "Create Habitable",
                              "Style": "SpaceMaster",
                              "IsVisible": false,
                              "Command": "core.system_viewer.sm_create_habitable",
                              "Width": "100%"
                            },
                            {
                              "Type": "Button",
                              "Id": "sv_sm_modify_star",
                              "Text": "Modify Star",
                              "Style": "SpaceMaster",
                              "IsVisible": false,
                              "Command": "core.system_viewer.sm_modify_star",
                              "Width": "100%"
                            },
                            {
                              "Type": "Button",
                              "Id": "sv_sm_modify_body",
                              "Text": "Modify Body",
                              "Style": "SpaceMaster",
                              "IsVisible": false,
                              "Command": "core.system_viewer.sm_modify_body",
                              "Width": "100%"
                            },
                            {
                              "Type": "Button",
                              "Id": "sv_sm_add_lagrange",
                              "Text": "Add Lagrange",
                              "Style": "SpaceMaster",
                              "IsVisible": false,
                              "Command": "core.system_viewer.sm_add_lagrange",
                              "Width": "100%"
                            },
                            {
                              "Type": "Button",
                              "Id": "sv_sm_delete_body",
                              "Text": "Delete Body",
                              "Style": "SpaceMaster",
                              "IsVisible": false,
                              "Command": "core.system_viewer.sm_delete_body",
                              "Width": "100%"
                            },
                            {
                              "Type": "Button",
                              "Id": "sv_sm_delete_lagrange",
                              "Text": "Delete Lagrange",
                              "Style": "SpaceMaster",
                              "IsVisible": false,
                              "Command": "core.system_viewer.sm_delete_lagrange",
                              "Width": "100%"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "Type": "StackPanel",
          "Id": "sv_zone_d_row1",
          "Grid.Row": 3,
          "Orientation": "Horizontal",
          "Gap": 4,
          "Padding": "4 4",
          "AlignItems": "Center",
          "Width": "100%",
          "Children": [
            {
              "Type": "Button",
              "Id": "sv_btn_rename_system",
              "Text": "Rename System",
              "Command": "core.system_viewer.sm_rename_system_open"
            },
            {
              "Type": "Button",
              "Id": "sv_btn_rename_body",
              "Text": "Rename Body",
              "Command": "core.system_viewer.sm_rename_body_open",
              "IsEnabled": false
            },
            {
              "Type": "Button",
              "Id": "sv_btn_rename_sys_all",
              "Text": "Rename Sys All",
              "Command": "core.system_viewer.sm_rename_sys_all_open"
            },
            {
              "Type": "Button",
              "Id": "sv_btn_rename_body_all",
              "Text": "Rename Body All",
              "Command": "core.system_viewer.sm_rename_body_all_open",
              "IsEnabled": false
            },
            {
              "Type": "Button",
              "Id": "sv_btn_create_colony",
              "Text": "Create Colony",
              "Command": "core.system_viewer.sm_create_colony_bar",
              "IsEnabled": false
            },
            {
              "Type": "Button",
              "Id": "sv_btn_ban_body",
              "Text": "Ban Body",
              "Command": "core.system_viewer.sm_ban_body",
              "IsEnabled": false
            },
            {
              "Type": "Button",
              "Id": "sv_btn_all_system_view",
              "Text": "All System View",
              "Command": "core.system_viewer.sm_all_system_view"
            },
            {
              "Type": "Button",
              "Id": "sv_btn_restrict_jp",
              "Text": "Restrict JP",
              "Command": "core.system_viewer.sm_restrict_jp",
              "IsEnabled": false
            },
            {
              "Type": "Button",
              "Id": "sv_btn_normal_view",
              "Text": "Normal View",
              "Command": "core.system_viewer.sm_normal_view"
            },
            {
              "Type": "Button",
              "Id": "sv_btn_select_name",
              "Text": "Select Name",
              "IsEnabled": false
            }
          ]
        },
        {
          "Type": "StackPanel",
          "Id": "sv_zone_d_row2",
          "Grid.Row": 4,
          "Orientation": "Horizontal",
          "Gap": 4,
          "Padding": "4 4",
          "AlignItems": "Center",
          "Width": "100%",
          "Style": "SpaceMaster",
          "IsVisible": false,
          "Children": [
            {
              "Type": "Button",
              "Id": "sv_btn_full_grav_survey",
              "Text": "Full Grav Survey",
              "Style": "SpaceMaster",
              "Command": "core.system_viewer.sm_full_grav_survey"
            },
            {
              "Type": "Button",
              "Id": "sv_btn_no_grav_survey",
              "Text": "No Grav Survey",
              "Style": "SpaceMaster",
              "Command": "core.system_viewer.sm_no_grav_survey"
            },
            {
              "Type": "Button",
              "Id": "sv_btn_full_geo_survey",
              "Text": "Full Geo Survey",
              "Style": "SpaceMaster",
              "Command": "core.system_viewer.sm_full_geo_survey"
            },
            {
              "Type": "Button",
              "Id": "sv_btn_no_geo_survey",
              "Text": "No Geo Survey",
              "Style": "SpaceMaster",
              "Command": "core.system_viewer.sm_no_geo_survey"
            },
            {
              "Type": "Button",
              "Id": "sv_btn_regen_jp",
              "Text": "Regen JP",
              "Style": "SpaceMaster",
              "Command": "core.system_viewer.sm_regen_jp_open"
            },
            {
              "Type": "Button",
              "Id": "sv_btn_regen_min",
              "Text": "Regen Min",
              "Style": "SpaceMaster",
              "Command": "core.system_viewer.sm_regen_min_open"
            },
            {
              "Type": "Button",
              "Id": "sv_btn_name_sol_bodies",
              "Text": "Name Sol Bodies",
              "Style": "SpaceMaster",
              "Command": "core.system_viewer.sm_name_sol_bodies",
              "IsEnabled": false
            },
            {
              "Type": "Button",
              "Id": "sv_btn_delete_system",
              "Text": "Delete System",
              "Style": "SpaceMaster",
              "Command": "core.system_viewer.sm_delete_system_confirm1"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_change_pos_modal",
      "Title": "Change Location",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_change_pos_cancel",
      "DefaultCommand": "core.system_viewer.sm_change_pos",
      "Size": "Small",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 12,
          "Children": [
            {
              "Type": "StackPanel",
              "Orientation": "Horizontal",
              "Gap": 8,
              "Children": [
                {
                  "Type": "Label",
                  "Text": "Distance (m km)",
                  "Width": "120px"
                },
                {
                  "Type": "Input",
                  "Id": "sv_change_pos_distance",
                  "AutoFocus": true,
                  "Placeholder": "0.0",
                  "Width": "120px",
                  "Command": "core.system_viewer.sm_change_pos_set_distance",
                  "CommitOnInput": true
                }
              ]
            },
            {
              "Type": "StackPanel",
              "Orientation": "Horizontal",
              "Gap": 8,
              "Children": [
                {
                  "Type": "Label",
                  "Text": "Bearing (deg)",
                  "Width": "120px"
                },
                {
                  "Type": "Input",
                  "Id": "sv_change_pos_bearing",
                  "Placeholder": "0",
                  "Width": "120px",
                  "Command": "core.system_viewer.sm_change_pos_set_bearing",
                  "CommitOnInput": true
                }
              ]
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "sv_change_pos_cancel",
              "Text": "Cancel",
              "Command": "core.system_viewer.sm_change_pos_cancel"
            },
            {
              "Type": "Button",
              "Id": "sv_change_pos_confirm",
              "Text": "Change",
              "Style": "Primary",
              "Command": "core.system_viewer.sm_change_pos"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_create_ruins_modal",
      "Title": "Create Ruins",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_create_ruins_cancel",
      "Size": "Small",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 12,
          "Children": [
            {
              "Type": "Label",
              "Text": "Select ruin type:"
            },
            {
              "Type": "Select",
              "Id": "sv_ruin_type_selector",
              "Width": "100%",
              "Command": "core.system_viewer.sm_create_ruins_type_changed"
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "sv_create_ruins_cancel_btn",
              "Text": "Cancel",
              "Command": "core.system_viewer.sm_create_ruins_cancel"
            },
            {
              "Type": "Button",
              "Id": "sv_create_ruins_confirm_btn",
              "Text": "Create",
              "Style": "Primary",
              "Command": "core.system_viewer.sm_create_ruins_confirm"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_redo_minerals_modal",
      "Title": "Confirm Redo Minerals",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_redo_minerals_cancel",
      "Size": "Small",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 12,
          "Children": [
            {
              "Type": "Label",
              "Id": "sv_redo_minerals_body_name",
              "Text": ""
            },
            {
              "Type": "Label",
              "Text": "This will remove all existing mineral deposits and regenerate them. Continue?"
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "sv_redo_minerals_cancel_btn",
              "Text": "Cancel",
              "Command": "core.system_viewer.sm_redo_minerals_cancel"
            },
            {
              "Type": "Button",
              "Id": "sv_redo_minerals_confirm_btn",
              "Text": "Redo",
              "Style": "Primary",
              "Command": "core.system_viewer.sm_redo_minerals_confirm"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_min_as_text_modal",
      "Title": "Mineral Summary",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_min_as_text_close",
      "Width": "600px",
      "Height": "500px",
      "IsTall": true,
      "Children": [
        {
          "Type": "TextArea",
          "Id": "sv_min_as_text_area",
          "Width": "100%",
          "Height": "420px",
          "Rows": 20,
          "IsEnabled": true,
          "Text": ""
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "sv_min_as_text_close_btn",
              "Text": "Close",
              "Command": "core.system_viewer.sm_min_as_text_close"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_specify_minerals_modal",
      "Title": "Specify Minerals",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_specify_minerals_cancel",
      "Size": "Medium",
      "Children": [
        {
          "Type": "StackPanel",
          "Id": "sv_specify_minerals_rows",
          "Orientation": "Vertical",
          "Gap": 6,
          "Children": []
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "sv_specify_minerals_cancel_btn",
              "Text": "Cancel",
              "Command": "core.system_viewer.sm_specify_minerals_cancel"
            },
            {
              "Type": "Button",
              "Id": "sv_specify_minerals_confirm_btn",
              "Text": "Save",
              "Style": "Primary",
              "Command": "core.system_viewer.sm_specify_minerals_confirm"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_create_race_error_modal",
      "Title": "Cannot Create Race",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_create_race_error_close",
      "Size": "Small",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 12,
          "Children": [
            {
              "Type": "Label",
              "Id": "sv_create_race_error_message",
              "Text": ""
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "sv_create_race_error_close_btn",
              "Text": "OK",
              "Style": "Primary",
              "Command": "core.system_viewer.sm_create_race_error_close"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_create_system_modal",
      "Title": "Select known system to generate",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_create_system_cancel",
      "Width": "1100px",
      "Height": "750px",
      "Children": [
        {
          "Type": "DataGrid",
          "Id": "sv_create_system_grid",
          "Flex": "1",
          "Height": "100%",
          "ShowSearch": true,
          "SearchPlaceholder": "Search systems...",
          "Columns": [
            {
              "Header": "System",
              "Field": "name"
            },
            {
              "Header": "Mass",
              "Field": "mass",
              "Align": "Right"
            },
            {
              "Header": "Primary",
              "Field": "primary"
            },
            {
              "Header": "Secondary",
              "Field": "secondary"
            },
            {
              "Header": "Quaternary",
              "Field": "quaternary"
            },
            {
              "Header": "Distance",
              "Field": "distance",
              "Align": "Right",
              "HeaderTooltip": "Distance from Sol"
            },
            {
              "Header": "X",
              "Field": "x",
              "Align": "Right"
            },
            {
              "Header": "Y",
              "Field": "y",
              "Align": "Right"
            },
            {
              "Header": "Z",
              "Field": "z",
              "Align": "Right"
            }
          ],
          "Rows": [],
          "SelectionMode": "Single",
          "OnSelectionChanged": "core.system_viewer.sm_create_system_select",
          "EnableVerticalScroll": true,
          "UseZebraStriping": true
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Stretch",
          "Children": [
            {
              "Type": "StackPanel",
              "Orientation": "Horizontal",
              "Gap": 8,
              "HorizontalAlignment": "Right",
              "Children": [
                {
                  "Type": "Label",
                  "Text": "Minimum star mass"
                },
                {
                  "Type": "Input",
                  "Id": "sv_create_system_min_mass",
                  "Placeholder": "0.0",
                  "Width": "80px",
                  "Command": "core.system_viewer.sm_create_system_set_min_mass",
                  "CommitOnInput": true
                },
                {
                  "Type": "Checkbox",
                  "Id": "sv_create_system_include_existing",
                  "Label": "Include existing",
                  "IsChecked": false,
                  "Command": "core.system_viewer.sm_create_system_toggle_existing"
                },
                {
                  "Type": "Button",
                  "Id": "sv_create_system_cancel_btn",
                  "Text": "Cancel",
                  "Command": "core.system_viewer.sm_create_system_cancel"
                },
                {
                  "Type": "Button",
                  "Id": "sv_create_system_btn",
                  "Text": "Create System",
                  "Style": "Primary",
                  "IsEnabled": false,
                  "Command": "core.system_viewer.sm_create_system_confirm"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_add_star_modal",
      "Title": "Star Setup",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_add_star_cancel",
      "Width": "720px",
      "Children": [
        {
          "Type": "Grid",
          "ColumnDefinitions": [
            "1fr",
            "1fr"
          ],
          "Gap": 16,
          "Children": [
            {
              "Type": "StackPanel",
              "Grid.Column": 0,
              "Orientation": "Vertical",
              "Gap": 10,
              "Children": [
                {
                  "Type": "Label",
                  "Text": "Spectral Class"
                },
                {
                  "Type": "Select",
                  "Id": "sv_add_star_spectral",
                  "Width": "100%",
                  "Command": "core.system_viewer.sm_add_star_spectral_changed",
                  "IsSearchable": true
                },
                {
                  "Type": "Label",
                  "Text": "Orbit (AU)"
                },
                {
                  "Type": "Input",
                  "Id": "sv_add_star_orbit",
                  "Value": "10",
                  "Width": "100%",
                  "Command": "core.system_viewer.sm_add_star_set_orbit",
                  "CommitOnInput": true
                },
                {
                  "Type": "Label",
                  "Text": "Bearing"
                },
                {
                  "Type": "Input",
                  "Id": "sv_add_star_bearing",
                  "Value": "0",
                  "Width": "100%",
                  "Command": "core.system_viewer.sm_add_star_set_bearing",
                  "CommitOnInput": true
                },
                {
                  "Type": "Label",
                  "Text": "Eccentricity"
                },
                {
                  "Type": "Input",
                  "Id": "sv_add_star_eccentricity",
                  "Value": "0",
                  "Width": "100%",
                  "Command": "core.system_viewer.sm_add_star_set_eccentricity",
                  "CommitOnInput": true
                },
                {
                  "Type": "Label",
                  "Text": "Ecc Bearing"
                },
                {
                  "Type": "Input",
                  "Id": "sv_add_star_ecc_bearing",
                  "Value": "0",
                  "Width": "100%",
                  "Command": "core.system_viewer.sm_add_star_set_ecc_bearing",
                  "CommitOnInput": true
                },
                {
                  "Type": "Label",
                  "Text": "Orbits"
                },
                {
                  "Type": "RadioGroup",
                  "Id": "sv_add_star_orbit_target",
                  "Orientation": "Vertical",
                  "Command": "core.system_viewer.sm_add_star_set_orbit_target",
                  "Items": [],
                  "SelectedValue": ""
                }
              ]
            },
            {
              "Type": "StackPanel",
              "Grid.Column": 1,
              "Orientation": "Vertical",
              "Gap": 6,
              "Children": [
                {
                  "Type": "Label",
                  "Text": "Star Properties",
                  "Classes": [
                    "ps-panel-title"
                  ]
                },
                {
                  "Type": "PropertyGrid",
                  "Id": "sv_add_star_properties",
                  "Classes": [
                    "ps-pgrid--compact"
                  ],
                  "Sections": []
                }
              ]
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "sv_add_star_cancel_btn",
              "Text": "Cancel",
              "Command": "core.system_viewer.sm_add_star_cancel"
            },
            {
              "Type": "Button",
              "Id": "sv_add_star_confirm_btn",
              "Text": "Add Star",
              "Style": "Primary",
              "Command": "core.system_viewer.sm_add_star_confirm"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_add_body_modal",
      "Title": "Add Body",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_add_body_cancel",
      "Width": "480px",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 10,
          "Children": [
            {
              "Type": "PropertyGrid",
              "Id": "sv_add_body_zones",
              "Classes": [
                "ps-pgrid--compact"
              ],
              "Sections": []
            },
            {
              "Type": "Label",
              "Text": "Body Type"
            },
            {
              "Type": "Select",
              "Id": "sv_add_body_type_select",
              "Width": "100%",
              "Command": "core.system_viewer.sm_add_body_type_changed",
              "Options": [
                {
                  "Label": "Planet - Terrestrial",
                  "Value": "Planet"
                },
                {
                  "Label": "Planet - Dwarf",
                  "Value": "DwarfPlanet"
                },
                {
                  "Label": "Planet - Gas Giant",
                  "Value": "GasGiant"
                },
                {
                  "Label": "Planet - Super Jovian",
                  "Value": "Superjovian"
                },
                {
                  "Label": "Asteroid",
                  "Value": "Asteroid"
                },
                {
                  "Label": "Comet",
                  "Value": "Comet"
                }
              ],
              "Value": "Terrestrial"
            },
            {
              "Type": "Label",
              "Text": "Orbital Distance (m km)"
            },
            {
              "Type": "Input",
              "Id": "sv_add_body_orbit",
              "Width": "100%",
              "Command": "core.system_viewer.sm_add_body_set_orbit",
              "CommitOnInput": true
            },
            {
              "Type": "StackPanel",
              "Id": "sv_add_body_moons_row",
              "Orientation": "Horizontal",
              "AlignItems": "Center",
              "Gap": 8,
              "Children": [
                {
                  "Type": "Checkbox",
                  "Id": "sv_add_body_gen_moons",
                  "Label": "Generate Moons",
                  "Command": "core.system_viewer.sm_add_body_toggle_moons"
                },
                {
                  "Type": "Label",
                  "Text": "Number of Moons (0 = Random)"
                },
                {
                  "Type": "Input",
                  "Id": "sv_add_body_num_moons",
                  "Width": "60px",
                  "Value": "0",
                  "Command": "core.system_viewer.sm_add_body_set_num_moons",
                  "CommitOnInput": true
                }
              ]
            },
            {
              "Type": "StackPanel",
              "Id": "sv_add_body_trojans_row",
              "Orientation": "Horizontal",
              "AlignItems": "Center",
              "Gap": 8,
              "IsVisible": false,
              "Children": [
                {
                  "Type": "Checkbox",
                  "Id": "sv_add_body_gen_trojans",
                  "Label": "Generate Trojans",
                  "Command": "core.system_viewer.sm_add_body_toggle_trojans"
                },
                {
                  "Type": "Label",
                  "Text": "Number of Trojans (0 = Random)"
                },
                {
                  "Type": "Input",
                  "Id": "sv_add_body_num_trojans",
                  "Width": "60px",
                  "Value": "0",
                  "Command": "core.system_viewer.sm_add_body_set_num_trojans",
                  "CommitOnInput": true
                }
              ]
            },
            {
              "Type": "StackPanel",
              "Id": "sv_add_body_comet_row",
              "Orientation": "Horizontal",
              "AlignItems": "Center",
              "Gap": 8,
              "IsVisible": false,
              "Children": [
                {
                  "Type": "Label",
                  "Text": "Start Distance (m km)"
                },
                {
                  "Type": "Input",
                  "Id": "sv_add_body_comet_start",
                  "Width": "80px",
                  "Value": "0",
                  "Command": "core.system_viewer.sm_add_body_set_comet_start",
                  "CommitOnInput": true
                }
              ]
            },
            {
              "Type": "StackPanel",
              "Id": "sv_add_body_asteroid_count_row",
              "Orientation": "Horizontal",
              "AlignItems": "Center",
              "Gap": 8,
              "IsVisible": false,
              "Children": [
                {
                  "Type": "Label",
                  "Text": "Number of Asteroids (0 = Random)"
                },
                {
                  "Type": "Input",
                  "Id": "sv_add_body_num_asteroids",
                  "Width": "60px",
                  "Value": "0",
                  "Command": "core.system_viewer.sm_add_body_set_num_asteroids",
                  "CommitOnInput": true
                }
              ]
            },
            {
              "Type": "StackPanel",
              "Id": "sv_add_body_belt_width_row",
              "Orientation": "Horizontal",
              "AlignItems": "Center",
              "Gap": 8,
              "IsVisible": false,
              "Children": [
                {
                  "Type": "Label",
                  "Text": "Maximum Belt Width (m km) (0 = Random)"
                },
                {
                  "Type": "Input",
                  "Id": "sv_add_body_belt_width",
                  "Width": "60px",
                  "Value": "0",
                  "Command": "core.system_viewer.sm_add_body_set_belt_width",
                  "CommitOnInput": true
                }
              ]
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "sv_add_body_cancel_btn",
              "Text": "Cancel",
              "Command": "core.system_viewer.sm_add_body_cancel"
            },
            {
              "Type": "Button",
              "Id": "sv_add_body_confirm_btn",
              "Text": "Add Body",
              "Style": "Primary",
              "Command": "core.system_viewer.sm_add_body_confirm"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_add_moons_modal",
      "Title": "Add Moons",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_add_moons_cancel",
      "Width": "480px",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 8,
          "Children": [
            {
              "Type": "Grid",
              "ColumnDefinitions": [
                "1fr",
                "120px"
              ],
              "Gap": 8,
              "Children": [
                {
                  "Type": "Label",
                  "Text": "Moon Type",
                  "FontWeight": "Bold",
                  "Grid.Column": 0
                },
                {
                  "Type": "Label",
                  "Text": "Distance (k km)",
                  "FontWeight": "Bold",
                  "Grid.Column": 1
                }
              ]
            },
            {
              "Type": "Grid",
              "ColumnDefinitions": [
                "1fr",
                "120px"
              ],
              "Gap": 8,
              "Children": [
                {
                  "Type": "Select",
                  "Id": "sv_add_moons_type_0",
                  "Width": "100%",
                  "Command": "core.system_viewer.sm_add_moons_type_changed",
                  "Options": [
                    {
                      "Label": "None",
                      "Value": "None"
                    },
                    {
                      "Label": "Moon - Small",
                      "Value": "SmallMoon"
                    },
                    {
                      "Label": "Moon",
                      "Value": "Moon"
                    },
                    {
                      "Label": "Moon - Large",
                      "Value": "LargeMoon"
                    },
                    {
                      "Label": "Moon - Small Terrestrial",
                      "Value": "SmallTerrestrial"
                    },
                    {
                      "Label": "Moon - Terrestrial",
                      "Value": "TerrestrialMoon"
                    }
                  ]
                },
                {
                  "Type": "Input",
                  "Id": "sv_add_moons_dist_0",
                  "Value": "100",
                  "Width": "100%",
                  "Grid.Column": 1,
                  "Command": "core.system_viewer.sm_add_moons_dist_changed",
                  "CommitOnInput": true
                }
              ]
            },
            {
              "Type": "Grid",
              "ColumnDefinitions": [
                "1fr",
                "120px"
              ],
              "Gap": 8,
              "Children": [
                {
                  "Type": "Select",
                  "Id": "sv_add_moons_type_1",
                  "Width": "100%",
                  "Command": "core.system_viewer.sm_add_moons_type_changed",
                  "Options": [
                    {
                      "Label": "None",
                      "Value": "None"
                    },
                    {
                      "Label": "Moon - Small",
                      "Value": "SmallMoon"
                    },
                    {
                      "Label": "Moon",
                      "Value": "Moon"
                    },
                    {
                      "Label": "Moon - Large",
                      "Value": "LargeMoon"
                    },
                    {
                      "Label": "Moon - Small Terrestrial",
                      "Value": "SmallTerrestrial"
                    },
                    {
                      "Label": "Moon - Terrestrial",
                      "Value": "TerrestrialMoon"
                    }
                  ]
                },
                {
                  "Type": "Input",
                  "Id": "sv_add_moons_dist_1",
                  "Value": "200",
                  "Width": "100%",
                  "Grid.Column": 1,
                  "Command": "core.system_viewer.sm_add_moons_dist_changed",
                  "CommitOnInput": true
                }
              ]
            },
            {
              "Type": "Grid",
              "ColumnDefinitions": [
                "1fr",
                "120px"
              ],
              "Gap": 8,
              "Children": [
                {
                  "Type": "Select",
                  "Id": "sv_add_moons_type_2",
                  "Width": "100%",
                  "Command": "core.system_viewer.sm_add_moons_type_changed",
                  "Options": [
                    {
                      "Label": "None",
                      "Value": "None"
                    },
                    {
                      "Label": "Moon - Small",
                      "Value": "SmallMoon"
                    },
                    {
                      "Label": "Moon",
                      "Value": "Moon"
                    },
                    {
                      "Label": "Moon - Large",
                      "Value": "LargeMoon"
                    },
                    {
                      "Label": "Moon - Small Terrestrial",
                      "Value": "SmallTerrestrial"
                    },
                    {
                      "Label": "Moon - Terrestrial",
                      "Value": "TerrestrialMoon"
                    }
                  ]
                },
                {
                  "Type": "Input",
                  "Id": "sv_add_moons_dist_2",
                  "Value": "300",
                  "Width": "100%",
                  "Grid.Column": 1,
                  "Command": "core.system_viewer.sm_add_moons_dist_changed",
                  "CommitOnInput": true
                }
              ]
            },
            {
              "Type": "Grid",
              "ColumnDefinitions": [
                "1fr",
                "120px"
              ],
              "Gap": 8,
              "Children": [
                {
                  "Type": "Select",
                  "Id": "sv_add_moons_type_3",
                  "Width": "100%",
                  "Command": "core.system_viewer.sm_add_moons_type_changed",
                  "Options": [
                    {
                      "Label": "None",
                      "Value": "None"
                    },
                    {
                      "Label": "Moon - Small",
                      "Value": "SmallMoon"
                    },
                    {
                      "Label": "Moon",
                      "Value": "Moon"
                    },
                    {
                      "Label": "Moon - Large",
                      "Value": "LargeMoon"
                    },
                    {
                      "Label": "Moon - Small Terrestrial",
                      "Value": "SmallTerrestrial"
                    },
                    {
                      "Label": "Moon - Terrestrial",
                      "Value": "TerrestrialMoon"
                    }
                  ]
                },
                {
                  "Type": "Input",
                  "Id": "sv_add_moons_dist_3",
                  "Value": "400",
                  "Width": "100%",
                  "Grid.Column": 1,
                  "Command": "core.system_viewer.sm_add_moons_dist_changed",
                  "CommitOnInput": true
                }
              ]
            },
            {
              "Type": "Grid",
              "ColumnDefinitions": [
                "1fr",
                "120px"
              ],
              "Gap": 8,
              "Children": [
                {
                  "Type": "Select",
                  "Id": "sv_add_moons_type_4",
                  "Width": "100%",
                  "Command": "core.system_viewer.sm_add_moons_type_changed",
                  "Options": [
                    {
                      "Label": "None",
                      "Value": "None"
                    },
                    {
                      "Label": "Moon - Small",
                      "Value": "SmallMoon"
                    },
                    {
                      "Label": "Moon",
                      "Value": "Moon"
                    },
                    {
                      "Label": "Moon - Large",
                      "Value": "LargeMoon"
                    },
                    {
                      "Label": "Moon - Small Terrestrial",
                      "Value": "SmallTerrestrial"
                    },
                    {
                      "Label": "Moon - Terrestrial",
                      "Value": "TerrestrialMoon"
                    }
                  ]
                },
                {
                  "Type": "Input",
                  "Id": "sv_add_moons_dist_4",
                  "Value": "500",
                  "Width": "100%",
                  "Grid.Column": 1,
                  "Command": "core.system_viewer.sm_add_moons_dist_changed",
                  "CommitOnInput": true
                }
              ]
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Text": "Cancel",
              "Command": "core.system_viewer.sm_add_moons_cancel"
            },
            {
              "Type": "Button",
              "Text": "Add Moons",
              "Style": "Primary",
              "Command": "core.system_viewer.sm_add_moons_confirm"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_delete_body_confirm1_modal",
      "Title": "Delete Body",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_delete_body_cancel",
      "Size": "Small",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 12,
          "Children": [
            {
              "Type": "Label",
              "Id": "sv_delete_body_confirm1_name",
              "Text": ""
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Text": "Cancel",
              "Command": "core.system_viewer.sm_delete_body_cancel"
            },
            {
              "Type": "Button",
              "Text": "Delete",
              "Style": "Primary",
              "Command": "core.system_viewer.sm_delete_body_confirm1"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_delete_body_confirm2_modal",
      "Title": "Confirm Deletion",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_delete_body_cancel",
      "Size": "Small",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 12,
          "Children": [
            {
              "Type": "Label",
              "Text": "Are you really sure? This will delete all populations on the system body or on any orbiting moons."
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Text": "Cancel",
              "Command": "core.system_viewer.sm_delete_body_cancel"
            },
            {
              "Type": "Button",
              "Text": "Delete",
              "Style": "Danger",
              "Command": "core.system_viewer.sm_delete_body_confirm2"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_modify_body_modal",
      "Title": "System Body Modification",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_modify_body_cancel",
      "Size": "Large",
      "Children": [
        {
          "Type": "Grid",
          "ColumnDefinitions": [
            "280px",
            "1fr"
          ],
          "Gap": 16,
          "Children": [
            {
              "Type": "StackPanel",
              "Grid.Column": 0,
              "Orientation": "Vertical",
              "Gap": 8,
              "Children": [
                {
                  "Type": "StackPanel",
                  "Orientation": "Vertical",
                  "Gap": 4,
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "Gap": 8,
                      "AlignItems": "Center",
                      "Children": [
                        {
                          "Type": "Label",
                          "Id": "sv_modify_body_distance_label",
                          "Text": "Distance (m km)",
                          "Width": "150px"
                        },
                        {
                          "Type": "Input",
                          "Id": "sv_modify_body_distance",
                          "Value": "",
                          "Width": "120px",
                          "Command": "core.system_viewer.sm_modify_body_set_distance",
                          "CommitOnInput": true
                        }
                      ]
                    },
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "Gap": 8,
                      "AlignItems": "Center",
                      "Children": [
                        {
                          "Type": "Label",
                          "Text": "Diameter (km)",
                          "Width": "150px"
                        },
                        {
                          "Type": "Input",
                          "Id": "sv_modify_body_diameter",
                          "Value": "",
                          "Width": "120px",
                          "Command": "core.system_viewer.sm_modify_body_set_diameter",
                          "CommitOnInput": true
                        }
                      ]
                    },
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "Gap": 8,
                      "AlignItems": "Center",
                      "Children": [
                        {
                          "Type": "Label",
                          "Text": "Hydro Extent (0-100)",
                          "Width": "150px"
                        },
                        {
                          "Type": "Input",
                          "Id": "sv_modify_body_hydro",
                          "Value": "",
                          "Width": "120px",
                          "Command": "core.system_viewer.sm_modify_body_set_hydro",
                          "CommitOnInput": true
                        }
                      ]
                    },
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "Gap": 8,
                      "AlignItems": "Center",
                      "Children": [
                        {
                          "Type": "Label",
                          "Text": "Albedo (Earth = 1)",
                          "Width": "150px"
                        },
                        {
                          "Type": "Input",
                          "Id": "sv_modify_body_albedo",
                          "Value": "",
                          "Width": "120px",
                          "Command": "core.system_viewer.sm_modify_body_set_albedo",
                          "CommitOnInput": true
                        }
                      ]
                    },
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "Gap": 8,
                      "AlignItems": "Center",
                      "Children": [
                        {
                          "Type": "Label",
                          "Text": "Density (Earth = 1)",
                          "Width": "150px"
                        },
                        {
                          "Type": "Input",
                          "Id": "sv_modify_body_density",
                          "Value": "",
                          "Width": "120px",
                          "Command": "core.system_viewer.sm_modify_body_set_density",
                          "CommitOnInput": true
                        }
                      ]
                    },
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "Gap": 8,
                      "AlignItems": "Center",
                      "Children": [
                        {
                          "Type": "Label",
                          "Text": "Day Length (hrs)",
                          "Width": "150px"
                        },
                        {
                          "Type": "Input",
                          "Id": "sv_modify_body_day_length",
                          "Value": "",
                          "Width": "120px",
                          "Command": "core.system_viewer.sm_modify_body_set_day_length",
                          "CommitOnInput": true
                        }
                      ]
                    },
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "Gap": 8,
                      "AlignItems": "Center",
                      "Children": [
                        {
                          "Type": "Label",
                          "Text": "Bearing (deg)",
                          "Width": "150px"
                        },
                        {
                          "Type": "Input",
                          "Id": "sv_modify_body_bearing",
                          "Value": "",
                          "Width": "120px",
                          "Command": "core.system_viewer.sm_modify_body_set_bearing",
                          "CommitOnInput": true
                        }
                      ]
                    },
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "Gap": 8,
                      "AlignItems": "Center",
                      "Children": [
                        {
                          "Type": "Label",
                          "Text": "Radiation",
                          "Width": "150px"
                        },
                        {
                          "Type": "Input",
                          "Id": "sv_modify_body_radiation",
                          "Value": "",
                          "Width": "120px",
                          "Command": "core.system_viewer.sm_modify_body_set_radiation",
                          "CommitOnInput": true
                        }
                      ]
                    },
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "Gap": 8,
                      "AlignItems": "Center",
                      "Children": [
                        {
                          "Type": "Label",
                          "Text": "Dust Level",
                          "Width": "150px"
                        },
                        {
                          "Type": "Input",
                          "Id": "sv_modify_body_dust",
                          "Value": "",
                          "Width": "120px",
                          "Command": "core.system_viewer.sm_modify_body_set_dust",
                          "CommitOnInput": true
                        }
                      ]
                    },
                    {
                      "Type": "StackPanel",
                      "Id": "sv_modify_body_ecc_row",
                      "Orientation": "Horizontal",
                      "Gap": 8,
                      "AlignItems": "Center",
                      "Children": [
                        {
                          "Type": "Label",
                          "Text": "Eccentricity",
                          "Width": "150px"
                        },
                        {
                          "Type": "Input",
                          "Id": "sv_modify_body_eccentricity",
                          "Value": "",
                          "Width": "120px",
                          "Command": "core.system_viewer.sm_modify_body_set_eccentricity",
                          "CommitOnInput": true
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "StackPanel",
                  "Orientation": "Horizontal",
                  "Gap": 8,
                  "AlignItems": "Center",
                  "Children": [
                    {
                      "Type": "Label",
                      "Text": "Terrain:",
                      "Width": "60px"
                    },
                    {
                      "Type": "Select",
                      "Id": "sv_modify_body_terrain",
                      "Width": "200px",
                      "Value": "",
                      "Options": [],
                      "Command": "core.system_viewer.sm_modify_body_terrain_changed"
                    }
                  ]
                },
                {
                  "Type": "DataGrid",
                  "Id": "sv_modify_body_atmo_grid",
                  "Classes": [
                    "ps-grid--compact"
                  ],
                  "Width": "100%",
                  "Height": "140px",
                  "EnableVerticalScroll": true,
                  "UseZebraStriping": false,
                  "AllowSorting": false,
                  "Columns": [
                    {
                      "Header": "Gas",
                      "Field": "gas"
                    },
                    {
                      "Header": "%",
                      "Field": "percentage",
                      "Align": "Right"
                    },
                    {
                      "Header": "atm",
                      "Field": "pressure",
                      "Align": "Right"
                    }
                  ],
                  "Rows": []
                },
                {
                  "Type": "StackPanel",
                  "Orientation": "Horizontal",
                  "Gap": 6,
                  "AlignItems": "Center",
                  "Children": [
                    {
                      "Type": "Select",
                      "Id": "sv_modify_body_gas_select",
                      "Width": "140px",
                      "Value": "",
                      "Options": [],
                      "Command": "core.system_viewer.sm_modify_body_gas_changed"
                    },
                    {
                      "Type": "Input",
                      "Id": "sv_modify_body_gas_amount",
                      "Value": "",
                      "Width": "60px",
                      "Placeholder": "atm"
                    },
                    {
                      "Type": "Button",
                      "Text": "Set",
                      "Command": "core.system_viewer.sm_modify_body_set_gas"
                    }
                  ]
                }
              ]
            },
            {
              "Type": "PropertyGrid",
              "Grid.Column": 1,
              "Id": "sv_modify_body_info_grid",
              "Classes": [
                "ps-pgrid--compact"
              ],
              "Sections": []
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Text": "Close",
              "Command": "core.system_viewer.sm_modify_body_cancel"
            },
            {
              "Type": "Button",
              "Text": "Update Body",
              "Style": "Primary",
              "Command": "core.system_viewer.sm_modify_body_update"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_rename_system_modal",
      "Title": "Rename System",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_rename_system_cancel",
      "DefaultCommand": "core.system_viewer.sm_rename_system_confirm",
      "Size": "Small",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 12,
          "Children": [
            {
              "Type": "StackPanel",
              "Orientation": "Horizontal",
              "Gap": 8,
              "Children": [
                {
                  "Type": "Label",
                  "Text": "Name",
                  "Width": "60px"
                },
                {
                  "Type": "Input",
                  "Id": "sv_rename_system_input",
                  "AutoFocus": true,
                  "Width": "200px",
                  "Command": "core.system_viewer.sm_rename_system_set_input",
                  "CommitOnInput": true
                }
              ]
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Text": "Cancel",
              "Command": "core.system_viewer.sm_rename_system_cancel"
            },
            {
              "Type": "Button",
              "Text": "Rename",
              "Style": "Primary",
              "Command": "core.system_viewer.sm_rename_system_confirm"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_rename_body_modal",
      "Title": "Rename Body",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_rename_body_cancel",
      "DefaultCommand": "core.system_viewer.sm_rename_body_confirm",
      "Size": "Small",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 12,
          "Children": [
            {
              "Type": "StackPanel",
              "Orientation": "Horizontal",
              "Gap": 8,
              "Children": [
                {
                  "Type": "Label",
                  "Text": "Name",
                  "Width": "60px"
                },
                {
                  "Type": "Input",
                  "Id": "sv_rename_body_input",
                  "AutoFocus": true,
                  "Width": "200px",
                  "Command": "core.system_viewer.sm_rename_body_set_input",
                  "CommitOnInput": true
                }
              ]
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Text": "Cancel",
              "Command": "core.system_viewer.sm_rename_body_cancel"
            },
            {
              "Type": "Button",
              "Text": "Rename",
              "Style": "Primary",
              "Command": "core.system_viewer.sm_rename_body_confirm"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_rename_sys_all_modal",
      "Title": "Rename System (All Races)",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_rename_sys_all_cancel",
      "DefaultCommand": "core.system_viewer.sm_rename_sys_all_confirm",
      "Size": "Small",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 12,
          "Children": [
            {
              "Type": "Label",
              "Text": "This will rename the system for all players.",
              "Style": "Danger"
            },
            {
              "Type": "StackPanel",
              "Orientation": "Horizontal",
              "Gap": 8,
              "Children": [
                {
                  "Type": "Label",
                  "Text": "Name",
                  "Width": "60px"
                },
                {
                  "Type": "Input",
                  "Id": "sv_rename_sys_all_input",
                  "AutoFocus": true,
                  "Width": "200px",
                  "Command": "core.system_viewer.sm_rename_sys_all_set_input",
                  "CommitOnInput": true
                }
              ]
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Text": "Cancel",
              "Command": "core.system_viewer.sm_rename_sys_all_cancel"
            },
            {
              "Type": "Button",
              "Text": "Rename All",
              "Style": "Primary",
              "Command": "core.system_viewer.sm_rename_sys_all_confirm"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_rename_body_all_modal",
      "Title": "Rename Body (All Races)",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_rename_body_all_cancel",
      "DefaultCommand": "core.system_viewer.sm_rename_body_all_confirm",
      "Size": "Small",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 12,
          "Children": [
            {
              "Type": "Label",
              "Text": "This will rename the body for all players.",
              "Style": "Danger"
            },
            {
              "Type": "StackPanel",
              "Orientation": "Horizontal",
              "Gap": 8,
              "Children": [
                {
                  "Type": "Label",
                  "Text": "Name",
                  "Width": "60px"
                },
                {
                  "Type": "Input",
                  "Id": "sv_rename_body_all_input",
                  "AutoFocus": true,
                  "Width": "200px",
                  "Command": "core.system_viewer.sm_rename_body_all_set_input",
                  "CommitOnInput": true
                }
              ]
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Text": "Cancel",
              "Command": "core.system_viewer.sm_rename_body_all_cancel"
            },
            {
              "Type": "Button",
              "Text": "Rename All",
              "Style": "Primary",
              "Command": "core.system_viewer.sm_rename_body_all_confirm"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_restrict_jp_confirm_modal",
      "Title": "Confirmation Required",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_restrict_jp_cancel",
      "DefaultCommand": "core.system_viewer.sm_restrict_jp_confirm",
      "Size": "Small",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 12,
          "Children": [
            {
              "Type": "Label",
              "Id": "sv_restrict_jp_warning",
              "Text": ""
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Text": "No",
              "Command": "core.system_viewer.sm_restrict_jp_cancel"
            },
            {
              "Type": "Button",
              "Text": "Yes",
              "Style": "Primary",
              "Command": "core.system_viewer.sm_restrict_jp_confirm"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_ban_body_confirm_modal",
      "Title": "Ban Body",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_ban_body_cancel",
      "DefaultCommand": "core.system_viewer.sm_ban_body_confirm_cascade",
      "Size": "Small",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 12,
          "Children": [
            {
              "Type": "Label",
              "Id": "sv_ban_body_question",
              "Text": "Do you wish to also ban all moons?"
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Text": "No",
              "Command": "core.system_viewer.sm_ban_body_confirm_no_cascade"
            },
            {
              "Type": "Button",
              "Text": "Yes",
              "Style": "Primary",
              "Command": "core.system_viewer.sm_ban_body_confirm_cascade"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_regen_jp_modal",
      "Title": "Regenerate Jump Points",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_regen_jp_cancel",
      "DefaultCommand": "core.system_viewer.sm_regen_jp_confirm",
      "Size": "Small",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 12,
          "Children": [
            {
              "Type": "Label",
              "Text": "This will delete all existing jump points and regenerate them."
            },
            {
              "Type": "StackPanel",
              "Orientation": "Horizontal",
              "Gap": 8,
              "Children": [
                {
                  "Type": "Label",
                  "Text": "Min JPs",
                  "Width": "80px"
                },
                {
                  "Type": "Input",
                  "Id": "sv_regen_jp_min_count",
                  "AutoFocus": true,
                  "Value": "0",
                  "Width": "80px",
                  "Command": "core.system_viewer.sm_regen_jp_set_count",
                  "CommitOnInput": true
                }
              ]
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Text": "Cancel",
              "Command": "core.system_viewer.sm_regen_jp_cancel"
            },
            {
              "Type": "Button",
              "Text": "Regen",
              "Style": "Danger",
              "Command": "core.system_viewer.sm_regen_jp_confirm"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_regen_min_modal",
      "Title": "Regenerate Minerals",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_regen_min_cancel",
      "DefaultCommand": "core.system_viewer.sm_regen_min_confirm",
      "Size": "Small",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 12,
          "Children": [
            {
              "Type": "Label",
              "Text": "Regenerate minerals on all non-colonized bodies in this system?"
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Text": "Cancel",
              "Command": "core.system_viewer.sm_regen_min_cancel"
            },
            {
              "Type": "Button",
              "Text": "Regen",
              "Style": "Danger",
              "Command": "core.system_viewer.sm_regen_min_confirm"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_delete_system_confirm1_modal",
      "Title": "Delete System",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_delete_system_cancel",
      "Size": "Small",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 12,
          "Children": [
            {
              "Type": "Label",
              "Id": "sv_delete_system_name1",
              "Text": "Are you sure you want to delete this system?"
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Text": "Cancel",
              "Command": "core.system_viewer.sm_delete_system_cancel"
            },
            {
              "Type": "Button",
              "Text": "Delete",
              "Style": "Danger",
              "Command": "core.system_viewer.sm_delete_system_confirm2"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "sv_delete_system_confirm2_modal",
      "Title": "Delete System",
      "IsVisible": false,
      "CloseCommand": "core.system_viewer.sm_delete_system_cancel",
      "Size": "Small",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 12,
          "Children": [
            {
              "Type": "Label",
              "Id": "sv_delete_system_name2",
              "Text": "Are you REALLY sure? This will delete all populations and military forces."
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Text": "Cancel",
              "Command": "core.system_viewer.sm_delete_system_cancel"
            },
            {
              "Type": "Button",
              "Text": "Delete System",
              "Style": "Danger",
              "Command": "core.system_viewer.sm_delete_system_execute"
            }
          ]
        }
      ]
    }
  ]
}
