Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
cadon committed Sep 8, 2024
2 parents 558062d + 2ca60f8 commit bb503f9
Show file tree
Hide file tree
Showing 55 changed files with 5,127 additions and 1,859 deletions.
48 changes: 29 additions & 19 deletions ARKBreedingStats/ARKBreedingStats.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,21 @@
<DependentUpon>AddDummyCreaturesSettings.cs</DependentUpon>
</Compile>
<Compile Include="library\CreatureSpawnCommand.cs" />
<Compile Include="library\CreatureTrait.cs" />
<Compile Include="library\DummyCreatures.cs" />
<Compile Include="NamePatterns\JavaScriptNamePattern.cs" />
<Compile Include="NamePatterns\TokenModel.cs" />
<Compile Include="StatsOptions\StatsOptionsControl.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="StatsOptions\StatsOptionsForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="StatsOptions\TopStatsSettings\ConsiderTopStats.cs" />
<Compile Include="StatsOptions\StatOptionsBase.cs" />
<Compile Include="StatsOptions\LevelGraphRepresentation.cs" />
<Compile Include="StatsOptions\LevelColorSettings\LevelGraphRepresentation.cs" />
<Compile Include="library\LevelStatusFlags.cs" />
<Compile Include="StatsOptions\StatLevelColors.cs" />
<Compile Include="StatsOptions\LevelColorSettings\StatLevelColors.cs" />
<Compile Include="StatsOptions\StatsOptions.cs" />
<Compile Include="StatsOptions\StatsOptionsSettings.cs" />
<Compile Include="library\TopLevels.cs" />
Expand All @@ -124,6 +134,9 @@
<Compile Include="Pedigree\IPedigreeCreature.cs" />
<Compile Include="species\ArkColors.cs" />
<Compile Include="species\Troodonism.cs" />
<Compile Include="StatsOptions\TopStatsSettings\ConsiderTopStatsControl.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="uiControls\ArkVersionDialog.cs">
<SubType>Form</SubType>
</Compile>
Expand All @@ -145,10 +158,10 @@
<Compile Include="uiControls\Hatching.Designer.cs">
<DependentUpon>Hatching.cs</DependentUpon>
</Compile>
<Compile Include="StatsOptions\HueControl.cs">
<Compile Include="StatsOptions\LevelColorSettings\HueControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="StatsOptions\HueControl.Designer.cs">
<Compile Include="StatsOptions\LevelColorSettings\HueControl.Designer.cs">
<DependentUpon>HueControl.cs</DependentUpon>
</Compile>
<Compile Include="uiControls\LibraryFilterTemplates.cs">
Expand All @@ -173,13 +186,13 @@
<Compile Include="uiControls\ScrollForm.Designer.cs">
<DependentUpon>ScrollForm.cs</DependentUpon>
</Compile>
<Compile Include="StatsOptions\StatLevelGraphOptionsControl.cs">
<Compile Include="StatsOptions\LevelColorSettings\StatLevelGraphOptionsControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="StatsOptions\StatLevelGraphOptionsControl.Designer.cs">
<Compile Include="StatsOptions\LevelColorSettings\StatLevelGraphOptionsControl.Designer.cs">
<DependentUpon>StatLevelGraphOptionsControl.cs</DependentUpon>
</Compile>
<Compile Include="StatsOptions\LevelGraphOptionsControl.cs">
<Compile Include="StatsOptions\LevelColorSettings\LevelGraphOptionsControl.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="uiControls\StatSelector.cs">
Expand All @@ -188,12 +201,6 @@
<Compile Include="uiControls\StatSelector.Designer.cs">
<DependentUpon>StatSelector.cs</DependentUpon>
</Compile>
<Compile Include="StatsOptions\StatsOptionsWindow.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="StatsOptions\StatsOptionsWindow.Designer.cs">
<DependentUpon>StatsOptionsWindow.cs</DependentUpon>
</Compile>
<Compile Include="Updater\AsbManifest.cs" />
<Compile Include="Updater\AsbModule.cs" />
<Compile Include="duplicates\MergingDuplicates.cs" />
Expand Down Expand Up @@ -734,6 +741,9 @@
</Content>
<None Include="Resources\updated.wav" />
<None Include="Resources\newMutation.wav" />
<None Include="NOTICE.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<Content Include="_manifest.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>_manifest.json</LastGenOutput>
Expand Down Expand Up @@ -765,7 +775,7 @@
<EmbeddedResource Include="uiControls\Hatching.resx">
<DependentUpon>Hatching.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="StatsOptions\HueControl.resx">
<EmbeddedResource Include="StatsOptions\LevelColorSettings\HueControl.resx">
<DependentUpon>HueControl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="uiControls\LibraryFilterTemplates.resx">
Expand All @@ -777,15 +787,12 @@
<EmbeddedResource Include="uiControls\ScrollForm.resx">
<DependentUpon>ScrollForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="StatsOptions\StatLevelGraphOptionsControl.resx">
<EmbeddedResource Include="StatsOptions\LevelColorSettings\StatLevelGraphOptionsControl.resx">
<DependentUpon>StatLevelGraphOptionsControl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="uiControls\StatSelector.resx">
<DependentUpon>StatSelector.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="StatsOptions\StatsOptionsWindow.resx">
<DependentUpon>StatsOptionsWindow.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="uiControls\VariantSelector.resx">
<DependentUpon>VariantSelector.cs</DependentUpon>
</EmbeddedResource>
Expand Down Expand Up @@ -1051,7 +1058,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="FluentFTP">
<Version>50.0.1</Version>
<Version>51.0.0</Version>
</PackageReference>
<PackageReference Include="JInt">
<Version>4.0.1</Version>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers">
<Version>3.3.4</Version>
Expand Down
98 changes: 81 additions & 17 deletions ARKBreedingStats/AboutBox1.Designer.cs

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

19 changes: 13 additions & 6 deletions ARKBreedingStats/AboutBox1.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
using ARKBreedingStats.utils;
Expand All @@ -16,6 +17,12 @@ public AboutBox1()
labelCopyright.Text = AssemblyCopyright;
labelDescription.Text = AssemblyDescription;
textBoxContributors.Text = Contributors;
const string noticeFileName = "NOTICE.txt";
var dependenciesFilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory,
noticeFileName);
TbDependencies.Text = File.Exists(dependenciesFilePath)
? File.ReadAllText(dependenciesFilePath)
: "see " + "https://raw.githubusercontent.com/cadon/ARKStatsExtractor/dev/ARKBreedingStats/" + noticeFileName;
}

#region Assemblyattributaccessoren
Expand All @@ -24,16 +31,16 @@ public string AssemblyTitle
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
var attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
if (attributes.Length > 0)
{
AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
if (titleAttribute.Title != "")
var titleAttribute = (AssemblyTitleAttribute)attributes[0];
if (!string.IsNullOrEmpty(titleAttribute.Title))
{
return titleAttribute.Title;
}
}
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
return Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
}
}

Expand Down Expand Up @@ -90,7 +97,7 @@ private void linkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs
System.Diagnostics.Process.Start(RepositoryInfo.RepositoryUrl);
}

private string Contributors => @"Thanks for contributions, help and support to
private const string Contributors = @"Thanks for contributions, help and support to
* NakramR: coding, library, OCR, overlay
* Flachdachs: save file extractor, installer-version, style
Expand All @@ -105,7 +112,7 @@ private void linkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs
* Warstone: Kibble recipes
* tsebring: naming-generator
* maxime-paquatte: custom timer sounds
* hallipr: FTP save file import
* hallipr: FTP save file import and Javascript name pattern support
* EmkioA: Cryopod import, listView tweaks
* dunger: fixes
* Myrmecoleon: extra species color region images
Expand Down
4 changes: 4 additions & 0 deletions ARKBreedingStats/CreatureInfoInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ internal void UpdateParentInheritances(Creature creature)

private void buttonAdd2Library_Click(object sender, EventArgs e)
{
// keep selected parents
Mother = Mother;
Father = Father;

Add2LibraryClicked?.Invoke(this);
}

Expand Down
Loading

0 comments on commit bb503f9

Please sign in to comment.