n64/NDS Alt icons, bootlogo creator, bootimages for nes,snes,msx and tg16
104
UWUVCI AIO WPF/Classes/MenuIconImage - Kopieren.cs
Normal file
|
@ -0,0 +1,104 @@
|
|||
using System;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Drawing2D;
|
||||
|
||||
namespace UWUVCI_AIO_WPF.Classes
|
||||
{
|
||||
public class BootLogoImage : IDisposable
|
||||
{
|
||||
private bool disposed = false;
|
||||
|
||||
private Bitmap _frame;
|
||||
private Bitmap _titleScreen;
|
||||
|
||||
public Bitmap Frame
|
||||
{
|
||||
set
|
||||
{
|
||||
if (_frame != null)
|
||||
_frame.Dispose();
|
||||
_frame = value;
|
||||
}
|
||||
get { return _frame; }
|
||||
}
|
||||
public Bitmap TitleScreen
|
||||
{
|
||||
set
|
||||
{
|
||||
if (_titleScreen != null)
|
||||
_titleScreen.Dispose();
|
||||
_titleScreen = value;
|
||||
}
|
||||
get { return _titleScreen; }
|
||||
}
|
||||
|
||||
public BootLogoImage()
|
||||
{
|
||||
_frame = null;
|
||||
_titleScreen = null;
|
||||
}
|
||||
|
||||
~BootLogoImage()
|
||||
{
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Dispose(true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
if (!this.disposed)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
if (Frame != null)
|
||||
{
|
||||
Frame.Dispose();
|
||||
Frame = null;
|
||||
}
|
||||
if (TitleScreen != null)
|
||||
{
|
||||
TitleScreen.Dispose();
|
||||
TitleScreen = null;
|
||||
}
|
||||
}
|
||||
disposed = true;
|
||||
}
|
||||
}
|
||||
|
||||
public Bitmap Create(string text)
|
||||
{
|
||||
Bitmap img = new Bitmap(170, 42);
|
||||
Graphics g = Graphics.FromImage(img);
|
||||
g.PixelOffsetMode = PixelOffsetMode.Half;
|
||||
g.SmoothingMode = SmoothingMode.AntiAlias;
|
||||
g.CompositingMode = CompositingMode.SourceOver;
|
||||
g.CompositingQuality = CompositingQuality.HighQuality;
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
|
||||
//new Font("Trebuchet MS", 12, System.Drawing.FontStyle.Bold)
|
||||
|
||||
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);
|
||||
|
||||
|
||||
return img;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -56,7 +56,8 @@ namespace UWUVCI_AIO_WPF.Classes
|
|||
"ConvertToNKit.exe",
|
||||
"wglp.exe",
|
||||
"font.otf",
|
||||
"ChangeAspectRatio.exe"
|
||||
"ChangeAspectRatio.exe",
|
||||
"font2.ttf"
|
||||
};
|
||||
|
||||
public static bool DoesToolsFolderExist()
|
||||
|
|
|
@ -29,6 +29,7 @@ using NAudio.Wave;
|
|||
using System.Timers;
|
||||
using NAudio.Utils;
|
||||
using System.Runtime.InteropServices.WindowsRuntime;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
namespace UWUVCI_AIO_WPF
|
||||
{
|
||||
|
@ -2572,6 +2573,351 @@ namespace UWUVCI_AIO_WPF
|
|||
}
|
||||
|
||||
}
|
||||
public void getBootIMGSNES(string rom)
|
||||
{
|
||||
string linkbase = "https://raw.githubusercontent.com/Flumpster/UWUVCI-Images/master/";
|
||||
string repoid = "";
|
||||
string SystemType = "snes/";
|
||||
IMG_Message img = null;
|
||||
repoid = GetFakeSNESProdcode(rom);
|
||||
string[] ext = { "png" };
|
||||
List<string> repoids = new List<string>();
|
||||
if (CheckForInternetConnectionWOWarning())
|
||||
{
|
||||
repoids.Add(SystemType + repoid);
|
||||
foreach (var e in ext)
|
||||
{
|
||||
if (RemoteFileExists(linkbase + SystemType + repoid + $"/iconTex.{e}") == true)
|
||||
{
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + $"/iconTex.{e}", linkbase + SystemType + repoid + $"/bootTvTex.{e}", SystemType + repoid);
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog(); break;
|
||||
}
|
||||
}
|
||||
checkForAdditionalFiles(GameConsoles.SNES, repoids);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public void getBootIMGMSX(string rom)
|
||||
{
|
||||
string linkbase = "https://raw.githubusercontent.com/Flumpster/UWUVCI-Images/master/";
|
||||
string repoid = "";
|
||||
string SystemType = "msx/";
|
||||
IMG_Message img = null;
|
||||
repoid = GetFakeMSXTGProdcode(rom, true);
|
||||
string[] ext = { "png" };
|
||||
List<string> repoids = new List<string>();
|
||||
if (CheckForInternetConnectionWOWarning())
|
||||
{
|
||||
repoids.Add(SystemType + repoid);
|
||||
foreach (var e in ext)
|
||||
{
|
||||
if (RemoteFileExists(linkbase + SystemType + repoid + $"/iconTex.{e}") == true)
|
||||
{
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + $"/iconTex.{e}", linkbase + SystemType + repoid + $"/bootTvTex.{e}", SystemType + repoid);
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog(); break;
|
||||
}
|
||||
}
|
||||
checkForAdditionalFiles(GameConsoles.MSX, repoids);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public void getBootIMGTG(string rom)
|
||||
{
|
||||
string linkbase = "https://raw.githubusercontent.com/Flumpster/UWUVCI-Images/master/";
|
||||
string repoid = "";
|
||||
string SystemType = "tg16/";
|
||||
IMG_Message img = null;
|
||||
repoid = GetFakeMSXTGProdcode(rom, false);
|
||||
string[] ext = { "png" };
|
||||
List<string> repoids = new List<string>();
|
||||
if (CheckForInternetConnectionWOWarning())
|
||||
{
|
||||
repoids.Add(SystemType + repoid);
|
||||
foreach (var e in ext)
|
||||
{
|
||||
if (RemoteFileExists(linkbase + SystemType + repoid + $"/iconTex.{e}") == true)
|
||||
{
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + $"/iconTex.{e}", linkbase + SystemType + repoid + $"/bootTvTex.{e}", SystemType + repoid);
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog(); break;
|
||||
}
|
||||
}
|
||||
checkForAdditionalFiles(GameConsoles.TG16, repoids);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
private string GetFakeMSXTGProdcode(string v, bool msx)
|
||||
{
|
||||
Regex rgx = new Regex("[^a-zA-Z0-9 -]");
|
||||
Regex rgx2 = new Regex("[^0-9]");
|
||||
byte[] procode = new byte[0x210];
|
||||
using (var md5 = MD5.Create())
|
||||
{
|
||||
using (var fs = new FileStream(v,
|
||||
FileMode.Open,
|
||||
FileAccess.ReadWrite))
|
||||
{
|
||||
|
||||
fs.Read(procode, 0, 0x210);
|
||||
|
||||
fs.Close();
|
||||
}
|
||||
string hash = GetMd5Hash(md5, procode);
|
||||
//var number = /*hash.GetHashCode();*/ gamename.GetHashCode();
|
||||
if (msx) Console.Write("MSX");
|
||||
else Console.Write("TG16");
|
||||
Console.WriteLine(" PRODCODE:");
|
||||
Console.WriteLine("File Name: " + new FileInfo(v).Name);
|
||||
Console.WriteLine("MD5 of Code Snippet: " + hash);
|
||||
string hashonlynumbers = rgx2.Replace(hash, "");
|
||||
do
|
||||
{
|
||||
if (hashonlynumbers.Length < 10)
|
||||
{
|
||||
hashonlynumbers += 0;
|
||||
}
|
||||
} while (hashonlynumbers.Length < 10);
|
||||
|
||||
string first10 = new string(new char[] { hashonlynumbers[0], hashonlynumbers[1], hashonlynumbers[2], hashonlynumbers[3], hashonlynumbers[4], hashonlynumbers[5], hashonlynumbers[6], hashonlynumbers[7], hashonlynumbers[8] });
|
||||
string prodcode = getCodeOfNumbers(Convert.ToInt32(first10));
|
||||
if (msx) prodcode += "SX";
|
||||
else prodcode += "TG";
|
||||
//Console.WriteLine("NumberHash of GameName: "+ number);
|
||||
Console.WriteLine("Fake ProdCode: " + prodcode);
|
||||
Console.WriteLine("---------------------------------------------------");
|
||||
return prodcode;
|
||||
}
|
||||
}
|
||||
private string GetFakeSNESProdcode(string path)
|
||||
{
|
||||
Regex rgx = new Regex("[^a-zA-Z0-9 -]");
|
||||
Regex rgx2 = new Regex("[^0-9]");
|
||||
using (var md5 = MD5.Create())
|
||||
{
|
||||
var name = new byte[] { };
|
||||
bool skip = false;
|
||||
using (var fs = new FileStream(path,
|
||||
FileMode.Open,
|
||||
FileAccess.ReadWrite))
|
||||
{
|
||||
byte[] procode = new byte[4];
|
||||
fs.Seek(0x7FB2, SeekOrigin.Begin);
|
||||
fs.Read(procode, 0, 4);
|
||||
|
||||
string repoid = ByteArrayToString(procode);
|
||||
|
||||
|
||||
repoid = rgx.Replace(repoid, "");
|
||||
DOSTUFF:
|
||||
if (repoid.Length < 4 && !skip)
|
||||
{
|
||||
fs.Seek(0xFFB2, SeekOrigin.Begin);
|
||||
fs.Read(procode, 0, 4);
|
||||
|
||||
repoid = rgx.Replace(ByteArrayToString(procode), "");
|
||||
if (repoid.Length < 4)
|
||||
{
|
||||
repoid = "Unknown";
|
||||
skip = true;
|
||||
goto DOSTUFF;
|
||||
}
|
||||
|
||||
fs.Seek(0xFFC0, SeekOrigin.Begin);
|
||||
procode = new byte[21];
|
||||
fs.Read(procode, 0, 21);
|
||||
name = procode;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
fs.Seek(0x7FC0, SeekOrigin.Begin);
|
||||
procode = new byte[21];
|
||||
fs.Read(procode, 0, 21);
|
||||
name = procode;
|
||||
}
|
||||
}
|
||||
string gamenameo = ByteArrayToString(name);
|
||||
string gamename = rgx.Replace(gamenameo, "");
|
||||
string hash = GetMd5Hash(md5, gamename);
|
||||
//var number = /*hash.GetHashCode();*/ gamename.GetHashCode();
|
||||
Console.WriteLine("SNES PRODCODE:");
|
||||
Console.WriteLine("GameName: " + gamename);
|
||||
Console.WriteLine("MD5 of Name: " + hash);
|
||||
string hashonlynumbers = rgx2.Replace(hash, "");
|
||||
do
|
||||
{
|
||||
if (hashonlynumbers.Length < 10)
|
||||
{
|
||||
hashonlynumbers += 0;
|
||||
}
|
||||
} while (hashonlynumbers.Length < 10);
|
||||
|
||||
string first10 = new string(new char[] { hashonlynumbers[0], hashonlynumbers[1], hashonlynumbers[2], hashonlynumbers[3], hashonlynumbers[4], hashonlynumbers[5], hashonlynumbers[6], hashonlynumbers[7], hashonlynumbers[8] });
|
||||
|
||||
//Console.WriteLine("NumberHash of GameName: "+ number);
|
||||
Console.WriteLine("Fake ProdCode: " + getCodeOfNumbers(Convert.ToInt32(first10)));
|
||||
Console.WriteLine("---------------------------------------------------");
|
||||
return getCodeOfNumbers(Convert.ToInt32(first10));
|
||||
// Console.WriteLine(md5.ComputeHash(name));
|
||||
// Console.WriteLine("NumberCode: "+hash.GetHashCode());
|
||||
|
||||
}
|
||||
}
|
||||
public void getBootIMGNES(string rom)
|
||||
{
|
||||
string linkbase = "https://raw.githubusercontent.com/Flumpster/UWUVCI-Images/master/";
|
||||
string repoid = "";
|
||||
string SystemType = "nes/";
|
||||
IMG_Message img = null;
|
||||
repoid = GetFakeNESProdcode(rom);
|
||||
string[] ext = { "png" };
|
||||
List<string> repoids = new List<string>();
|
||||
if (CheckForInternetConnectionWOWarning())
|
||||
{
|
||||
repoids.Add(SystemType + repoid);
|
||||
foreach (var e in ext)
|
||||
{
|
||||
if (RemoteFileExists(linkbase + SystemType + repoid + $"/iconTex.{e}") == true)
|
||||
{
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + $"/iconTex.{e}", linkbase + SystemType + repoid + $"/bootTvTex.{e}", SystemType + repoid);
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog(); break;
|
||||
}
|
||||
}
|
||||
checkForAdditionalFiles(GameConsoles.NES, repoids);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
static string GetMd5Hash(MD5 md5Hash, byte[] input)
|
||||
{
|
||||
// Convert the input string to a byte array and compute the hash.
|
||||
byte[] data = md5Hash.ComputeHash(input);
|
||||
|
||||
// Create a new Stringbuilder to collect the bytes
|
||||
// and create a string.
|
||||
StringBuilder sBuilder = new StringBuilder();
|
||||
|
||||
// Loop through each byte of the hashed data
|
||||
// and format each one as a hexadecimal string.
|
||||
for (int i = 0; i < data.Length; i++)
|
||||
{
|
||||
sBuilder.Append(data[i].ToString("x2"));
|
||||
}
|
||||
|
||||
// Return the hexadecimal string.
|
||||
return sBuilder.ToString();
|
||||
}
|
||||
|
||||
static string GetMd5Hash(MD5 md5Hash, string input)
|
||||
{
|
||||
|
||||
// Convert the input string to a byte array and compute the hash.
|
||||
byte[] data = md5Hash.ComputeHash(Encoding.UTF8.GetBytes(input));
|
||||
|
||||
// Create a new Stringbuilder to collect the bytes
|
||||
// and create a string.
|
||||
StringBuilder sBuilder = new StringBuilder();
|
||||
|
||||
// Loop through each byte of the hashed data
|
||||
// and format each one as a hexadecimal string.
|
||||
for (int i = 0; i < data.Length; i++)
|
||||
{
|
||||
sBuilder.Append(data[i].ToString("x2"));
|
||||
}
|
||||
|
||||
// Return the hexadecimal string.
|
||||
return sBuilder.ToString();
|
||||
}
|
||||
private string GetFakeNESProdcode(string path)
|
||||
{
|
||||
Regex rgx = new Regex("[^a-zA-Z0-9 -]");
|
||||
Regex rgx2 = new Regex("[^0-9]");
|
||||
byte[] procode = new byte[0xB0];
|
||||
using (var md5 = MD5.Create())
|
||||
{
|
||||
using (var fs = new FileStream(path,
|
||||
FileMode.Open,
|
||||
FileAccess.ReadWrite))
|
||||
{
|
||||
|
||||
fs.Seek(0x8000, SeekOrigin.Begin);
|
||||
fs.Read(procode, 0, 0xB0);
|
||||
|
||||
fs.Close();
|
||||
}
|
||||
string hash = GetMd5Hash(md5, procode);
|
||||
//var number = /*hash.GetHashCode();*/ gamename.GetHashCode();
|
||||
Console.WriteLine("NES PRODCODE:");
|
||||
Console.WriteLine("File Name: " + new FileInfo(path).Name);
|
||||
Console.WriteLine("MD5 of Code Snippet: " + hash);
|
||||
string hashonlynumbers = rgx2.Replace(hash, "");
|
||||
do
|
||||
{
|
||||
if (hashonlynumbers.Length < 10)
|
||||
{
|
||||
hashonlynumbers += 0;
|
||||
}
|
||||
} while (hashonlynumbers.Length < 10);
|
||||
|
||||
string first10 = new string(new char[] { hashonlynumbers[0], hashonlynumbers[1], hashonlynumbers[2], hashonlynumbers[3], hashonlynumbers[4], hashonlynumbers[5], hashonlynumbers[6], hashonlynumbers[7], hashonlynumbers[8] });
|
||||
|
||||
//Console.WriteLine("NumberHash of GameName: "+ number);
|
||||
Console.WriteLine("Fake ProdCode: " + getCodeOfNumbers(Convert.ToInt32(first10)));
|
||||
Console.WriteLine("---------------------------------------------------");
|
||||
return getCodeOfNumbers(Convert.ToInt32(first10));
|
||||
}
|
||||
}
|
||||
static string getCodeOfNumbers(int number)
|
||||
{
|
||||
string ts = number.ToString();
|
||||
int n1 = Convert.ToInt32(ts[0] + ts[1]);
|
||||
int n2 = Convert.ToInt32(ts[2] + ts[3]);
|
||||
int n3 = Convert.ToInt32(ts[4] + ts[5]);
|
||||
int n4 = Convert.ToInt32(ts[6] + ts[7]);
|
||||
char[] letters = new char[] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' };
|
||||
while (n1 > 23)
|
||||
{
|
||||
n1 -= 23;
|
||||
}
|
||||
while (n2 > 23)
|
||||
{
|
||||
n2 -= 23;
|
||||
}
|
||||
while (n3 > 23)
|
||||
{
|
||||
n3 -= 23;
|
||||
}
|
||||
while (n4 > 23)
|
||||
{
|
||||
n4 -= 23;
|
||||
}
|
||||
var toret = new char[] { letters[n1], letters[n2], letters[n3], letters[n4] };
|
||||
return new string(toret).ToUpper();
|
||||
}
|
||||
public void getBootIMGNDS(string rom)
|
||||
{
|
||||
string linkbase = "https://raw.githubusercontent.com/Flumpster/UWUVCI-Images/master/";
|
||||
|
@ -3106,6 +3452,9 @@ namespace UWUVCI_AIO_WPF
|
|||
switch (console)
|
||||
{
|
||||
case GameConsoles.NDS:
|
||||
case GameConsoles.NES:
|
||||
case GameConsoles.SNES:
|
||||
case GameConsoles.MSX:
|
||||
(Thing as OtherConfigs).sound.Text = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", $"bootSound.{exten}");
|
||||
break;
|
||||
case GameConsoles.GBA:
|
||||
|
@ -3124,6 +3473,9 @@ namespace UWUVCI_AIO_WPF
|
|||
(Thing as WiiConfig).sound.Text = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", $"bootSound.{exten}");
|
||||
}
|
||||
break;
|
||||
case GameConsoles.TG16:
|
||||
(Thing as TurboGrafX).sound.Text = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", $"bootSound.{exten}");
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
74
UWUVCI AIO WPF/Properties/Resources.Designer.cs
generated
|
@ -63,19 +63,9 @@ namespace UWUVCI_AIO_WPF.Properties {
|
|||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Gameboy1 {
|
||||
internal static System.Drawing.Bitmap bootLogoTex {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Gameboy1", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Gameboy2 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Gameboy2", resourceCulture);
|
||||
object obj = ResourceManager.GetObject("bootLogoTex", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
@ -140,26 +130,6 @@ namespace UWUVCI_AIO_WPF.Properties {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap homebrew {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("homebrew", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap homebrew2 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("homebrew2", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
@ -210,6 +180,26 @@ namespace UWUVCI_AIO_WPF.Properties {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap N64_alt1 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("N64_alt1", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap N64_alt2 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("N64_alt2", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
@ -220,6 +210,26 @@ namespace UWUVCI_AIO_WPF.Properties {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap NDS_Alt1 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("NDS_Alt1", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap NDS_Alt2 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("NDS_Alt2", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
|
|
@ -118,11 +118,8 @@
|
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="Gameboy1" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Gameboy1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Gameboy2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Gameboy2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="bootLogoTex" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\bootLogoTex.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="GBA" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\GBA.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
|
@ -142,12 +139,6 @@
|
|||
<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>
|
||||
<data name="homebrew2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\homebrew2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="homebrew3" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\homebrew3.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
@ -163,9 +154,21 @@
|
|||
<data name="N64" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\N64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="N64_alt1" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\N64 alt1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="N64_alt2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\N64 alt2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="NDS" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\NDS.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="NDS_Alt1" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\NDS Alt1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="NDS_Alt2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\NDS Alt2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="NES" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\NES.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 4.4 KiB |
BIN
UWUVCI AIO WPF/Resources/N64 alt1.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
UWUVCI AIO WPF/Resources/N64 alt2.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
UWUVCI AIO WPF/Resources/NDS Alt1.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
UWUVCI AIO WPF/Resources/NDS Alt2.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
UWUVCI AIO WPF/Resources/bootLogoTex.png
Normal file
After Width: | Height: | Size: 854 B |
|
@ -17,7 +17,7 @@
|
|||
<TextBox materialDesign:HintAssist.Hint="LOGO IMAGE (OPTIONAL)" ToolTip="Also known as bootLogoTex" Name="log" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,317,157,149" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Cursor="Help" Text="{Binding GameConfiguration.TGALog.ImgPath}" IsTabStop="False"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,413,157,52" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" Text="{Binding GameConfiguration.GameName}" Name="gn" KeyUp="gn_KeyUp" MaxLength="250" IsTabStop="False"/>
|
||||
<Button Content="Inject" HorizontalAlignment="Left" Margin="506,478,0,0" VerticalAlignment="Top" Width="127" IsEnabled="{Binding CanInject}" Click="InjectGame" IsTabStop="False"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,327,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,327,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,238,0,0" VerticalAlignment="Top" Width="127" Click="Set_TvTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,283,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,193,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex" IsTabStop="False"/>
|
||||
|
|
|
@ -27,6 +27,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
/// </summary>
|
||||
public partial class N64Config : Page
|
||||
{
|
||||
|
||||
MainViewModel mvm;
|
||||
public N64Config()
|
||||
{
|
||||
|
@ -318,7 +319,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
|
||||
private void Set_LogoTex(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (!Settings.Default.dont)
|
||||
/*if (!Settings.Default.dont)
|
||||
{
|
||||
mvm.ImageWarning();
|
||||
}
|
||||
|
@ -338,8 +339,25 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
log.Text = "";
|
||||
logIMG.Visibility = Visibility.Hidden;
|
||||
}
|
||||
}*/
|
||||
string path = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "createdIMG", "bootLogoTex.png");
|
||||
LogoCreator ic = new LogoCreator();
|
||||
try
|
||||
{
|
||||
ic.Owner = (FindResource("mvm") as MainViewModel).mw;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
}
|
||||
ic.ShowDialog();
|
||||
if (File.Exists(path) && mvm.CheckTime(new FileInfo(path).CreationTime))
|
||||
{
|
||||
mvm.GameConfiguration.TGALog.ImgPath = path;
|
||||
mvm.GameConfiguration.TGALog.extension = new FileInfo(path).Extension;
|
||||
this.log.Text = path;
|
||||
logIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -410,7 +428,32 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
}
|
||||
ics.ShowDialog();
|
||||
}
|
||||
|
||||
public void clearImages(int i)
|
||||
{
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
icoIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGAIco = new Classes.PNGTGA();
|
||||
ic.Text = null;
|
||||
break;
|
||||
case 1:
|
||||
tvIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGATv = new Classes.PNGTGA();
|
||||
tv.Text = null;
|
||||
break;
|
||||
case 2:
|
||||
drcIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGADrc = new Classes.PNGTGA();
|
||||
drc.Text = null;
|
||||
break;
|
||||
case 3:
|
||||
logIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGALog = new Classes.PNGTGA();
|
||||
log.Text = null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
private void tvIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
TDRSHOW t = new TDRSHOW(tv.Text, false);
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<TextBox materialDesign:HintAssist.Hint="LOGO IMAGE (OPTIONAL)" ToolTip="Also known as bootLogoTex" Name="log" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,317,157,149" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Cursor="Help" Text="{Binding GameConfiguration.TGALog.ImgPath}" IsTabStop="False"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,413,157,52" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" Text="{Binding GameConfiguration.GameName}" Name="gn" KeyUp="gn_KeyUp" MaxLength="250" IsTabStop="False"/>
|
||||
<Button Content="Inject" HorizontalAlignment="Left" Margin="506,478,0,0" VerticalAlignment="Top" Width="127" IsEnabled="{Binding CanInject}" Click="InjectGame" IsTabStop="False"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,327,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,327,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,238,0,0" VerticalAlignment="Top" Width="127" Click="Set_TvTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,283,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,193,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex" IsTabStop="False"/>
|
||||
|
|
|
@ -35,6 +35,33 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
Injection.ToolTip = "Changing the extension of a ROM may result in a faulty inject.\nWe will not give any support in such cases";
|
||||
|
||||
}
|
||||
public void clearImages(int i)
|
||||
{
|
||||
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
icoIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGAIco = new Classes.PNGTGA();
|
||||
ic.Text = null;
|
||||
break;
|
||||
case 1:
|
||||
tvIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGATv = new Classes.PNGTGA();
|
||||
tv.Text = null;
|
||||
break;
|
||||
case 2:
|
||||
drcIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGADrc = new Classes.PNGTGA();
|
||||
drc.Text = null;
|
||||
break;
|
||||
case 3:
|
||||
logIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGALog = new Classes.PNGTGA();
|
||||
log.Text = null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
private void SoundImg_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
mvm.PlaySound();
|
||||
|
@ -319,28 +346,45 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
|
||||
private void Set_LogoTex(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (!Settings.Default.dont)
|
||||
/* if (!Settings.Default.dont)
|
||||
{
|
||||
mvm.ImageWarning();
|
||||
}
|
||||
string path = mvm.GetFilePath(false, false);
|
||||
if (!CheckIfNull(path))
|
||||
{
|
||||
mvm.GameConfiguration.TGALog.ImgPath = path;
|
||||
mvm.GameConfiguration.TGALog.extension = new FileInfo(path).Extension;
|
||||
log.Text = path;
|
||||
logIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (path == "")
|
||||
{
|
||||
mvm.GameConfiguration.TGALog.ImgPath = null;
|
||||
log.Text = "";
|
||||
logIMG.Visibility = Visibility.Hidden;
|
||||
}
|
||||
}*/
|
||||
string path = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "createdIMG", "bootLogoTex.png");
|
||||
LogoCreator ic = new LogoCreator();
|
||||
try
|
||||
{
|
||||
mvm.ImageWarning();
|
||||
ic.Owner = (FindResource("mvm") as MainViewModel).mw;
|
||||
}
|
||||
string path = mvm.GetFilePath(false, false);
|
||||
if (!CheckIfNull(path))
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
}
|
||||
ic.ShowDialog();
|
||||
if (File.Exists(path) && mvm.CheckTime(new FileInfo(path).CreationTime))
|
||||
{
|
||||
mvm.GameConfiguration.TGALog.ImgPath = path;
|
||||
mvm.GameConfiguration.TGALog.extension = new FileInfo(path).Extension;
|
||||
log.Text = path;
|
||||
this.log.Text = path;
|
||||
logIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (path == "")
|
||||
{
|
||||
mvm.GameConfiguration.TGALog.ImgPath = null;
|
||||
log.Text = "";
|
||||
logIMG.Visibility = Visibility.Hidden;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public void getInfoFromConfig()
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<TextBox materialDesign:HintAssist.Hint="LOGO IMAGE (OPTIONAL)" ToolTip="Also known as bootLogoTex" Name="log" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,317,157,149" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Cursor="Help" Text="{Binding GameConfiguration.TGALog.ImgPath}" IsTabStop="False"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,413,157,52" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" Text="{Binding GameConfiguration.GameName}" Name="gn" KeyUp="gn_KeyUp" MaxLength="250" IsTabStop="False"/>
|
||||
<Button Content="Inject" HorizontalAlignment="Left" Margin="506,478,0,0" VerticalAlignment="Top" Width="127" IsEnabled="{Binding CanInject}" Click="InjectGame" IsTabStop="False"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,327,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,327,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,238,0,0" VerticalAlignment="Top" Width="127" Click="Set_TvTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,283,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,193,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex" IsTabStop="False"/>
|
||||
|
|
|
@ -37,6 +37,33 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
mvm.test = GameConsoles.GCN;
|
||||
mvm.Index = 1;
|
||||
}
|
||||
public void clearImages(int i)
|
||||
{
|
||||
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
icoIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGAIco = new Classes.PNGTGA();
|
||||
ic.Text = null;
|
||||
break;
|
||||
case 1:
|
||||
tvIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGATv = new Classes.PNGTGA();
|
||||
tv.Text = null;
|
||||
break;
|
||||
case 2:
|
||||
drcIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGADrc = new Classes.PNGTGA();
|
||||
drc.Text = null;
|
||||
break;
|
||||
case 3:
|
||||
logIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGALog = new Classes.PNGTGA();
|
||||
log.Text = null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
private void SoundImg_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
mvm.PlaySound();
|
||||
|
@ -79,7 +106,11 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
public void imgpath(string icon, string tv)
|
||||
{
|
||||
ic.Text = icon;
|
||||
this.tv.Text = tv;
|
||||
}
|
||||
private void Set_Rom_Path(object sender, RoutedEventArgs e)
|
||||
{
|
||||
string path = string.Empty;
|
||||
|
@ -335,29 +366,46 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
|
||||
private void Set_LogoTex(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (!Settings.Default.dont)
|
||||
/* if (!Settings.Default.dont)
|
||||
{
|
||||
mvm.ImageWarning();
|
||||
}
|
||||
string path = mvm.GetFilePath(false, false);
|
||||
if (!CheckIfNull(path))
|
||||
{
|
||||
mvm.GameConfiguration.TGALog.ImgPath = path;
|
||||
mvm.GameConfiguration.TGALog.extension = new FileInfo(path).Extension;
|
||||
log.Text = path;
|
||||
logIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (path == "")
|
||||
{
|
||||
mvm.GameConfiguration.TGALog.ImgPath = null;
|
||||
log.Text = "";
|
||||
logIMG.Visibility = Visibility.Hidden;
|
||||
}
|
||||
}*/
|
||||
|
||||
string path = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "createdIMG", "bootLogoTex.png");
|
||||
LogoCreator ic = new LogoCreator();
|
||||
try
|
||||
{
|
||||
mvm.ImageWarning();
|
||||
ic.Owner = (FindResource("mvm") as MainViewModel).mw;
|
||||
}
|
||||
string path = mvm.GetFilePath(false, false);
|
||||
if (!CheckIfNull(path))
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
}
|
||||
ic.ShowDialog();
|
||||
if (File.Exists(path) && mvm.CheckTime(new FileInfo(path).CreationTime))
|
||||
{
|
||||
mvm.GameConfiguration.TGALog.ImgPath = path;
|
||||
mvm.GameConfiguration.TGALog.extension = new FileInfo(path).Extension;
|
||||
log.Text = path;
|
||||
this.log.Text = path;
|
||||
logIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (path == "")
|
||||
{
|
||||
mvm.GameConfiguration.TGALog.ImgPath = null;
|
||||
log.Text = "";
|
||||
logIMG.Visibility = Visibility.Hidden;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public void getInfoFromConfig()
|
||||
{
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<TextBox materialDesign:HintAssist.Hint="LOGO IMAGE (OPTIONAL)" ToolTip="Also known as bootLogoTex" Name="log" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,317,157,149" IsTabStop="False" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Cursor="Help" Text="{Binding GameConfiguration.TGALog.ImgPath}"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,413,157,52" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" IsTabStop="False" CaretBrush="#FF21C3F3" FontSize="18" Text="{Binding GameConfiguration.GameName}" Name="gn" KeyUp="gn_KeyUp" MaxLength="250"/>
|
||||
<Button Content="Inject" HorizontalAlignment="Left" Margin="506,478,0,0" VerticalAlignment="Top" Width="127" IsEnabled="{Binding CanInject}" Click="InjectGame" IsTabStop="False"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,327,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,327,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,238,0,0" VerticalAlignment="Top" Width="127" Click="Set_TvTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,283,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,193,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex" IsTabStop="False"/>
|
||||
|
|
|
@ -35,6 +35,33 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
Injection.ToolTip = "Changing the extension of a ROM may result in a faulty inject.\nWe will not give any support in such cases";
|
||||
|
||||
}
|
||||
public void clearImages(int i)
|
||||
{
|
||||
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
icoIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGAIco = new Classes.PNGTGA();
|
||||
ic.Text = null;
|
||||
break;
|
||||
case 1:
|
||||
tvIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGATv = new Classes.PNGTGA();
|
||||
tv.Text = null;
|
||||
break;
|
||||
case 2:
|
||||
drcIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGADrc = new Classes.PNGTGA();
|
||||
drc.Text = null;
|
||||
break;
|
||||
case 3:
|
||||
logIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGALog = new Classes.PNGTGA();
|
||||
log.Text = null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
public TurboGrafX(GameConfig c)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
@ -87,10 +114,14 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
{
|
||||
mvm.RomPath = path;
|
||||
mvm.RomSet = true;
|
||||
if (!cd)
|
||||
{
|
||||
mvm.getBootIMGTG(mvm.RomPath);
|
||||
}
|
||||
if (mvm.BaseDownloaded)
|
||||
{
|
||||
mvm.CanInject = true;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -287,10 +318,14 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
icoIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
}
|
||||
|
||||
public void imgpath(string icon, string tv)
|
||||
{
|
||||
ic.Text = icon;
|
||||
this.tv.Text = tv;
|
||||
}
|
||||
private void Set_LogoTex(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (!Settings.Default.dont)
|
||||
/*if (!Settings.Default.dont)
|
||||
{
|
||||
mvm.ImageWarning();
|
||||
}
|
||||
|
@ -310,8 +345,25 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
log.Text = "";
|
||||
logIMG.Visibility = Visibility.Hidden;
|
||||
}
|
||||
}*/
|
||||
string path = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "createdIMG", "bootLogoTex.png");
|
||||
LogoCreator ic = new LogoCreator();
|
||||
try
|
||||
{
|
||||
ic.Owner = (FindResource("mvm") as MainViewModel).mw;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
}
|
||||
ic.ShowDialog();
|
||||
if (File.Exists(path) && mvm.CheckTime(new FileInfo(path).CreationTime))
|
||||
{
|
||||
mvm.GameConfiguration.TGALog.ImgPath = path;
|
||||
mvm.GameConfiguration.TGALog.extension = new FileInfo(path).Extension;
|
||||
this.log.Text = path;
|
||||
logIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
|
||||
}
|
||||
public void getInfoFromConfig()
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<TextBox materialDesign:HintAssist.Hint="LOGO IMAGE (OPTIONAL)" ToolTip="Also known as bootLogoTex" Name="log" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,317,157,149" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Cursor="Help" Text="{Binding GameConfiguration.TGALog.ImgPath}" IsTabStop="False"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,413,157,52" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" Text="{Binding GameConfiguration.GameName}" Name="gn" KeyUp="gn_KeyUp" MaxLength="250" IsTabStop="False"/>
|
||||
<Button Content="Inject" HorizontalAlignment="Left" Margin="506,478,0,0" VerticalAlignment="Top" Width="127" IsEnabled="{Binding CanInject}" Click="InjectGame" IsTabStop="False"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,327,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,327,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,238,0,0" VerticalAlignment="Top" Width="127" Click="Set_TvTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,283,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,193,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex" IsTabStop="False"/>
|
||||
|
|
|
@ -39,6 +39,33 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
snesnes.Visibility = Visibility.Visible;
|
||||
}
|
||||
}
|
||||
public void clearImages(int i)
|
||||
{
|
||||
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
icoIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGAIco = new Classes.PNGTGA();
|
||||
ic.Text = null;
|
||||
break;
|
||||
case 1:
|
||||
tvIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGATv = new Classes.PNGTGA();
|
||||
tv.Text = null;
|
||||
break;
|
||||
case 2:
|
||||
drcIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGADrc = new Classes.PNGTGA();
|
||||
drc.Text = null;
|
||||
break;
|
||||
case 3:
|
||||
logIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGALog = new Classes.PNGTGA();
|
||||
log.Text = null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
public OtherConfigs(GameConfig c)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
@ -75,8 +102,19 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
if(mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.NDS)
|
||||
{
|
||||
mvm.getBootIMGNDS(mvm.RomPath);
|
||||
}else if(mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.NES)
|
||||
{
|
||||
mvm.getBootIMGNES(mvm.RomPath);
|
||||
}
|
||||
}
|
||||
else if (mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.SNES)
|
||||
{
|
||||
mvm.getBootIMGSNES(mvm.RomPath);
|
||||
}
|
||||
else if (mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.MSX)
|
||||
{
|
||||
mvm.getBootIMGMSX(mvm.RomPath);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
private void SoundImg_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
|
@ -276,28 +314,45 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
|
||||
private void Set_LogoTex(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (!Settings.Default.dont)
|
||||
/* if (!Settings.Default.dont)
|
||||
{
|
||||
mvm.ImageWarning();
|
||||
}
|
||||
string path = mvm.GetFilePath(false, false);
|
||||
if (!CheckIfNull(path))
|
||||
{
|
||||
mvm.GameConfiguration.TGALog.ImgPath = path;
|
||||
mvm.GameConfiguration.TGALog.extension = new FileInfo(path).Extension;
|
||||
log.Text = path;
|
||||
logIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (path == "")
|
||||
{
|
||||
mvm.GameConfiguration.TGALog.ImgPath = null;
|
||||
log.Text = "";
|
||||
logIMG.Visibility = Visibility.Hidden;
|
||||
}
|
||||
}*/
|
||||
string path = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "createdIMG", "bootLogoTex.png");
|
||||
LogoCreator ic = new LogoCreator();
|
||||
try
|
||||
{
|
||||
mvm.ImageWarning();
|
||||
ic.Owner = (FindResource("mvm") as MainViewModel).mw;
|
||||
}
|
||||
string path = mvm.GetFilePath(false, false);
|
||||
if (!CheckIfNull(path))
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
}
|
||||
ic.ShowDialog();
|
||||
if (File.Exists(path) && mvm.CheckTime(new FileInfo(path).CreationTime))
|
||||
{
|
||||
mvm.GameConfiguration.TGALog.ImgPath = path;
|
||||
mvm.GameConfiguration.TGALog.extension = new FileInfo(path).Extension;
|
||||
log.Text = path;
|
||||
this.log.Text = path;
|
||||
logIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (path == "")
|
||||
{
|
||||
mvm.GameConfiguration.TGALog.ImgPath = null;
|
||||
log.Text = "";
|
||||
logIMG.Visibility = Visibility.Hidden;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public void getInfoFromConfig()
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<TextBox materialDesign:HintAssist.Hint="LOGO IMAGE (OPTIONAL)" ToolTip="Also known as bootLogoTex" Name="log" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,317,157,149" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Cursor="Help" Text="{Binding GameConfiguration.TGALog.ImgPath}" IsTabStop="False"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,413,157,52" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" Text="{Binding GameConfiguration.GameName}" Name="gn" KeyUp="gn_KeyUp" MaxLength="250" IsTabStop="False"/>
|
||||
<Button Content="Inject" HorizontalAlignment="Left" Margin="506,478,0,0" VerticalAlignment="Top" Width="127" IsEnabled="{Binding CanInject}" Click="InjectGame" Focusable="False" IsTabStop="False"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,327,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,327,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,238,0,0" VerticalAlignment="Top" Width="127" Click="Set_TvTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,283,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex" IsTabStop="False"/>
|
||||
<Button Content="Create File" HorizontalAlignment="Left" Margin="506,193,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex" IsTabStop="False"/>
|
||||
|
|
|
@ -27,6 +27,38 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
{
|
||||
MainViewModel mvm;
|
||||
bool dont = true;
|
||||
public void clearImages(int i)
|
||||
{
|
||||
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
icoIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGAIco = new Classes.PNGTGA();
|
||||
ic.Text = null;
|
||||
break;
|
||||
case 1:
|
||||
tvIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGATv = new Classes.PNGTGA();
|
||||
tv.Text = null;
|
||||
break;
|
||||
case 2:
|
||||
drcIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGADrc = new Classes.PNGTGA();
|
||||
drc.Text = null;
|
||||
break;
|
||||
case 3:
|
||||
logIMG.Visibility = Visibility.Hidden;
|
||||
mvm.GameConfiguration.TGALog = new Classes.PNGTGA();
|
||||
log.Text = null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
public void imgpath(string icon, string tv)
|
||||
{
|
||||
ic.Text = icon;
|
||||
this.tv.Text = tv;
|
||||
}
|
||||
public WiiConfig()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
@ -390,7 +422,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
|
||||
private void Set_LogoTex(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (!Settings.Default.dont)
|
||||
/*if (!Settings.Default.dont)
|
||||
{
|
||||
mvm.ImageWarning();
|
||||
}
|
||||
|
@ -410,8 +442,25 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
log.Text = "";
|
||||
logIMG.Visibility = Visibility.Hidden;
|
||||
}
|
||||
}*/
|
||||
string path = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "createdIMG", "bootLogoTex.png");
|
||||
LogoCreator ic = new LogoCreator();
|
||||
try
|
||||
{
|
||||
ic.Owner = (FindResource("mvm") as MainViewModel).mw;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
}
|
||||
ic.ShowDialog();
|
||||
if (File.Exists(path) && mvm.CheckTime(new FileInfo(path).CreationTime))
|
||||
{
|
||||
mvm.GameConfiguration.TGALog.ImgPath = path;
|
||||
mvm.GameConfiguration.TGALog.extension = new FileInfo(path).Extension;
|
||||
this.log.Text = path;
|
||||
logIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
|
||||
}
|
||||
public void getInfoFromConfig()
|
||||
|
|
|
@ -122,7 +122,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames
|
|||
|
||||
private void Button_Click_11(object sender, RoutedEventArgs e)
|
||||
{
|
||||
/*IconCreator ic = new IconCreator("WII") ;
|
||||
LogoCreator ic = new LogoCreator() ;
|
||||
try
|
||||
{
|
||||
ic.Owner = (FindResource("mvm") as MainViewModel).mw;
|
||||
|
@ -131,12 +131,8 @@ namespace UWUVCI_AIO_WPF.UI.Frames
|
|||
{
|
||||
|
||||
}
|
||||
ic.ShowDialog();*/
|
||||
var listitem = (FindResource("mvm") as MainViewModel).mw.listCONS.Items;
|
||||
foreach(var item in listitem)
|
||||
{
|
||||
Console.WriteLine((item as System.Windows.Controls.ListViewItem).Name);
|
||||
}
|
||||
ic.ShowDialog();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
</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"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
|
|
|
@ -114,5 +114,38 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
(FindResource("mvm") as MainViewModel).mw.Topmost = false;
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MainViewModel mvm = FindResource("mvm") as MainViewModel;
|
||||
switch (mvm.GameConfiguration.Console)
|
||||
{
|
||||
case GameBaseClassLibrary.GameConsoles.NDS:
|
||||
case GameBaseClassLibrary.GameConsoles.NES:
|
||||
case GameBaseClassLibrary.GameConsoles.SNES:
|
||||
case GameBaseClassLibrary.GameConsoles.MSX:
|
||||
(mvm.Thing as OtherConfigs).clearImages(3);
|
||||
break;
|
||||
case GameBaseClassLibrary.GameConsoles.GBA:
|
||||
(mvm.Thing as GBA).clearImages(3);
|
||||
break;
|
||||
case GameBaseClassLibrary.GameConsoles.WII:
|
||||
if(mvm.test == GameBaseClassLibrary.GameConsoles.GCN)
|
||||
{
|
||||
(mvm.Thing as GCConfig).clearImages(3);
|
||||
}
|
||||
else
|
||||
{
|
||||
(mvm.Thing as WiiConfig).clearImages(3);
|
||||
}
|
||||
break;
|
||||
case GameBaseClassLibrary.GameConsoles.N64:
|
||||
(mvm.Thing as N64Config).clearImages(3);
|
||||
break;
|
||||
case GameBaseClassLibrary.GameConsoles.TG16:
|
||||
(mvm.Thing as TurboGrafX).clearImages(3);
|
||||
break;
|
||||
}
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,15 +6,16 @@
|
|||
xmlns:local="clr-namespace:UWUVCI_AIO_WPF"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
mc:Ignorable="d"
|
||||
Title="MAIN" Height="186" Width="145" MinHeight="186" MinWidth="145" materialDesign:ShadowAssist.CacheMode="{x:Null}" MaxHeight="186" MaxWidth="145" WindowStyle="None" WindowStartupLocation="CenterOwner" Foreground="White" Background="LightGray" ResizeMode="NoResize" Icon="/UWUVCI AIO WPF;component/a.ico" Name="wind" BorderBrush="#FF2196F3" BorderThickness="1.5,1.5,1.5,1.5" ShowInTaskbar="False" SizeToContent="WidthAndHeight" Closing="wind_Closing" Closed="wind_Closed">
|
||||
Title="MAIN" Height="186" Width="170.673" MinHeight="186" MinWidth="170" materialDesign:ShadowAssist.CacheMode="{x:Null}" MaxHeight="186" MaxWidth="170" WindowStyle="None" WindowStartupLocation="CenterOwner" Foreground="White" Background="LightGray" ResizeMode="NoResize" Icon="/UWUVCI AIO WPF;component/a.ico" Name="wind" BorderBrush="#FF2196F3" BorderThickness="1.5,1.5,1.5,1.5" ShowInTaskbar="False" SizeToContent="WidthAndHeight" Closing="wind_Closing" Closed="wind_Closed">
|
||||
|
||||
<Grid Margin="0,0,-4,0">
|
||||
<Grid HorizontalAlignment="Left" Width="166">
|
||||
<Grid.RowDefinitions>
|
||||
|
||||
|
||||
</Grid.RowDefinitions>
|
||||
<Button Content="Close" HorizontalAlignment="Left" Margin="61,143,0,0" VerticalAlignment="Top" Width="74" Click="Canc_Click" RenderTransformOrigin="0.5,0.5"/>
|
||||
<Image HorizontalAlignment="Left" Height="128" Width="128" Margin="6,10,0,0" VerticalAlignment="Top" Name="img"/>
|
||||
<Button Content="Close" HorizontalAlignment="Left" Margin="85,143,0,0" VerticalAlignment="Top" Width="74" Click="Canc_Click" RenderTransformOrigin="0.5,0.5"/>
|
||||
<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"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
|
|
|
@ -117,5 +117,38 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
(FindResource("mvm") as MainViewModel).mw.Topmost = false;
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MainViewModel mvm = FindResource("mvm") as MainViewModel;
|
||||
switch (mvm.GameConfiguration.Console)
|
||||
{
|
||||
case GameBaseClassLibrary.GameConsoles.NDS:
|
||||
case GameBaseClassLibrary.GameConsoles.NES:
|
||||
case GameBaseClassLibrary.GameConsoles.SNES:
|
||||
case GameBaseClassLibrary.GameConsoles.MSX:
|
||||
(mvm.Thing as OtherConfigs).clearImages(0);
|
||||
break;
|
||||
case GameBaseClassLibrary.GameConsoles.GBA:
|
||||
(mvm.Thing as GBA).clearImages(0);
|
||||
break;
|
||||
case GameBaseClassLibrary.GameConsoles.WII:
|
||||
if (mvm.test == GameBaseClassLibrary.GameConsoles.GCN)
|
||||
{
|
||||
(mvm.Thing as GCConfig).clearImages(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
(mvm.Thing as WiiConfig).clearImages(0);
|
||||
}
|
||||
break;
|
||||
case GameBaseClassLibrary.GameConsoles.N64:
|
||||
(mvm.Thing as N64Config).clearImages(0);
|
||||
break;
|
||||
case GameBaseClassLibrary.GameConsoles.TG16:
|
||||
(mvm.Thing as TurboGrafX).clearImages(0);
|
||||
break;
|
||||
}
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
</Grid.RowDefinitions>
|
||||
<Button Content="Close" HorizontalAlignment="Left" Margin="256,204,0,0" VerticalAlignment="Top" Width="74" Click="Canc_Click" RenderTransformOrigin="0.5,0.5"/>
|
||||
<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"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
|
|
|
@ -27,9 +27,11 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
private static readonly string toolsPath = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "Tools");
|
||||
string copy = "";
|
||||
string pat = "";
|
||||
bool drc = false;
|
||||
BitmapImage bitmap = new BitmapImage();
|
||||
public TDRSHOW(string path, bool drc)
|
||||
{
|
||||
this.drc = drc;
|
||||
try
|
||||
{
|
||||
if (this.Owner.GetType() != typeof(MainWindow))
|
||||
|
@ -130,5 +132,40 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
(FindResource("mvm") as MainViewModel).mw.Topmost = false;
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
int a = 1;
|
||||
if (drc) a = 2;
|
||||
MainViewModel mvm = FindResource("mvm") as MainViewModel;
|
||||
switch (mvm.GameConfiguration.Console)
|
||||
{
|
||||
case GameBaseClassLibrary.GameConsoles.NDS:
|
||||
case GameBaseClassLibrary.GameConsoles.NES:
|
||||
case GameBaseClassLibrary.GameConsoles.SNES:
|
||||
case GameBaseClassLibrary.GameConsoles.MSX:
|
||||
(mvm.Thing as OtherConfigs).clearImages(a);
|
||||
break;
|
||||
case GameBaseClassLibrary.GameConsoles.GBA:
|
||||
(mvm.Thing as GBA).clearImages(a);
|
||||
break;
|
||||
case GameBaseClassLibrary.GameConsoles.WII:
|
||||
if (mvm.test == GameBaseClassLibrary.GameConsoles.GCN)
|
||||
{
|
||||
(mvm.Thing as GCConfig).clearImages(a);
|
||||
}
|
||||
else
|
||||
{
|
||||
(mvm.Thing as WiiConfig).clearImages(a);
|
||||
}
|
||||
break;
|
||||
case GameBaseClassLibrary.GameConsoles.N64:
|
||||
(mvm.Thing as N64Config).clearImages(a);
|
||||
break;
|
||||
case GameBaseClassLibrary.GameConsoles.TG16:
|
||||
(mvm.Thing as TurboGrafX).clearImages(a);
|
||||
break;
|
||||
}
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -117,7 +117,11 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
{
|
||||
(mvm.Thing as GBA).icoIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else if (mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.NDS || mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.SNES)
|
||||
else if (mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.TG16)
|
||||
{
|
||||
(mvm.Thing as TurboGrafX).icoIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else if (mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.NDS || mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.SNES || mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.NES || mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.MSX)
|
||||
{
|
||||
(mvm.Thing as OtherConfigs).icoIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
|
@ -127,10 +131,14 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
if (mvm.test == GameBaseClassLibrary.GameConsoles.GCN)
|
||||
{
|
||||
(mvm.Thing as GCConfig).tvIMG.Visibility = Visibility.Visible;
|
||||
(mvm.Thing as GCConfig).imgpath(System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", $"iconTex.{ic.Split('.')[3]}"), System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", $"bootTvTex.{tvs.Split('.')[3]}"));
|
||||
|
||||
}
|
||||
else if (mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.WII)
|
||||
{
|
||||
(mvm.Thing as WiiConfig).tvIMG.Visibility = Visibility.Visible;
|
||||
(mvm.Thing as WiiConfig).imgpath(System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", $"iconTex.{ic.Split('.')[3]}"), System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", $"bootTvTex.{tvs.Split('.')[3]}"));
|
||||
|
||||
}
|
||||
else if (mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.N64)
|
||||
{
|
||||
|
@ -143,7 +151,12 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
(mvm.Thing as GBA).tvIMG.Visibility = Visibility.Visible;
|
||||
(mvm.Thing as GBA).imgpath(System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", $"iconTex.{ic.Split('.')[3]}"), System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", $"bootTvTex.{tvs.Split('.')[3]}"));
|
||||
}
|
||||
else if (mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.NDS || mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.SNES)
|
||||
else if (mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.TG16)
|
||||
{
|
||||
(mvm.Thing as TurboGrafX).tvIMG.Visibility = Visibility.Visible;
|
||||
(mvm.Thing as TurboGrafX).imgpath(System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", $"iconTex.{ic.Split('.')[3]}"), System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", $"bootTvTex.{tvs.Split('.')[3]}"));
|
||||
}
|
||||
else if (mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.NDS || mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.SNES || mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.NES || mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.MSX)
|
||||
{
|
||||
(mvm.Thing as OtherConfigs).tvIMG.Visibility = Visibility.Visible;
|
||||
(mvm.Thing as OtherConfigs).imgpath(System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", $"iconTex.{ic.Split('.')[3]}"), System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", $"bootTvTex.{tvs.Split('.')[3]}"));
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
<Window x:Class="UWUVCI_AIO_WPF.UI.Windows.LogoCreator"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
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">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="200"/>
|
||||
<ColumnDefinition Width="235"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Margin="0,0,353,0"></Label>
|
||||
<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"/>
|
||||
<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"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
|
@ -0,0 +1,237 @@
|
|||
using GameBaseClassLibrary;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Drawing.Imaging;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices.ComTypes;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Forms;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
using UWUVCI_AIO_WPF.Classes;
|
||||
using UWUVCI_AIO_WPF.Properties;
|
||||
|
||||
namespace UWUVCI_AIO_WPF.UI.Windows
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaktionslogik für ImageCreator.xaml
|
||||
/// </summary>
|
||||
|
||||
public partial class LogoCreator : Window, IDisposable
|
||||
{
|
||||
private static readonly string tempPath = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "temp");
|
||||
private static readonly string toolsPath = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "Tools");
|
||||
BootLogoImage bi = new BootLogoImage();
|
||||
Bitmap b;
|
||||
string console = "other";
|
||||
bool drc = false;
|
||||
|
||||
public LogoCreator()
|
||||
{
|
||||
InitializeComponent();
|
||||
imageName.Content = "bootLogoTex";
|
||||
SetTemplate();
|
||||
}
|
||||
|
||||
|
||||
private void SetTemplate()
|
||||
{
|
||||
bi.Frame = new Bitmap(Properties.Resources.bootLogoTex);
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
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))
|
||||
{
|
||||
string copy = "";
|
||||
if (new FileInfo(path).Extension.Contains("tga"))
|
||||
{
|
||||
using (Process conv = new Process())
|
||||
{
|
||||
|
||||
conv.StartInfo.UseShellExecute = false;
|
||||
conv.StartInfo.CreateNoWindow = true;
|
||||
if (Directory.Exists(System.IO.Path.Combine(tempPath, "image")))
|
||||
{
|
||||
Directory.Delete(System.IO.Path.Combine(tempPath, "image"), true);
|
||||
}
|
||||
Directory.CreateDirectory(System.IO.Path.Combine(tempPath, "image"));
|
||||
conv.StartInfo.FileName = System.IO.Path.Combine(toolsPath, "tga2png.exe");
|
||||
conv.StartInfo.Arguments = $"-i \"{path}\" -o \"{System.IO.Path.Combine(tempPath, "image")}\"";
|
||||
|
||||
conv.Start();
|
||||
conv.WaitForExit();
|
||||
|
||||
foreach (string sFile in Directory.GetFiles(System.IO.Path.Combine(tempPath, "image"), "*.png"))
|
||||
{
|
||||
copy = sFile;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
copy = path;
|
||||
}
|
||||
bi.Frame = new Bitmap(copy);
|
||||
b = bi.Create("");
|
||||
Finish_Click(null, null);
|
||||
}
|
||||
|
||||
}
|
||||
private bool CheckIfNull(string s)
|
||||
{
|
||||
if (s == null || s.Equals(string.Empty))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
private void Finish_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (!Directory.Exists(@"bin\createdIMG"))
|
||||
{
|
||||
Directory.CreateDirectory(@"bin\createdIMG");
|
||||
}
|
||||
if(File.Exists(System.IO.Path.Combine(@"bin\createdIMG", imageName.Content + ".png")))
|
||||
{
|
||||
File.Delete(System.IO.Path.Combine(@"bin\createdIMG", imageName.Content + ".png"));
|
||||
}
|
||||
|
||||
|
||||
b.Save(System.IO.Path.Combine(@"bin\createdIMG", imageName.Content + ".png"));
|
||||
|
||||
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void TextBox_PreviewKeyDown(object sender, System.Windows.Input.KeyEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void TextBox_PreviewTextInput(object sender, TextCompositionEventArgs e)
|
||||
{
|
||||
e.Handled = !IsTextAllowed(e.Text);
|
||||
}
|
||||
|
||||
private static readonly Regex _regex = new Regex("[^0-9]+"); //regex that matches disallowed text
|
||||
private static bool IsTextAllowed(string text)
|
||||
{
|
||||
return !_regex.IsMatch(text);
|
||||
}
|
||||
private void TextBoxPasting(object sender, DataObjectPastingEventArgs e)
|
||||
{
|
||||
if (e.DataObject.GetDataPresent(typeof(String)))
|
||||
{
|
||||
String text = (String)e.DataObject.GetData(typeof(String));
|
||||
if (!IsTextAllowed(text))
|
||||
{
|
||||
e.CancelCommand();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
e.CancelCommand();
|
||||
}
|
||||
}
|
||||
|
||||
private void wind_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
b = bi.Create(t.Text);
|
||||
Image.Source = BitmapToImageSource(b);
|
||||
}
|
||||
BitmapImage BitmapToImageSource(Bitmap bitmap)
|
||||
{
|
||||
using (MemoryStream memory = new MemoryStream())
|
||||
{
|
||||
bitmap.Save(memory, System.Drawing.Imaging.ImageFormat.Bmp);
|
||||
memory.Position = 0;
|
||||
BitmapImage bitmapimage = new BitmapImage();
|
||||
bitmapimage.BeginInit();
|
||||
bitmapimage.StreamSource = memory;
|
||||
bitmapimage.CacheOption = BitmapCacheOption.OnLoad;
|
||||
bitmapimage.EndInit();
|
||||
|
||||
return bitmapimage;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void DrawImage()
|
||||
{
|
||||
b = bi.Create(t.Text);
|
||||
Image.Source = BitmapToImageSource(b);
|
||||
}
|
||||
|
||||
private void Players_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void Players_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
DrawImage();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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)
|
||||
{
|
||||
|
||||
DrawImage();
|
||||
}
|
||||
|
||||
private void RLEn_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
DrawImage();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void t_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
DrawImage();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -73,6 +73,30 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
hb.Visibility = Visibility.Visible;
|
||||
wii.Visibility = Visibility.Visible;
|
||||
}
|
||||
else if((FindResource("mvm") as MainViewModel).GameConfiguration.Console == GameConsoles.NDS)
|
||||
{
|
||||
bi.Frame = new Bitmap(Properties.Resources.Icon);
|
||||
wii.IsChecked = true;
|
||||
ww.Content = "Alt 1";
|
||||
hb.Content = "Alt 2";
|
||||
wii.Content = "NDS";
|
||||
ww.Visibility = Visibility.Visible;
|
||||
ws.Visibility = Visibility.Visible;
|
||||
hb.Visibility = Visibility.Visible;
|
||||
wii.Visibility = Visibility.Visible;
|
||||
}
|
||||
else if ((FindResource("mvm") as MainViewModel).GameConfiguration.Console == GameConsoles.N64)
|
||||
{
|
||||
bi.Frame = new Bitmap(Properties.Resources.Icon);
|
||||
wii.IsChecked = true;
|
||||
ww.Content = "Alt 1";
|
||||
hb.Content = "Alt 2";
|
||||
wii.Content = "N64";
|
||||
ww.Visibility = Visibility.Visible;
|
||||
ws.Visibility = Visibility.Visible;
|
||||
hb.Visibility = Visibility.Visible;
|
||||
wii.Visibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
bi.Frame = new Bitmap(Properties.Resources.Icon);
|
||||
|
@ -340,7 +364,45 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
|
||||
private void ww_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if((FindResource("mvm") as MainViewModel).test != GameConsoles.GCN)
|
||||
if ((FindResource("mvm") as MainViewModel).GameConfiguration.Console == GameConsoles.NDS)
|
||||
{
|
||||
if (ww.IsChecked == true)
|
||||
{
|
||||
bi.Frame = new Bitmap(Properties.Resources.NDS_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.NDS_Alt2);
|
||||
console = "WII";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
else if ((FindResource("mvm") as MainViewModel).GameConfiguration.Console == GameConsoles.N64)
|
||||
{
|
||||
if (ww.IsChecked == true)
|
||||
{
|
||||
bi.Frame = new Bitmap(Properties.Resources.N64_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.N64_alt2);
|
||||
console = "WII";
|
||||
}
|
||||
}
|
||||
else if ((FindResource("mvm") as MainViewModel).test != GameConsoles.GCN)
|
||||
{
|
||||
if (ww.IsChecked == true)
|
||||
{
|
||||
|
|
|
@ -115,6 +115,7 @@
|
|||
<Compile Include="AssemblyInfo1.cs" />
|
||||
<Compile Include="Classes\BootImage.cs" />
|
||||
<Compile Include="Classes\KeyFile.cs" />
|
||||
<Compile Include="Classes\MenuIconImage - Kopieren.cs" />
|
||||
<Compile Include="Classes\MenuIconImage.cs" />
|
||||
<Compile Include="Classes\TKeys.cs" />
|
||||
<Compile Include="Classes\ToolCheck.cs" />
|
||||
|
@ -157,6 +158,9 @@
|
|||
<Compile Include="UI\Windows\ImageCreator - Kopieren - Kopieren %282%29.xaml.cs">
|
||||
<DependentUpon>ImageCreator - Kopieren - Kopieren %282%29.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UI\Windows\ImageCreator - Kopieren - Kopieren.xaml.cs">
|
||||
<DependentUpon>ImageCreator - Kopieren - Kopieren.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UI\Windows\ImageCreator - Kopieren.xaml.cs">
|
||||
<DependentUpon>ImageCreator - Kopieren.xaml</DependentUpon>
|
||||
</Compile>
|
||||
|
@ -265,6 +269,10 @@
|
|||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="UI\Windows\ImageCreator - Kopieren - Kopieren.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="UI\Windows\ImageCreator - Kopieren.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
|
@ -372,22 +380,6 @@
|
|||
<ItemGroup>
|
||||
<Resource Include="UI\Images\bg maybe wpf.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\bg maybe wpf2.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\gba64.png" />
|
||||
<Resource Include="UI\Images\nds64v64.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\nes64.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\n64colorless.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\snes64.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
|
||||
<Visible>False</Visible>
|
||||
|
@ -400,62 +392,21 @@
|
|||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\TG16.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\msx.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\TG16alt.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\nes64alt.png" />
|
||||
<Resource Include="UI\Images\nes64alt2.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\snes64alt.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\snes64alt2.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\ds64x64alt2.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\ds64x64alt3.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\ds64x64alt4.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\gba64alt.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\gba64alt2.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\gba64alt3.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\nes64alt3.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\nes64alt4.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\n64colorlessalt6.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\n64colorlessalt7.png" />
|
||||
<Resource Include="UI\Images\n64colorlessalt8.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\n64colorlessalt9.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\n64colorlessalt0.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\nes64alt5.png" />
|
||||
</ItemGroup>
|
||||
|
@ -466,9 +417,6 @@
|
|||
<Resource Include="UI\Images\NGC.png" />
|
||||
<Resource Include="UI\Images\Wii.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\WiiGC.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\bgtv.png" />
|
||||
</ItemGroup>
|
||||
|
@ -500,9 +448,6 @@
|
|||
<ItemGroup>
|
||||
<Resource Include="b.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\sound.mp3" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\GBC.png" />
|
||||
</ItemGroup>
|
||||
|
@ -533,12 +478,6 @@
|
|||
<ItemGroup>
|
||||
<None Include="Resources\GBA.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\Gameboy1.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\Gameboy2.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\newgameboy.png" />
|
||||
</ItemGroup>
|
||||
|
@ -566,12 +505,6 @@
|
|||
<ItemGroup>
|
||||
<None Include="Resources\WIIWARE.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\homebrew.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\homebrew2.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\homebrew3.png" />
|
||||
</ItemGroup>
|
||||
|
@ -581,11 +514,26 @@
|
|||
<ItemGroup>
|
||||
<None Include="Resources\GCN ICON2.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\wii3New.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\GCN ICON3.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\wii3New.png" />
|
||||
<None Include="Resources\NDS Alt1.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\NDS Alt2.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\N64 alt1.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\N64 alt2.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\bootLogoTex.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')" />
|
||||
|
|