mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-10 05:34:13 +00:00
ui fixes, more alt icons. finished bootlogo creator
This commit is contained in:
parent
be32f69da3
commit
4534c25482
22 changed files with 138 additions and 65 deletions
|
@ -70,10 +70,13 @@ namespace UWUVCI_AIO_WPF.Classes
|
|||
}
|
||||
}
|
||||
|
||||
public Bitmap Create(string text)
|
||||
public Bitmap Create(string text, float fontsize)
|
||||
{
|
||||
Bitmap img = new Bitmap(170, 42);
|
||||
Graphics g = Graphics.FromImage(img);
|
||||
StringFormat format1 = new StringFormat(StringFormatFlags.NoClip);
|
||||
format1.Alignment = StringAlignment.Center;
|
||||
format1.LineAlignment = StringAlignment.Center;
|
||||
g.PixelOffsetMode = PixelOffsetMode.Half;
|
||||
g.SmoothingMode = SmoothingMode.AntiAlias;
|
||||
g.CompositingMode = CompositingMode.SourceOver;
|
||||
|
@ -81,12 +84,12 @@ namespace UWUVCI_AIO_WPF.Classes
|
|||
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
|
||||
g.Clear(System.Drawing.Color.FromArgb(30, 30, 30));
|
||||
g.DrawImage(Frame, 0, 0, 170, 42);
|
||||
Rectangle rectangletxt = new Rectangle(15, 8, 143, 25);
|
||||
Rectangle rectangletxt = new Rectangle(12, 7, 152, 30);
|
||||
|
||||
System.Drawing.Text.PrivateFontCollection privateFonts = new System.Drawing.Text.PrivateFontCollection();
|
||||
privateFonts.AddFontFile(@"bin\Tools\font2.ttf");
|
||||
|
||||
Font font = new Font(privateFonts.Families[0], 20.0F, System.Drawing.FontStyle.Bold, GraphicsUnit.Point);
|
||||
Font font = new Font(privateFonts.Families[0], fontsize, System.Drawing.FontStyle.Bold, GraphicsUnit.Point);
|
||||
|
||||
|
||||
|
||||
|
@ -95,7 +98,7 @@ namespace UWUVCI_AIO_WPF.Classes
|
|||
g.SmoothingMode = SmoothingMode.AntiAlias;
|
||||
g.InterpolationMode = InterpolationMode.HighQualityBicubic;
|
||||
g.PixelOffsetMode = PixelOffsetMode.HighQuality;
|
||||
g.DrawString(text, font, new SolidBrush(System.Drawing.Color.FromArgb(180, 180, 180)), rectangletxt);
|
||||
g.DrawString(text, font, new SolidBrush(System.Drawing.Color.FromArgb(180, 180, 180)), rectangletxt, format1);
|
||||
|
||||
|
||||
return img;
|
||||
|
|
20
UWUVCI AIO WPF/Properties/Resources.Designer.cs
generated
20
UWUVCI AIO WPF/Properties/Resources.Designer.cs
generated
|
@ -260,6 +260,26 @@ namespace UWUVCI_AIO_WPF.Properties {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap SNES_alt1 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("SNES_alt1", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap SNES_alt2 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("SNES_alt2", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
|
|
@ -178,6 +178,12 @@
|
|||
<data name="SFAM" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\SFAM.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="SNES_alt1" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\SNES alt1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="SNES_alt2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\SNES alt2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="SNES_PAL" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\SNES-PAL.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 6.1 KiB |
BIN
UWUVCI AIO WPF/Resources/SNES alt1.png
Normal file
BIN
UWUVCI AIO WPF/Resources/SNES alt1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
BIN
UWUVCI AIO WPF/Resources/SNES alt2.png
Normal file
BIN
UWUVCI AIO WPF/Resources/SNES alt2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.9 KiB |
|
@ -267,10 +267,10 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
ic.ShowDialog();
|
||||
if (File.Exists(path) && mvm.CheckTime(new FileInfo(path).CreationTime))
|
||||
{
|
||||
mvm.GameConfiguration.TGATv.ImgPath = path;
|
||||
mvm.GameConfiguration.TGATv.extension = new FileInfo(path).Extension;
|
||||
tv.Text = path;
|
||||
tvIMG.Visibility = Visibility.Visible;
|
||||
mvm.GameConfiguration.TGADrc.ImgPath = path;
|
||||
mvm.GameConfiguration.TGADrc.extension = new FileInfo(path).Extension;
|
||||
drc.Text = path;
|
||||
drcIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -294,10 +294,10 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
ic.ShowDialog();
|
||||
if (File.Exists(path) && mvm.CheckTime(new FileInfo(path).CreationTime))
|
||||
{
|
||||
mvm.GameConfiguration.TGATv.ImgPath = path;
|
||||
mvm.GameConfiguration.TGATv.extension = new FileInfo(path).Extension;
|
||||
tv.Text = path;
|
||||
tvIMG.Visibility = Visibility.Visible;
|
||||
mvm.GameConfiguration.TGADrc.ImgPath = path;
|
||||
mvm.GameConfiguration.TGADrc.extension = new FileInfo(path).Extension;
|
||||
drc.Text = path;
|
||||
drcIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -314,10 +314,10 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
ic.ShowDialog();
|
||||
if (File.Exists(path) && mvm.CheckTime(new FileInfo(path).CreationTime))
|
||||
{
|
||||
mvm.GameConfiguration.TGATv.ImgPath = path;
|
||||
mvm.GameConfiguration.TGATv.extension = new FileInfo(path).Extension;
|
||||
tv.Text = path;
|
||||
tvIMG.Visibility = Visibility.Visible;
|
||||
mvm.GameConfiguration.TGADrc.ImgPath = path;
|
||||
mvm.GameConfiguration.TGADrc.extension = new FileInfo(path).Extension;
|
||||
drc.Text = path;
|
||||
drcIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -263,17 +263,12 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
ic.ShowDialog();
|
||||
if (File.Exists(path) && mvm.CheckTime(new FileInfo(path).CreationTime))
|
||||
{
|
||||
mvm.GameConfiguration.TGATv.ImgPath = path;
|
||||
mvm.GameConfiguration.TGATv.extension = new FileInfo(path).Extension;
|
||||
tv.Text = path;
|
||||
tvIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
mvm.GameConfiguration.TGATv.ImgPath = null;
|
||||
tv.Text = "";
|
||||
tvIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGADrc.ImgPath = path;
|
||||
mvm.GameConfiguration.TGADrc.extension = new FileInfo(path).Extension;
|
||||
drc.Text = path;
|
||||
drcIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void Set_IconTex(object sender, RoutedEventArgs e)
|
||||
|
|
|
@ -262,10 +262,10 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
ic.ShowDialog();
|
||||
if (File.Exists(path) && mvm.CheckTime(new FileInfo(path).CreationTime))
|
||||
{
|
||||
mvm.GameConfiguration.TGATv.ImgPath = path;
|
||||
mvm.GameConfiguration.TGATv.extension = new FileInfo(path).Extension;
|
||||
tv.Text = path;
|
||||
tvIMG.Visibility = Visibility.Visible;
|
||||
mvm.GameConfiguration.TGADrc.ImgPath = path;
|
||||
mvm.GameConfiguration.TGADrc.extension = new FileInfo(path).Extension;
|
||||
drc.Text = path;
|
||||
drcIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -388,10 +388,10 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
ic.ShowDialog();
|
||||
if (File.Exists(path) && mvm.CheckTime(new FileInfo(path).CreationTime))
|
||||
{
|
||||
mvm.GameConfiguration.TGATv.ImgPath = path;
|
||||
mvm.GameConfiguration.TGATv.extension = new FileInfo(path).Extension;
|
||||
tv.Text = path;
|
||||
tvIMG.Visibility = Visibility.Visible;
|
||||
mvm.GameConfiguration.TGADrc.ImgPath = path;
|
||||
mvm.GameConfiguration.TGADrc.extension = new FileInfo(path).Extension;
|
||||
drc.Text = path;
|
||||
drcIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames
|
|||
|
||||
private void Button_Click_5(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Custom_Message cm = new Custom_Message("Credits", "UWUVCI AIO - NicoAICP, Morilli, Lreiia Bot\nBeta Testers/Contributors - wowjinxy, Danis, Adolfobenjaminv\n\n7za - Igor Pavlov\nBuildPcePkg & BuildTurboCDPcePkg - JohnnyGo\nCdecrypt - crediar\nCNUSPACKER - NicoAICP, Morilli\nINICreator - NicoAICP\nN64Converter - Morilli\npng2tga - Easy2Convert\ninject_gba_c (psb) - Morilli\nRetroInject_C - Morilli\ntga_verify - Morilli\nWiiUDownloader - Morilli\nwiiurpxtool - 0CHB0\nGoomba - FluBBa\nDarkFilter Removal N64 - MelonSpeedruns\nNintendont SD Card Menu - TeconMoon\nwit - Wiimm\nGetExtTypePatcher - Fix94\nnfs2iso2nfs - sabykos, piratesephiroth, Fix94 and many more\nWii-VMC - wanikoko\nIcon/TV Bootimages - Flump\nNKit - nanook");
|
||||
Custom_Message cm = new Custom_Message("Credits", "UWUVCI AIO - NicoAICP, Morilli, Lreiia Bot\nBeta Testers/Contributors - wowjinxy, Danis, Adolfobenjaminv\n\n7za - Igor Pavlov\nBuildPcePkg & BuildTurboCDPcePkg - JohnnyGo\nCdecrypt - crediar\nCNUSPACKER - NicoAICP, Morilli\nINICreator - NicoAICP\nN64Converter - Morilli\npng2tga - Easy2Convert\ninject_gba_c (psb) - Morilli\nRetroInject_C - Morilli\ntga_verify - Morilli\nWiiUDownloader - Morilli\nwiiurpxtool - 0CHB0\nGoomba - FluBBa\nDarkFilter Removal N64 - MelonSpeedruns\nNintendont SD Card Menu - TeconMoon\nwit - Wiimm\nGetExtTypePatcher - Fix94\nnfs2iso2nfs - sabykos, piratesephiroth, Fix94 and many more\nWii-VMC - wanikoko\nIcon/TV Bootimages - Flump\nNKit - \nImage Creation Base - Phacox\nWiiGameLanguage Patcher - ReturnerS\nChangeAspectRatio - andot\nvWii Title Forwarder - Fix94");
|
||||
try
|
||||
{
|
||||
cm.Owner = (FindResource("mvm") as MainViewModel).mw;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
Title="SettingsFrame" >
|
||||
|
||||
<Grid>
|
||||
<TextBlock x:Name="tb" Margin="10,172,10,192" TextWrapping="Wrap" Text="Welcome to UWUVCI AIO v2.1. To start Injecting select a Console to your left." FontSize="20" Height="116" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center" Width="1110" />
|
||||
<TextBlock x:Name="tb" Margin="10,172,10,192" TextWrapping="Wrap" Text="Welcome to UWUVCI AIO v3.0. To start Injecting select a Console to your left." FontSize="20" Height="116" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center" Width="1110" />
|
||||
|
||||
|
||||
</Grid>
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
|
||||
|
||||
</Grid.RowDefinitions>
|
||||
<Button Content="Close" HorizontalAlignment="Left" Margin="102,57,0,0" VerticalAlignment="Top" Width="74" Click="Canc_Click" RenderTransformOrigin="0.5,0.5"/>
|
||||
<Image HorizontalAlignment="Left" Height="42" Width="170" Margin="6,10,0,0" VerticalAlignment="Top" Name="img"/>
|
||||
<Button Content="Clear" HorizontalAlignment="Left" Margin="6,57,0,0" VerticalAlignment="Top" Width="74" Click="Button_Click" RenderTransformOrigin="0.5,0.5"/>
|
||||
<Button Content="Close" Margin="102,57,11,0" VerticalAlignment="Top" Click="Canc_Click" RenderTransformOrigin="0.5,0.5"/>
|
||||
<Image HorizontalAlignment="Left" Height="42" Width="170" Margin="7,10,0,0" VerticalAlignment="Top" Name="img"/>
|
||||
<Button Content="Clear" HorizontalAlignment="Left" Margin="7,57,0,0" VerticalAlignment="Top" Width="74" Click="Button_Click" RenderTransformOrigin="0.5,0.5"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
|
||||
|
||||
</Grid.RowDefinitions>
|
||||
<Button Content="Close" HorizontalAlignment="Left" Margin="85,143,0,0" VerticalAlignment="Top" Width="74" Click="Canc_Click" RenderTransformOrigin="0.5,0.5"/>
|
||||
<Button Content="Close" Margin="85,143,0,0" VerticalAlignment="Top" Click="Canc_Click" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" Width="74"/>
|
||||
<Image Height="128" Margin="20,10,0,0" VerticalAlignment="Top" Name="img" HorizontalAlignment="Left" Width="128"/>
|
||||
<Button Content="Clear" HorizontalAlignment="Left" Margin="6,143,0,0" VerticalAlignment="Top" Width="67" Click="Button_Click"/>
|
||||
<Button Content="Clear" Margin="8,143,0,0" VerticalAlignment="Top" Click="Button_Click" HorizontalAlignment="Left" Width="67"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
|
||||
|
||||
</Grid.RowDefinitions>
|
||||
<Button Content="Close" HorizontalAlignment="Left" Margin="256,204,0,0" VerticalAlignment="Top" Width="74" Click="Canc_Click" RenderTransformOrigin="0.5,0.5"/>
|
||||
<Button Content="Close" Margin="256,204,0,0" VerticalAlignment="Top" Click="Canc_Click" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" Width="74"/>
|
||||
<Image HorizontalAlignment="Left" Height="180" Width="320" Margin="8,10,0,0" VerticalAlignment="Top" Name="img"/>
|
||||
<Button Content="Clear" HorizontalAlignment="Left" Margin="10,204,0,0" VerticalAlignment="Top" Width="74" Click="Button_Click" RenderTransformOrigin="0.5,0.5"/>
|
||||
<Button Content="Clear" HorizontalAlignment="Left" Margin="7,204,0,0" VerticalAlignment="Top" Width="74" Click="Button_Click" RenderTransformOrigin="0.5,0.5"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
xmlns:local="clr-namespace:UWUVCI_AIO_WPF"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
mc:Ignorable="d"
|
||||
Title="ImageCreator" Height="160.461" Width="467" Foreground="White" Background="LightGray" ResizeMode="NoResize" materialDesign:ShadowAssist.CacheMode="{x:Null}" Icon="/UWUVCI AIO WPF;component/b.ico" Name="wind" SizeToContent="WidthAndHeight" BorderBrush="#FF2196F3" BorderThickness="1.5,1.5,1.5,1.5" ShowInTaskbar="False" WindowStyle="None" Loaded="wind_Loaded" WindowStartupLocation="CenterOwner" MaxHeight="200" MinWidth="467">
|
||||
Title="ImageCreator" Height="204.054" Width="467" Foreground="White" Background="LightGray" ResizeMode="NoResize" materialDesign:ShadowAssist.CacheMode="{x:Null}" Icon="/UWUVCI AIO WPF;component/b.ico" Name="wind" SizeToContent="WidthAndHeight" BorderBrush="#FF2196F3" BorderThickness="1.5,1.5,1.5,1.5" ShowInTaskbar="False" WindowStyle="None" Loaded="wind_Loaded" WindowStartupLocation="CenterOwner" MaxHeight="200" MinWidth="467">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="200"/>
|
||||
|
@ -17,16 +17,15 @@
|
|||
<Label Height="9" Margin="0,0,353,0"></Label>
|
||||
<Label Margin="0,0,353,0"></Label>
|
||||
|
||||
|
||||
<TextBox materialDesign:HintAssist.Hint="LOGO TEXT" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,48,-16,71" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="12" Name="t" TextChanged="t_TextChanged" TabIndex="3" Grid.Column="1"/>
|
||||
|
||||
<Image Height="42" VerticalAlignment="Top" Name="Image" Margin="18,49,13,0" />
|
||||
<Button Content="Cancel" Grid.Column="1" HorizontalAlignment="Left" Margin="153,105,-16,0" Width="99" Click="Button_Click" Height="32" VerticalAlignment="Top" TabIndex="5"/>
|
||||
<Button Content="Finish" Grid.Column="1" HorizontalAlignment="Left" Margin="10,105,0,0" VerticalAlignment="Top" Width="99" Name="Finish" Click="Finish_Click" TabIndex="4"/>
|
||||
<Button Content="Cancel" Grid.Column="1" HorizontalAlignment="Left" Margin="151,154,-14,0" Width="99" Click="Button_Click" Height="32" VerticalAlignment="Top" TabIndex="5"/>
|
||||
<Button Content="Finish" Grid.Column="1" HorizontalAlignment="Left" Margin="10,154,0,0" VerticalAlignment="Top" Width="99" Name="Finish" Click="Finish_Click" TabIndex="4"/>
|
||||
<Border BorderThickness="1.5,1.5,1.5,1.5" BorderBrush="#FF2196F3" Height="43" VerticalAlignment="Top" Margin="17,48,11,0"/>
|
||||
|
||||
<Label Content=" bootTvTex" x:Name="imageName" Margin="14,25,14,108" />
|
||||
<Button Content="Use File Instead" Grid.Column="1" HorizontalAlignment="Left" Margin="121,10,-16,0" VerticalAlignment="Top" Width="131" x:Name="Finish_Copy" Click="FileSelect_Click" TabIndex="4"/>
|
||||
<Button Content="Use File Instead" Grid.Column="1" HorizontalAlignment="Left" Margin="119,10,-14,0" VerticalAlignment="Top" Width="131" x:Name="Finish_Copy" Click="FileSelect_Click" TabIndex="4"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="LOGO TEXT" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,46,-16,110" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="12" x:Name="t" TextChanged="t_TextChanged" TabIndex="3" Grid.Column="1"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="FONTSIZE" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,97,-16,59" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="12" x:Name="t_Copy" TextChanged="t_Copy_TextChanged" TabIndex="3" Grid.Column="1" MaxLength="2" PreviewTextInput="TextBox_PreviewTextInput" DataObject.Pasting="TextBoxPasting"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
|
|
|
@ -43,6 +43,7 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
InitializeComponent();
|
||||
imageName.Content = "bootLogoTex";
|
||||
SetTemplate();
|
||||
t_Copy.Text = "18";
|
||||
}
|
||||
|
||||
|
||||
|
@ -59,10 +60,7 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
private void FileSelect_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MainViewModel mvm = FindResource("mvm") as MainViewModel;
|
||||
if (!Settings.Default.dont)
|
||||
{
|
||||
mvm.ImageWarning();
|
||||
}
|
||||
|
||||
string path = mvm.GetFilePath(false, false);
|
||||
if (!CheckIfNull(path))
|
||||
{
|
||||
|
@ -96,8 +94,9 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
copy = path;
|
||||
}
|
||||
bi.Frame = new Bitmap(copy);
|
||||
b = bi.Create("");
|
||||
Finish_Click(null, null);
|
||||
b = bi.Create("", 20);
|
||||
Image.Source = BitmapToImageSource(b);
|
||||
//Finish_Click(null, null);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -160,7 +159,7 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
|
||||
private void wind_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
b = bi.Create(t.Text);
|
||||
b = bi.Create(t.Text, 20);
|
||||
Image.Source = BitmapToImageSource(b);
|
||||
}
|
||||
BitmapImage BitmapToImageSource(Bitmap bitmap)
|
||||
|
@ -185,7 +184,20 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
|
||||
void DrawImage()
|
||||
{
|
||||
b = bi.Create(t.Text);
|
||||
if(!bi.Frame.Equals(new Bitmap(Properties.Resources.bootLogoTex)))
|
||||
{
|
||||
bi.Frame = new Bitmap(Properties.Resources.bootLogoTex);
|
||||
}
|
||||
int fontsize = 18;
|
||||
try
|
||||
{
|
||||
fontsize = Convert.ToInt32(t_Copy.Text);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
fontsize = 18;
|
||||
}
|
||||
b = bi.Create(t.Text, fontsize);
|
||||
Image.Source = BitmapToImageSource(b);
|
||||
}
|
||||
|
||||
|
@ -210,9 +222,6 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
|
||||
private void RadioButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
bi.Frame = Properties.Resources.SFAM;
|
||||
b = bi.Create(console);
|
||||
Image.Source = BitmapToImageSource(b);
|
||||
}
|
||||
|
||||
private void PLDi_Click(object sender, RoutedEventArgs e)
|
||||
|
@ -233,5 +242,11 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
{
|
||||
DrawImage();
|
||||
}
|
||||
|
||||
private void t_Copy_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
|
||||
DrawImage();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -97,6 +97,18 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
hb.Visibility = Visibility.Visible;
|
||||
wii.Visibility = Visibility.Visible;
|
||||
}
|
||||
else if ((FindResource("mvm") as MainViewModel).GameConfiguration.Console == GameConsoles.SNES)
|
||||
{
|
||||
bi.Frame = new Bitmap(Properties.Resources.Icon);
|
||||
wii.IsChecked = true;
|
||||
ww.Content = "Alt 1";
|
||||
hb.Content = "Alt 2";
|
||||
wii.Content = "SNES";
|
||||
ww.Visibility = Visibility.Visible;
|
||||
ws.Visibility = Visibility.Visible;
|
||||
hb.Visibility = Visibility.Visible;
|
||||
wii.Visibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
bi.Frame = new Bitmap(Properties.Resources.Icon);
|
||||
|
@ -382,8 +394,25 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
console = "WII";
|
||||
}
|
||||
}
|
||||
else if ((FindResource("mvm") as MainViewModel).GameConfiguration.Console == GameConsoles.SNES)
|
||||
{
|
||||
if (ww.IsChecked == true)
|
||||
{
|
||||
bi.Frame = new Bitmap(Properties.Resources.SNES_alt1);
|
||||
console = "WII";
|
||||
}
|
||||
else if (wii.IsChecked == true)
|
||||
{
|
||||
bi.Frame = new Bitmap(Properties.Resources.Icon);
|
||||
console = "other";
|
||||
}
|
||||
else if (hb.IsChecked == true)
|
||||
{
|
||||
bi.Frame = new Bitmap(Properties.Resources.SNES_alt2);
|
||||
console = "WII";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
else if ((FindResource("mvm") as MainViewModel).GameConfiguration.Console == GameConsoles.N64)
|
||||
{
|
||||
if (ww.IsChecked == true)
|
||||
|
|
|
@ -524,16 +524,22 @@
|
|||
<None Include="Resources\NDS Alt1.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\NDS Alt2.png" />
|
||||
<None Include="Resources\N64 alt1.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\N64 alt1.png" />
|
||||
<None Include="Resources\bootLogoTex.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\SNES alt1.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\N64 alt2.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\bootLogoTex.png" />
|
||||
<None Include="Resources\NDS alt2.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\SNES alt2.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')" />
|
||||
|
|
Loading…
Reference in a new issue