Skip to content

Commit

Permalink
when importing exported creatures, the list-view will show on front. …
Browse files Browse the repository at this point in the history
…added species-filter to importExported. removed duplicate and wrong entry for Tek Quetzal in classicFlyers.
  • Loading branch information
cadaei committed Feb 6, 2019
1 parent d7c8c0d commit a27a48f
Show file tree
Hide file tree
Showing 7 changed files with 197 additions and 71 deletions.
3 changes: 3 additions & 0 deletions ARKBreedingStats/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@
<setting name="importExportedSize" serializeAs="String">
<value>700, 700</value>
</setting>
<setting name="ExportCreatureFolder" serializeAs="String">
<value />
</setting>
</ARKBreedingStats.Properties.Settings>
</userSettings>
</configuration>
11 changes: 11 additions & 0 deletions ARKBreedingStats/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public Form1()
if (Properties.Settings.Default.UpgradeRequired)
{
Properties.Settings.Default.Upgrade();
Properties.Settings.Default.Save();
Properties.Settings.Default.Reload();
Properties.Settings.Default.UpgradeRequired = false;
Properties.Settings.Default.Save();
}
Expand Down Expand Up @@ -135,6 +137,14 @@ public Form1()
timerGlobal.Interval = 1000;
timerGlobal.Tick += TimerGlobal_Tick;

// load old importExported folder to new setting. TODO remove this part and the setting Properties.Settings.Default.ExportCreatureFolder around 2019-03
if (!string.IsNullOrEmpty(Properties.Settings.Default.ExportCreatureFolder)
&& (Properties.Settings.Default.ExportCreatureFolders == null
|| Properties.Settings.Default.ExportCreatureFolders.Length == 0))
{
Properties.Settings.Default.ExportCreatureFolders = new string[] { Properties.Settings.Default.ExportCreatureFolder };
}

reactOnSelectionChange = true;
}

Expand Down Expand Up @@ -5425,6 +5435,7 @@ private void showExportedCreatureListControl()
}
exportedCreatureList.ownerSuffix = "";
exportedCreatureList.Show();
exportedCreatureList.BringToFront();
}

private void copyToMultiplierTesterToolStripButton_Click(object sender, EventArgs e)
Expand Down
12 changes: 12 additions & 0 deletions ARKBreedingStats/Properties/Settings.Designer.cs

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

3 changes: 3 additions & 0 deletions ARKBreedingStats/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,8 @@
<Setting Name="importExportedSize" Type="System.Drawing.Size" Scope="User">
<Value Profile="(Default)">700, 700</Value>
</Setting>
<Setting Name="ExportCreatureFolder" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>
130 changes: 83 additions & 47 deletions ARKBreedingStats/importExported/ExportedCreatureList.Designer.cs

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

Loading

0 comments on commit a27a48f

Please sign in to comment.