{
  "Type": "Grid",
  "Id": "game_info",
  "Width": "100%",
  "Height": "100%",
  "HorizontalAlignment": "Stretch",
  "VerticalAlignment": "Stretch",
  "Children": [
    {
      "Type": "StackPanel",
      "Id": "game_info_root",
      "Orientation": "Vertical",
      "HorizontalAlignment": "Center",
      "VerticalAlignment": "Center",
      "Margin": "32px",
      "Children": [
        {
          "Type": "StackPanel",
          "Id": "header_row",
          "Orientation": "Vertical",
          "HorizontalAlignment": "Center",
          "Children": [
            {
              "Type": "Label",
              "Id": "lbl_title",
              "Text": "Galaxy Set Up",
              "Style": "Label.Title",
              "FontSize": "36px"
            },
            {
              "Type": "Separator",
              "Id": "title_sep",
              "Variant": "AccentStrong",
              "Fade": true
            }
          ]
        },
        {
          "Type": "Panel",
          "Id": "game_info_glass",
          "Classes": ["ps-panel--glass", "ps-panel--borderless"],
          "Padding": "16px",
          "Margin": "16px 0 0 0",
          "Children": [
            {
              "Type": "TabContainer",
              "Id": "game_info_tabs",
              "Command": "p4x.game.info.tab",
              "ActiveIndex": 0,
              "Children": [
            {
              "Type": "TabItem",
              "Id": "tab_game_settings",
              "Title": "Galaxy",
              "Children": [
                {
                  "Type": "Panel",
                  "Id": "game_settings_panel",
                  "Classes": ["ps-panel--glass", "ps-panel--borderless"],
                  "Padding": "16px",
                  "Children": [
                    {
                      "Type": "ScrollBox",
                      "Id": "game_settings_scroll",
                      "Axis": "Vertical",
                      "Children": [
                        {
                          "Type": "StackPanel",
                          "Id": "game_settings_content",
                          "Orientation": "Vertical",
                      "Gap": 12,
                      "Padding": "16px",
                      "Children": [
                        {"Type":"Alert","Id":"alert_galaxy","Severity":"Info","Message":"These game options can be modified at any time","IsDismissible":false,"IsCompact":true},
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Maximum Number of Systems",
                              "Width": "260px",
                              "Tooltip": "The maximum number of star systems in the galaxy. Does not affect Known Stars games."
                            },
                            {
                              "Type": "Input",
                              "Id": "inp_max_systems",
                              "Width": "120px",
                              "InputType": "number",
                              "Value": "1000",
                              "min": 1,
                              "max": 10000,
                              "step": 1,
                              "Command": "p4x.game.info.setting"
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Local System Generation Chance %",
                              "Width": "260px",
                              "Tooltip": "Chance that a newly discovered system links to a 'Local System' — one with a nearby system number. Does not apply to Known Stars games."
                            },
                            {
                              "Type": "Input",
                              "Id": "inp_sys_gen_chance",
                              "Width": "120px",
                              "InputType": "number",
                              "Value": "50",
                              "min": 0,
                              "max": 100,
                              "step": 1,
                              "Command": "p4x.game.info.setting"
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Local System Generation Spread",
                              "Width": "260px",
                              "Tooltip": "Maximum difference in system numbers between a newly discovered Local System and the system from which it was entered. Does not apply to Known Stars games."
                            },
                            {
                              "Type": "Input",
                              "Id": "inp_sys_gen_spread",
                              "Width": "120px",
                              "InputType": "number",
                              "Value": "15",
                              "min": 1,
                              "max": 20,
                              "step": 1,
                              "Command": "p4x.game.info.setting"
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Construction Cycle Time",
                              "Width": "260px",
                              "Tooltip": "The minimum interval in seconds between construction phases. Higher values mean longer gaps between industry updates."
                            },
                            {
                              "Type": "Input",
                              "Id": "inp_construction_cycle",
                              "Width": "120px",
                              "InputType": "number",
                              "Value": "430000",
                              "min": 1,
                              "max": 9999999,
                              "step": 1,
                              "Command": "p4x.game.info.setting"
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Difficulty Modifier  (100 = Normal)",
                              "Width": "260px",
                              "Tooltip": "Applied to NPR starting population size, research rates, and growth rates. 100% is normal. 90% makes the game easier, 110% makes it harder."
                            },
                            {
                              "Type": "Input",
                              "Id": "inp_difficulty",
                              "Width": "120px",
                              "InputType": "number",
                              "Value": "100",
                              "min": 1,
                              "max": 500,
                              "step": 1,
                              "Command": "p4x.game.info.setting"
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Research Speed  (100 = Normal)",
                              "Width": "260px",
                              "Tooltip": "Affects research point production by scientists. 100% is normal. 90% = fewer RP, 110% = more RP. Applies to all races including NPRs."
                            },
                            {
                              "Type": "Input",
                              "Id": "inp_research_speed",
                              "Width": "120px",
                              "InputType": "number",
                              "Value": "100",
                              "min": 0,
                              "max": 1000,
                              "step": 1,
                              "Command": "p4x.game.info.setting"
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Terraforming Speed  (100 = Normal)",
                              "Width": "260px",
                              "Tooltip": "Affects atmosphere production of terraforming installations and modules. 100% is normal. 90% = less atmosphere, 110% = more. Applies to all races including NPRs."
                            },
                            {
                              "Type": "Input",
                              "Id": "inp_terraform_speed",
                              "Width": "120px",
                              "InputType": "number",
                              "Value": "100",
                              "min": 0,
                              "max": 1000,
                              "step": 1,
                              "Command": "p4x.game.info.setting"
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Survey Speed  (100 = Normal)",
                              "Width": "260px",
                              "Tooltip": "Affects speed of geological and gravitational surveys. 100% is normal. 90% = slower surveys, 110% = faster surveys. Applies to all races including NPRs."
                            },
                            {
                              "Type": "Input",
                              "Id": "inp_survey_speed",
                              "Width": "120px",
                              "InputType": "number",
                              "Value": "100",
                              "min": 0,
                              "max": 1000,
                              "step": 1,
                              "Command": "p4x.game.info.setting"
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Ruin Generation Chance",
                              "Width": "260px",
                              "Tooltip": "Chance of an ancient ruin appearing on a suitable system body during generation. Suitable means surface temperature between -73°C and +87°C with gravity greater than 0.4G."
                            },
                            {
                              "Type": "Input",
                              "Id": "inp_ruin_gen_chance",
                              "Width": "120px",
                              "InputType": "number",
                              "Value": "20",
                              "min": 0,
                              "max": 100,
                              "step": 1,
                              "Command": "p4x.game.info.setting"
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Minimum Comets per System",
                              "Width": "260px",
                              "Tooltip": "During normal generation, not all systems have comets. Setting this above zero ensures a minimum number of comets per system."
                            },
                            {
                              "Type": "Input",
                              "Id": "inp_min_comets",
                              "Width": "120px",
                              "InputType": "number",
                              "Value": "0",
                              "min": 0,
                              "max": 100,
                              "step": 1,
                              "Command": "p4x.game.info.setting"
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Truce Countdown",
                              "Width": "260px",
                              "Tooltip": "Minimum time in years that NPRs will maintain a truce against races sharing the same system as their capital. Useful for multi-player games with multiple NPRs on Earth."
                            },
                            {
                              "Type": "Input",
                              "Id": "inp_truce_countdown",
                              "Width": "120px",
                              "InputType": "number",
                              "Value": "0",
                              "min": 0,
                              "max": 999,
                              "step": 1,
                              "Command": "p4x.game.info.setting"
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Spacemaster Password",
                              "Width": "260px",
                              "Tooltip": "Password required to enter Spacemaster Mode. Can be left blank if desired."
                            },
                            {
                              "Type": "Input",
                              "Id": "inp_sm_password",
                              "Width": "160px",
                              "InputType": "password",
                              "Placeholder": "Optional",
                              "Command": "p4x.game.info.setting"
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Confirm Password",
                              "Width": "260px",
                              "Tooltip": "Re-enter the Spacemaster password to confirm it is correct."
                            },
                            {
                              "Type": "Input",
                              "Id": "inp_sm_password_confirm",
                              "Width": "160px",
                              "InputType": "password",
                              "Placeholder": "Re-enter",
                              "Command": "p4x.game.info.setting"
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Detection",
                              "Width": "260px",
                              "Tooltip": "Sensor checks normally occur in systems with two or more races present. This controls detection behavior in systems where none of the races is a player race."
                            },
                            {
                              "Type": "Select",
                              "Id": "sel_detection",
                              "Width": "280px",
                              "Value": 0,
                              "Options": [
                                { "Label": "Normal in all systems", "Value": 0 },
                                { "Label": "None without player presence", "Value": 1 },
                                { "Label": "Automatic without player presence", "Value": 2 }
                              ],
                              "Command": "p4x.game.info.setting"
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Sol Disaster",
                              "Width": "260px",
                              "Tooltip": "Start the game with a disaster occurring in the Sol system."
                            },
                            {
                              "Type": "Select",
                              "Id": "sel_sol_disaster",
                              "Width": "280px",
                              "Value": 0,
                              "Options": [
                                { "Label": "No Disaster", "Value": 0 },
                                { "Label": "Sol Warming 1% Year", "Value": 1 },
                                { "Label": "Sol Warming 2% Year", "Value": 2 },
                                { "Label": "Sol Warming 3% Year", "Value": 3 },
                                { "Label": "Sol Cooling 1% Year", "Value": 4 },
                                { "Label": "Sol Cooling 2% Year", "Value": 5 },
                                { "Label": "Sol Cooling 3% Year", "Value": 6 },
                                { "Label": "Earth Death Spiral 0.01 AU", "Value": 7 },
                                { "Label": "Earth Death Spiral 0.02 AU", "Value": 8 },
                                { "Label": "Earth Death Spiral 0.03 AU", "Value": 9 },
                                { "Label": "Solar Radiation 0.05 x Year^3", "Value": 10 },
                                { "Label": "Solar Radiation 0.075 x Year^3", "Value": 11 },
                                { "Label": "Solar Radiation 0.1 x Year^3", "Value": 12 }
                              ],
                              "Command": "p4x.game.info.setting"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
                }
              ]
            },
            {
              "Type": "TabItem",
              "Id": "tab_npr_settings",
              "Title": "NPRs",
              "Children": [
                {
                  "Type": "Panel",
                  "Id": "npr_settings_panel",
                  "Classes": ["ps-panel--glass", "ps-panel--borderless"],
                  "Padding": "16px",
                  "Children": [
                    {
                      "Type": "ScrollBox",
                      "Id": "npr_settings_scroll",
                      "Axis": "Vertical",
                      "Children": [
                        {
                          "Type": "StackPanel",
                          "Id": "npr_settings_content",
                          "Orientation": "Vertical",
                          "Gap": 12,
                          "Children": [
                            {"Type":"Alert","Id":"alert_nprs","Severity":"Info","Message":"These game options can be modified at any time","IsDismissible":false,"IsCompact":true},
                            {"Type":"Alert","Id":"alert_npr_ai_source","Severity":"Info","Message":"NPR AI powered by the Archon mod (active) — rival empires have distinct strategic personalities.","IsDismissible":false,"IsCompact":true,"IsVisible":false},
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "NPR Generation Chance (by Player)",
                                  "Width": "300px",
                                  "Tooltip": "Chance of a new NPR appearing on a habitable world in a system discovered by a player race. Higher values mean more NPRs will be generated during exploration."
                                },
                                {
                                  "Type": "Input",
                                  "Id": "inp_npr_gen_chance_player",
                                  "Width": "120px",
                                  "InputType": "number",
                                  "Value": "30",
                                  "min": 0,
                                  "max": 100,
                                  "step": 1,
                                  "Command": "p4x.game.info.setting"
                                }
                              ]
                            },
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "NPR Generation Chance (by NPR)",
                                  "Width": "300px",
                                  "Tooltip": "Chance of a new NPR appearing on a habitable world in a system discovered by a non-player race. This can lead to chain-reaction NPR generation."
                                },
                                {
                                  "Type": "Input",
                                  "Id": "inp_npr_gen_chance_npr",
                                  "Width": "120px",
                                  "InputType": "number",
                                  "Value": "10",
                                  "min": 0,
                                  "max": 100,
                                  "step": 1,
                                  "Command": "p4x.game.info.setting"
                                }
                              ]
                            },
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "NPR Base Explored Transits",
                                  "Width": "300px",
                                  "Tooltip": "Guaranteed number of jump points an NPR will explore from its home system at game start. Determines the minimum size of each NPR's starting empire."
                                },
                                {
                                  "Type": "Input",
                                  "Id": "inp_npr_base_explored_transits",
                                  "Width": "120px",
                                  "InputType": "number",
                                  "Value": "0",
                                  "min": 0,
                                  "max": 999,
                                  "step": 1,
                                  "Command": "p4x.game.info.setting"
                                }
                              ]
                            },
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "NPR Random Explored Transits",
                                  "Width": "300px",
                                  "Tooltip": "If greater than zero, each NPR will explore between 1 and this number of additional transits beyond its base amount, adding randomness to starting empire size."
                                },
                                {
                                  "Type": "Input",
                                  "Id": "inp_npr_random_explored_transits",
                                  "Width": "120px",
                                  "InputType": "number",
                                  "Value": "0",
                                  "min": 0,
                                  "max": 999,
                                  "step": 1,
                                  "Command": "p4x.game.info.setting"
                                }
                              ]
                            },
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "NPR Max Start Systems  (0 = Unlimited)",
                                  "Width": "300px",
                                  "Tooltip": "Caps the maximum number of systems an NPR can start with. Set to 0 for no limit. Use with Base and Random Transits to control NPR starting size."
                                },
                                {
                                  "Type": "Input",
                                  "Id": "inp_npr_max_start_systems",
                                  "Width": "120px",
                                  "InputType": "number",
                                  "Value": "0",
                                  "min": 0,
                                  "max": 9999,
                                  "step": 1,
                                  "Command": "p4x.game.info.setting"
                                }
                              ]
                            },
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Pre-Industrial NPR %",
                                  "Width": "300px",
                                  "Tooltip": "Percentage of new NPRs generated as pre-industrial races. These are approximately 12.5% the size of normal NPRs, with no industry or ships."
                                },
                                {
                                  "Type": "Input",
                                  "Id": "inp_pre_industrial_npr_pct",
                                  "Width": "120px",
                                  "InputType": "number",
                                  "Value": "10",
                                  "min": 0,
                                  "max": 100,
                                  "step": 1,
                                  "Command": "p4x.game.info.setting"
                                }
                              ]
                            },
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Industrial NPR %",
                                  "Width": "300px",
                                  "Tooltip": "Percentage of new NPRs generated as conventional (industrial-era) races. These have conventional industry but have not yet discovered Trans-Newtonian technology."
                                },
                                {
                                  "Type": "Input",
                                  "Id": "inp_industrial_npr_pct",
                                  "Width": "120px",
                                  "InputType": "number",
                                  "Value": "10",
                                  "min": 0,
                                  "max": 100,
                                  "step": 1,
                                  "Command": "p4x.game.info.setting"
                                }
                              ]
                            },
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Minor Trans-Newtonian NPR %",
                                  "Width": "300px",
                                  "Tooltip": "Percentage of new NPRs generated as minor races. Minor races are approximately 25% the size of normal NPRs. They are Trans-Newtonian capable but cannot build jump drives."
                                },
                                {
                                  "Type": "Input",
                                  "Id": "inp_minor_tn_npr_pct",
                                  "Width": "120px",
                                  "InputType": "number",
                                  "Value": "20",
                                  "min": 0,
                                  "max": 100,
                                  "step": 1,
                                  "Command": "p4x.game.info.setting"
                                }
                              ]
                            },
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Hostility Modifier",
                                  "Width": "300px",
                                  "Tooltip": "Added to Xenophobia and Militarism of newly generated NPRs, and deducted from their Diplomacy and Trade attributes. Higher values make NPRs more aggressive."
                                },
                                {
                                  "Type": "Input",
                                  "Id": "inp_hostility_modifier",
                                  "Width": "120px",
                                  "InputType": "number",
                                  "Value": "0",
                                  "min": 0,
                                  "max": 100,
                                  "step": 1,
                                  "Command": "p4x.game.info.setting"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "Type": "TabItem",
              "Id": "tab_game_setup",
              "Title": "Rules",
              "Children": [
                {
                  "Type": "Panel",
                  "Id": "game_setup_panel",
                  "Classes": ["ps-panel--glass", "ps-panel--borderless"],
                  "Padding": "16px",
                  "Children": [
                    {
                      "Type": "ScrollBox",
                      "Id": "game_setup_scroll",
                      "Axis": "Vertical",
                      "Children": [
                        {
                          "Type": "StackPanel",
                          "Id": "game_setup_columns",
                          "Orientation": "Vertical",
                          "Gap": 8,
                          "Children": [
                            {"Type":"Alert","Id":"alert_rules","Severity":"Info","Message":"These game options can be modified at any time","IsDismissible":false,"IsCompact":true},
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 24,
                              "Children": [
                                {
                                  "Type": "StackPanel",
                                  "Id": "game_setup_col1",
                                  "Orientation": "Vertical",
                                  "Gap": 6,
                                  "Children": [
                                    {"Type":"Checkbox","Id":"chk_use_known_stars","Label":"Known Star Systems","IsChecked":true,"TooltipText":"Real-world star systems will be used, along with commonly used names, actual star types and orbital distances. Jump points link to nearby systems in real space.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_constellation_names","Label":"Use Constellation Names","IsChecked":false,"TooltipText":"Where a known system has a generic name such as Gliese 101, a new name will be generated based on unused Bayer and Flamsteed nomenclature.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_orbital_motion","Label":"Orbital Motion for Planets","IsChecked":true,"TooltipText":"While this option is active, planets will orbit their parent stars.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_orbital_motion_ast","Label":"Orbital Motion for Asteroids","IsChecked":true,"TooltipText":"While this option is active, asteroids will orbit their parent stars.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_generate_nprs","Label":"Generate New Races as NPRs","IsChecked":false,"TooltipText":"Any non-starting races created during system generation will be computer-controlled (NPRs). If unchecked, new races require manual control.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_allow_human_nprs","Label":"Allow Human NPRs","IsChecked":false,"TooltipText":"Non-player races may be generated as human if environmental conditions allow.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_generate_pre_industrial","Label":"Generate Pre-industrial Only","IsChecked":false,"TooltipText":"If checked, any newly generated races will be pre-industrial.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_generate_precursors","Label":"Generate Precursors","IsChecked":true,"TooltipText":"Precursors are ancient robot-controlled ships guarding alien ruins. One of the Ancient Races.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_generate_star_swarm","Label":"Generate Star Swarm","IsChecked":true,"TooltipText":"The Star Swarm is an alien species of living ships that reproduce in space.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_generate_invaders","Label":"Generate Invaders","IsChecked":false,"TooltipText":"Extra-Galactic Invaders periodically attempt to sweep the galaxy clean of competitor races. Extremely Dangerous.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_enhanced_precursors","Label":"Enhanced Precursors","IsChecked":false,"TooltipText":"Enhanced Precursors awaken from ancient tombs, sending forces to the surface and launching ships from deep beneath.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_enhanced_swarm","Label":"Enhanced Swarm","IsChecked":false,"TooltipText":"Enhanced Star Swarm spreads to nearby systems over time.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_enhanced_invaders","Label":"Enhanced Invaders","IsChecked":false,"TooltipText":"Enhanced Invaders create larger rifts than the standard 10 million kilometres.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_generate_rakhas","Label":"Generate Rakhas","IsChecked":true,"TooltipText":"Rakhas are hostile humanoids found on worlds rich with Trans-Newtonian elements.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_generate_aether_raiders","Label":"Generate Aether Raiders","IsChecked":true,"TooltipText":"Aether Raiders conduct effective raiding operations on unprotected ships and colonies.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_ancient_relics","Label":"Ancient Relics","IsChecked":true,"TooltipText":"The Ancients mysteriously disappeared long ago. Their abandoned colonies and ships may be found in unexplored systems.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_nprs_generate_precursors","Label":"NPRs Generate Precursors","IsChecked":false,"TooltipText":"If checked, NPRs may generate Precursors during their own system generation.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_nprs_generate_star_swarm","Label":"NPRs Generate Star Swarm","IsChecked":false,"TooltipText":"If checked, NPRs may generate Star Swarm during their own system generation.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_nprs_generate_aether_rifts","Label":"NPRs Generate Aether Rifts","IsChecked":false,"TooltipText":"If checked, NPRs may generate Aether Rifts during their own system generation.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_nprs_encounter_raiders","Label":"NPRs Encounter Raiders","IsChecked":false,"TooltipText":"If checked, NPRs may suffer from Aether Raider attacks.","Command":"p4x.game.info.setting"}
                                  ]
                                },
                                {
                                  "Type": "StackPanel",
                                  "Id": "game_setup_col2",
                                  "Orientation": "Vertical",
                                  "Gap": 6,
                                  "Children": [
                                    {"Type":"Checkbox","Id":"chk_realistic_promotions","Label":"Realistic Commander Promotions","IsChecked":true,"TooltipText":"Officers are promoted based on their skills, including a political bonus.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_limited_labs","Label":"Limited Research Administration","IsChecked":false,"TooltipText":"Scientists start with 20% research admin capacity. Experience increases are limited.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_inexp_fleets","Label":"Inexperienced Fleet Penalties","IsChecked":true,"TooltipText":"Inexperienced fleets respond to orders more slowly. Can be troublesome in close combat.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_political_admirals","Label":"Commander Political Bonuses","IsChecked":false,"TooltipText":"Adds political bonus skills to officers for promotion purposes.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_auto_jump_gates","Label":"All Jump Points are Stable","IsChecked":true,"TooltipText":"All jump points are stable — jump ships are unnecessary and all ships can transit.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_no_maintenance","Label":"No Maintenance Required","IsChecked":false,"TooltipText":"Disables maintenance. Ships will not suffer failures or require overhauls.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_civilian_shipping","Label":"Civilian Shipping Lines Active","IsChecked":true,"TooltipText":"Civilian shipping lines will build ships as their finances allow.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_allow_civilian_mines","Label":"Allow Civilian Mines","IsChecked":true,"TooltipText":"Civilian mining companies will establish their own mining colonies.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_allow_civilian_harvesters","Label":"Allow Civilian Harvesters","IsChecked":true,"TooltipText":"Civilian shipping lines will build fuel harvesters.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_tech_from_conquest","Label":"New Tech from Conquest","IsChecked":true,"TooltipText":"Conquering a population grants technology proportionate to its size.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_eccentric_orbits","Label":"Eccentric Orbits","IsChecked":true,"TooltipText":"Stars and planets will be generated with orbital eccentricity.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_gas_giant_effects","Label":"Gas Giant Effects","IsChecked":true,"TooltipText":"Massive gas giants can perturb nearby planets' orbits.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_one_second_subpulse","Label":"One Second Sub Pulse","IsChecked":true,"TooltipText":"5-second increments use five 1-second sub-pulses for finer movement resolution.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_limited_planet_distance","Label":"Limited Planet Distance","IsChecked":true,"TooltipText":"Limits planet creation to twice the outer survey ring distance.","Command":"p4x.game.info.setting"},
                                    {"Type":"Checkbox","Id":"chk_use_theme_known_stars","Label":"Use Theme in Known Stars","IsChecked":false,"TooltipText":"Uses race naming theme instead of real star names in known stars games.","Command":"p4x.game.info.setting"}
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "Type": "TabItem",
              "Id": "tab_extras",
              "Title": "Start Conditions",
              "Children": [
                {
                  "Type": "Panel",
                  "Id": "extras_panel",
                  "Classes": ["ps-panel--glass", "ps-panel--borderless"],
                  "Padding": "16px",
                  "Children": [
                    {
                      "Type": "ScrollBox",
                      "Id": "extras_scroll",
                      "Axis": "Vertical",
                      "Children": [
                        {
                          "Type": "StackPanel",
                          "Id": "extras_content",
                          "Orientation": "Vertical",
                          "Gap": 12,
                          "Children": [
                            {"Type":"Alert","Id":"alert_start_conditions","Severity":"Warning","Message":"These game options can be modified at start only","IsDismissible":false,"IsCompact":true},
                            {"Type":"StackPanel","Orientation":"Horizontal","Gap":8,"Children":[{"Type":"Label","Text":"Starting Year","Width":"300px","Tooltip":"The starting year of the campaign. Dates begin on January 1st of this year. This is purely cosmetic."},{"Type":"Input","Id":"inp_starting_year","Width":"120px","InputType":"number","Value":"2050","min":0,"max":999999,"step":1,"Command":"p4x.game.info.setting"}]},
                            {"Type":"StackPanel","Orientation":"Horizontal","Gap":8,"Children":[{"Type":"Label","Text":"Number of Player Races","Width":"300px","Tooltip":"The number of player races created at the start of the game. Each will have a Create Race window during setup."},{"Type":"Input","Id":"inp_num_player_races","Width":"120px","InputType":"number","Value":"1","min":1,"max":20,"step":1,"Command":"p4x.game.info.setting"}]},
                            {"Type":"StackPanel","Orientation":"Horizontal","Gap":8,"Children":[{"Type":"Label","Text":"Number of Non-Player Races","Width":"300px","Tooltip":"The number of computer-controlled opponents (NPRs) created at game start. NPRs start in hidden systems and function similarly to player races."},{"Type":"Input","Id":"inp_num_npr_races","Width":"120px","InputType":"number","Value":"1","min":0,"max":50,"step":1,"Command":"p4x.game.info.setting"}]},
                            {"Type":"StackPanel","Orientation":"Horizontal","Gap":8,"Children":[{"Type":"Label","Text":"Minimum Sol Jump Points (0 = Random)","Width":"300px","Tooltip":"The number of jump points created in the Sol system. Setting to zero results in a random number of jump points."},{"Type":"Input","Id":"inp_min_sol_jump_points","Width":"120px","InputType":"number","Value":"0","min":0,"max":20,"step":1,"Command":"p4x.game.info.setting"}]},
                            {"Type":"StackPanel","Orientation":"Horizontal","Gap":8,"Children":[{"Type":"Label","Text":"Earth Mineral Deposits  (100 = normal)","Width":"300px","Tooltip":"Controls the abundance of mineral deposits on Earth. 100 is normal. Higher values mean more minerals."},{"Type":"Input","Id":"inp_earth_mineral_deposits","Width":"120px","InputType":"number","Value":"100","min":1,"max":500,"step":1,"Command":"p4x.game.info.setting"}]},
                            {"Type":"StackPanel","Orientation":"Horizontal","Gap":8,"Children":[{"Type":"Label","Text":"Minimum NPR Distance (LY)","Width":"300px","Tooltip":"Applies only to known stars games. The minimum distance from Sol at which an NPR home system will be generated."},{"Type":"Input","Id":"inp_min_npr_distance","Width":"120px","InputType":"number","Value":"25","min":0,"max":1000,"step":1,"Command":"p4x.game.info.setting"}]},
                            {"Type":"StackPanel","Orientation":"Horizontal","Gap":8,"Children":[{"Type":"Label","Text":"Maximum NPR Distance (LY)","Width":"300px","Tooltip":"Applies only to known stars games. The maximum distance from Sol at which an NPR home system will be generated."},{"Type":"Input","Id":"inp_max_npr_distance","Width":"120px","InputType":"number","Value":"50","min":0,"max":1000,"step":1,"Command":"p4x.game.info.setting"}]},
                            {"Type":"Separator","Margin":"8px 0"},
                            {"Type":"StackPanel","Orientation":"Horizontal","Gap":8,"Children":[{"Type":"Label","Text":"Player Known Systems for Star Swarm","Width":"300px","Tooltip":"The number of player-known systems required before the Star Swarm can appear."},{"Type":"Input","Id":"inp_swarm_systems","Width":"120px","InputType":"number","Value":"30","min":0,"max":9999,"step":1,"Command":"p4x.game.info.setting"}]},
                            {"Type":"StackPanel","Orientation":"Horizontal","Gap":8,"Children":[{"Type":"Label","Text":"Player Known Systems for Raiders","Width":"300px","Tooltip":"The number of player-known systems required before Aether Raiders can appear."},{"Type":"Input","Id":"inp_raider_systems","Width":"120px","InputType":"number","Value":"10","min":0,"max":9999,"step":1,"Command":"p4x.game.info.setting"}]},
                            {"Type":"StackPanel","Orientation":"Horizontal","Gap":8,"Children":[{"Type":"Label","Text":"Player Known Systems for Invaders","Width":"300px","Tooltip":"The number of player-known systems required before Invaders can appear."},{"Type":"Input","Id":"inp_invader_systems","Width":"120px","InputType":"number","Value":"50","min":0,"max":9999,"step":1,"Command":"p4x.game.info.setting"}]},
                            {"Type":"Separator","Margin":"8px 0"},
                            {"Type":"StackPanel","Orientation":"Horizontal","Gap":8,"Children":[{"Type":"Label","Text":"Minimum Research Points: Precursors","Width":"300px","Tooltip":"The minimum player research points required before Precursors can be encountered."},{"Type":"Input","Id":"inp_precursor_rp","Width":"120px","InputType":"number","Value":"600000","min":0,"max":99999999,"step":10000,"Command":"p4x.game.info.setting"}]},
                            {"Type":"StackPanel","Orientation":"Horizontal","Gap":8,"Children":[{"Type":"Label","Text":"Minimum Research Points: Star Swarm","Width":"300px","Tooltip":"The minimum player research points required before the Star Swarm can be encountered."},{"Type":"Input","Id":"inp_swarm_rp","Width":"120px","InputType":"number","Value":"600000","min":0,"max":99999999,"step":10000,"Command":"p4x.game.info.setting"}]},
                            {"Type":"StackPanel","Orientation":"Horizontal","Gap":8,"Children":[{"Type":"Label","Text":"Minimum Research Points: Raiders","Width":"300px","Tooltip":"The minimum player research points required before Aether Raiders can be encountered."},{"Type":"Input","Id":"inp_raider_rp","Width":"120px","InputType":"number","Value":"400000","min":0,"max":99999999,"step":10000,"Command":"p4x.game.info.setting"}]},
                            {"Type":"StackPanel","Orientation":"Horizontal","Gap":8,"Children":[{"Type":"Label","Text":"Minimum Research Points: Invaders","Width":"300px","Tooltip":"The minimum player research points required before Invaders can be encountered."},{"Type":"Input","Id":"inp_invader_rp","Width":"120px","InputType":"number","Value":"1500000","min":0,"max":99999999,"step":10000,"Command":"p4x.game.info.setting"}]},
                            {"Type":"Separator","Margin":"8px 0"},
                            {"Type":"StackPanel","Orientation":"Horizontal","Gap":8,"Children":[{"Type":"Label","Text":"Customised NPRs","Width":"300px","Tooltip":"If chosen, a window will popup for each NPR allowing you to choose themes, pictures, starting system, terrain type, etc."},{"Type":"Checkbox","Id":"chk_customised_nprs","IsChecked":false,"TooltipText":"Customise each NPR during generation with themes, pictures and starting system.","Command":"p4x.game.info.setting"}]},
                            {"Type":"StackPanel","Orientation":"Horizontal","Gap":8,"Children":[{"Type":"Label","Text":"Add Planet X","Width":"300px","Tooltip":"Add a ninth major planet to the Sol system. This may be a gas giant, superjovian or terrestrial world and it may have moons."},{"Type":"Checkbox","Id":"chk_add_planet_x","IsChecked":false,"TooltipText":"Add a ninth major planet to the Sol system.","Command":"p4x.game.info.setting"}]}
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
            }
          ]
        },
        {
          "Type": "Grid",
          "Id": "footer_row",
          "Width": "100%",
          "ColumnDefinitions": ["*", "auto", "*"],
          "Gap": 8,
          "Margin": "16px 0 0 0",
          "Children": [
            {
              "Type": "Button",
              "Id": "btn_back",
              "Grid.Column": 0,
              "HorizontalAlignment": "Left",
              "Text": "Back",
              "Command": "p4x.game.info.close"
            },
            {
              "Type": "StackPanel",
              "Id": "footer_center",
              "Grid.Column": 1,
              "Orientation": "Horizontal",
              "HorizontalAlignment": "Center",
              "Gap": 8,
              "Children": [
                {
                  "Type": "Button",
                  "Id": "btn_previous",
                  "Text": "← Previous",
                  "Command": "p4x.game.info.prev",
                  "IsEnabled": false
                },
                {
                  "Type": "Button",
                  "Id": "btn_next",
                  "Text": "Next →",
                  "Command": "p4x.game.info.next"
                }
              ]
            },
            {
              "Type": "Button",
              "Id": "btn_create_game",
              "Grid.Column": 2,
              "HorizontalAlignment": "Right",
              "Text": "Create Game",
              "Style": "Primary",
              "Command": "p4x.game.info.create"
            }
          ]
        }
      ]
    }
  ]
}
