hb icon, placeholder for alt wii

This commit is contained in:
NicoAICP 2020-06-11 00:30:40 +02:00
parent 67d5c2a24e
commit d9e1d1d5d7
7 changed files with 77 additions and 6 deletions

View file

@ -110,6 +110,16 @@ namespace UWUVCI_AIO_WPF.Properties {
}
}
/// <summary>
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap HBICON {
get {
object obj = ResourceManager.GetObject("HBICON", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
/// </summary>

View file

@ -133,6 +133,9 @@
<data name="GCN" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\GCN.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="HBICON" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\HBICON.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="homebrew" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\homebrew.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

View file

@ -338,7 +338,7 @@ namespace UWUVCI_AIO_WPF.UI.Windows
}
else if(hb.IsChecked == true)
{
bi.Frame = new Bitmap(Properties.Resources.Wii2);
bi.Frame = new Bitmap(Properties.Resources.HBICON);
}
DrawImage();
}

View file

@ -48,12 +48,13 @@
</Border>
<TextBox materialDesign:HintAssist.Hint="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="19,98,17,243" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="12" Grid.Column="1" Name="GameName1" TextChanged="Players_TextChanged" TabIndex="3"/>
<TextBox materialDesign:HintAssist.Hint="PLAYERS" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="19,248,17,92" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="12" Grid.Column="1" PreviewTextInput="TextBox_PreviewTextInput" DataObject.Pasting="TextBoxPasting" Name="Players" TextChanged="Players_TextChanged" TabIndex="7" MaxLength="1"/>
<StackPanel HorizontalAlignment="Left" Height="32" Margin="14,327,0,0" VerticalAlignment="Top" Width="481" Orientation="Horizontal" Name="snesonly" Visibility="Hidden">
<StackPanel HorizontalAlignment="Left" Height="32" Margin="14,327,0,0" VerticalAlignment="Top" Width="491" Orientation="Horizontal" Name="snesonly" Visibility="Hidden">
<Label Content="Style:" Width="50" Margin="0,4,0,-4"></Label>
<RadioButton Content="SNES - PAL" GroupName="snes" Name="pal" IsChecked="True" Click="pal_Click" Foreground="Black" Width="100" Margin="0,6,0,-6"/>
<RadioButton Content="SNES - NTSC" GroupName="snes" Click="pal_Click" Foreground="Black" Margin="0,6,0,-6" Width="107" Name="sntsc"/>
<RadioButton Content="Super Famicom" GroupName="snes" Click="RadioButton_Click" Foreground="Black" Margin="0,6,0,-6" Name="sfc"/>
<RadioButton Content="Super Famicom" GroupName="snes" Click="RadioButton_Click" Foreground="Black" Margin="0,6,0,-6" Name="sfc" Width="116"/>
<RadioButton Content="Alternative - Wii" GroupName="snes" Click="RadioButton_Click" Foreground="Black" Margin="0,6,0,-6" Name="altwii" Visibility="Hidden"/>
<ComboBox Margin="0,2" Width="169" Name="combo" SelectionChanged="combo_SelectionChanged" Foreground="Black" Visibility="Hidden" ></ComboBox>
</StackPanel>
<CheckBox Content="Use ALT font" HorizontalAlignment="Left" Height="18" Margin="407,333,0,0" VerticalAlignment="Top" Foreground="Black" Click="CheckBox_Click" Name="alt" Visibility="Hidden"/>

View file

@ -36,6 +36,7 @@ namespace UWUVCI_AIO_WPF.UI.Windows
Bitmap b;
string console = "other";
bool drc = false;
private string backupcons;
public ImageCreator(string name)
{
@ -123,6 +124,8 @@ namespace UWUVCI_AIO_WPF.UI.Windows
pal.Content = "Wii";
sntsc.Content = "WiiWare";
sfc.Content = "Homebrew";
altwii.Visibility = Visibility.Visible;
backupcons = "WII";
break;
case GameConsoles.GCN:
bit = new Bitmap(Properties.Resources.GCN);
@ -420,7 +423,7 @@ namespace UWUVCI_AIO_WPF.UI.Windows
private void pal_Click(object sender, RoutedEventArgs e)
{
if(console != "WII")
if(console != "WII" && backupcons != "WII")
{
if (pal.IsChecked == true)
{
@ -434,6 +437,9 @@ namespace UWUVCI_AIO_WPF.UI.Windows
}
else
{
console = "WII";
switchs(Visibility.Hidden);
if (pal.IsChecked == true)
{
bi.Frame = Properties.Resources.WII;
@ -451,13 +457,27 @@ namespace UWUVCI_AIO_WPF.UI.Windows
private void RadioButton_Click(object sender, RoutedEventArgs e)
{
if(console != "WII")
if(console != "WII" && backupcons != "WII")
{
backupcons = console;
bi.Frame = Properties.Resources.SFAM;
}
else
{
bi.Frame = Properties.Resources.homebrew3;
backupcons = "WII";
if(altwii.IsChecked == false)
{
console = "WII";
switchs(Visibility.Hidden);
bi.Frame = Properties.Resources.homebrew3;
}
else
{
switchs(Visibility.Visible);
console = "other";
bi.Frame = Properties.Resources.NDS;
}
}
b = bi.Create(console);
@ -502,5 +522,39 @@ namespace UWUVCI_AIO_WPF.UI.Windows
}
DrawImage();
}
private void switchs(Visibility v)
{
GameName1.Visibility = v;
GameName2.Visibility = v;
ReleaseYear.Visibility = v;
Players.Visibility = v;
if(v == Visibility.Hidden)
{
bi.NameLine1 = "";
bi.NameLine2 = "";
bi.Released = 0;
bi.Players = 0;
}
else
{
bi.NameLine1 = GameName1.Text;
bi.NameLine2 = GameName2.Text;
if (!String.IsNullOrEmpty(ReleaseYear.Text))
{
bi.Released = Convert.ToInt32(ReleaseYear.Text);
}
if (!String.IsNullOrEmpty(Players.Text))
{
bi.Players = Convert.ToInt32(Players.Text);
}
}
}
}
}

View file

@ -575,6 +575,9 @@
<ItemGroup>
<None Include="Resources\homebrew3.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\HBICON.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\MaterialDesignThemes.3.0.1\build\MaterialDesignThemes.targets" Condition="Exists('..\packages\MaterialDesignThemes.3.0.1\build\MaterialDesignThemes.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">