Skip to content

Commit

Permalink
Finalized release (screenshots added, github as repo)
Browse files Browse the repository at this point in the history
  • Loading branch information
KirovAir committed Sep 18, 2019
1 parent cd6968a commit 53e9b78
Show file tree
Hide file tree
Showing 13 changed files with 132 additions and 82 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Twilight Boxart
![Screenshot](https://https://raw.githubusercontent.com/KirovAir/TwilightBoxart/master/img/screenshot.png)

# Twilight Boxart
A boxart downloader written in C#. Uses various sources and scan methods to determine the correct boxart.
Written for TwilightMenu++ but can be used for other loader UI's with some config changes. 😊

Expand Down
10 changes: 0 additions & 10 deletions TwilightBoxart.CLI/TwilightBoxart.CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@
<NoWin32Manifest>true</NoWin32Manifest>
</PropertyGroup>

<ItemGroup>
<None Remove="TwilightBoxart.ini" />
</ItemGroup>

<ItemGroup>
<Content Include="TwilightBoxart.ini">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\TwilightBoxart\TwilightBoxart.csproj" />
</ItemGroup>
Expand Down
5 changes: 0 additions & 5 deletions TwilightBoxart.CLI/TwilightBoxart.ini

This file was deleted.

26 changes: 13 additions & 13 deletions TwilightBoxart.UX/App.config
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.4.1" newVersion="4.0.4.1" />
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.0.4.1" newVersion="4.0.4.1"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
<System.Windows.Forms.ApplicationConfigurationSection>
<add key="DpiAwareness" value="PerMonitorV1" />
<add key="DpiAwareness" value="PerMonitorV1"/>
</System.Windows.Forms.ApplicationConfigurationSection>
</configuration>
100 changes: 53 additions & 47 deletions TwilightBoxart.UX/MainForm.Designer.cs

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

23 changes: 22 additions & 1 deletion TwilightBoxart.UX/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ private void DetectSd()
}
}
}
else
{
Log("No SD card(s) found.");
}

if (!string.IsNullOrEmpty(path))
{
Expand Down Expand Up @@ -74,6 +78,8 @@ private void SetUx()
txtBoxart.Text = _config.GetBoxartPath(txtSdRoot.Text);
}

txtBoxart.ReadOnly = !chkManualBoxartLocation.Checked;

numHeight.Visible = chkBoxartSize.Checked;
numWidth.Visible = chkBoxartSize.Checked;
lblSize1.Visible = chkBoxartSize.Checked;
Expand Down Expand Up @@ -103,7 +109,12 @@ private void MainForm_Load(object sender, EventArgs e)
Log($"Error while loading {BoxartConfig.FileName}. Using defaults.");
}

if (string.IsNullOrEmpty(_config.SdRoot))
if (!string.IsNullOrEmpty(_config.SdRoot))
{
txtSdRoot.Text = _config.SdRoot;
txtBoxart.Text = _config.GetBoxartPath();
}
else
{
DetectSd();
}
Expand Down Expand Up @@ -162,6 +173,16 @@ private void chkBoxartSize_CheckedChanged(object sender, EventArgs e)
SetUx();
}

private void txtSdRoot_TextChanged(object sender, EventArgs e)
{
SetUx();
}

private void txtBoxart_TextChanged(object sender, EventArgs e)
{
SetUx();
}

private void btnGithub_Click(object sender, EventArgs e)
{
if (MessageBox.Show(BoxartConfig.Credits + Environment.NewLine + Environment.NewLine + "Visit Github now?", "Hello", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
Expand Down
10 changes: 9 additions & 1 deletion TwilightBoxart.UX/TwilightBoxart.manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<assemblyIdentity version="1.0.0.0" name="TwilightBoxart.app"/>

<!-- Breaks lower window resolutions..
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor, System</dpiAwareness>
</windowsSettings>
</application>-->

<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
Expand Down
Loading

0 comments on commit 53e9b78

Please sign in to comment.