Skip to content

Commit

Permalink
fixed loading and settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kaosnyrb committed Sep 4, 2024
1 parent 35f877d commit 00ad2c7
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
Binary file modified Seedstarfield/.vs/Seedstarfield/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file modified Seedstarfield/.vs/Seedstarfield/v17/.futdcache.v2
Binary file not shown.
Binary file modified Seedstarfield/.vs/Seedstarfield/v17/.suo
Binary file not shown.
13 changes: 13 additions & 0 deletions Seedstarfield/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 15 additions & 3 deletions Seedstarfield/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ public Form1()
{
InitializeComponent();
//Load settings
settings = YamlImporter.getObjectFromFile<SeedStarfieldSettings>("settings.yaml");
//Get list of ESMs
ESMDropdown.Items.AddRange(Utils.GetESM().ToArray());
try
{
settings = YamlImporter.getObjectFromFile<SeedStarfieldSettings>("settings.yaml");
}
catch (Exception ex)
{
settings = new SeedStarfieldSettings();
}
//Add the generators
generatordropbox.Items.Add("POI - Fort");
SSFEventLog.EventLogs = new Queue<string>();
Expand Down Expand Up @@ -99,5 +104,12 @@ private void generatordropbox_SelectedIndexChanged(object sender, EventArgs e)
{
settings.GeneratorName = generatordropbox.SelectedText;
}

private void loadesm_Click(object sender, EventArgs e)
{
//Get list of ESMs
ESMDropdown.Items.AddRange(Utils.GetESM().ToArray());

}
}
}

0 comments on commit 00ad2c7

Please sign in to comment.