Exemple #1
0
 private void BindChoices()
 {
     foreach (var portrait in Pictures.ListLeaderPortraits())
     {
         ddlLeaderPortrait.Items.Add(portrait);
     }
     foreach (var icon in Pictures.ListPopulationIcons())
     {
         ddlRacePopulationIcon.Items.Add(icon);
     }
     foreach (var surface in Mod.Current.StellarObjectTemplates.OfType <Planet>().Select(p => p.Surface).Distinct())
     {
         ddlRaceNativeSurface.Items.Add(surface);
     }
     foreach (var atmosphere in Mod.Current.StellarObjectTemplates.OfType <Planet>().Select(p => p.Atmosphere).Distinct())
     {
         ddlRaceNativeAtmosphere.Items.Add(atmosphere);
     }
     foreach (var insignia in Pictures.ListInsignia())
     {
         ddlInsignia.Items.Add(insignia);
     }
     foreach (var shipset in Pictures.ListShipsets())
     {
         ddlShipset.Items.Add(shipset);
     }
     foreach (var ai in Mod.Current.EmpireAIs)
     {
         ddlAI.Items.Add(ai);
     }
     foreach (var h in Mod.Current.HappinessModels)
     {
         ddlRaceHappiness.Items.Add(h);
     }
     foreach (var c in Mod.Current.Cultures)
     {
         ddlCulture.Items.Add(c);
     }
     foreach (var n in Mod.Current.DesignNamesFiles)
     {
         ddlDesignNames.Items.Add(n);
     }
     raceTraitPicker.Traits = Mod.Current.Traits;
 }