From 2959e8764951e10d3f6ea4919a5d57b33b017464 Mon Sep 17 00:00:00 2001 From: exelix11 Date: Mon, 17 Aug 2015 12:49:04 +0200 Subject: [PATCH] Bug fixes + full support for themes type 2 without background --- Form1.cs | 7 ++++--- Info_Forms/Credits.cs | 2 +- Info_Forms/FirstStart.Designer.cs | 18 ++---------------- Info_Forms/FirstStart.cs | 1 - Info_Forms/FirstStart.resx | 10 ++-------- 5 files changed, 9 insertions(+), 29 deletions(-) diff --git a/Form1.cs b/Form1.cs index 247c721..60fd213 100644 --- a/Form1.cs +++ b/Form1.cs @@ -23,13 +23,13 @@ public partial class Form1 : Form public static int APP_Move_buttons_colors = 10; public static bool APP_First_Start = true; //if true this is the first start, else it isn't public static bool APP_check_UPD = true; - public static int APP_Public_version = 4; /*for the update check the application doesn't count the version, but the release number on gbatemp + public static int APP_Public_version = 5; /*for the update check the application doesn't count the version, but the release number on gbatemp 1: First public yata+ version 2: Yata+ v1.1 3: Yata+ v1.2 - 4: Yata+ v1.3 (this one) + 4: Yata+ v1.3 5,6,etc..: Future updates*/ - public static string APP_STRING_version = "YATA+ v1.3 BETA"; + public static string APP_STRING_version = "YATA+ v1.3.1 BETA"; public static int APP_SETT_SIZE_X = 656; //To remember the size public static int APP_SETT_SIZE_Y = 625; public static bool APP_export_both_screens = true; @@ -1657,6 +1657,7 @@ void Wav2BCSTM(string input) prc.StartInfo.UseShellExecute = false; prc.Start(); prc.WaitForExit(); + if (!File.Exists(Path.GetTempPath() + "tmp.bcstm")) return; File.WriteAllBytes(sv.FileName, BRSTM_BCSTM_converter.Create_BCSTM(File.ReadAllBytes(Path.GetTempPath() + "tmp.bcstm"))); File.Delete(Path.GetTempPath() + "tmp.bcstm"); if (File.Exists(sv.FileName)) MessageBox.Show("Done !"); else MessageBox.Show("Error while converting the file, run the command in the cmd to check the output"); diff --git a/Info_Forms/Credits.cs b/Info_Forms/Credits.cs index d5bb3f7..a0e4bf0 100644 --- a/Info_Forms/Credits.cs +++ b/Info_Forms/Credits.cs @@ -18,7 +18,7 @@ public Credits() private void button2_Click(object sender, EventArgs e) { - MessageBox.Show("Main changes from the previous version of YATA+:\r\n -Now the Theme setting window can be resized\r\n -The theme simulator now can render the home menu UI too\r\n -WAV -> BRSTM/BCSTM conversion\r\n -Now the folder back arrow can be edited\r\n -drag and drop supports file conversions"); + MessageBox.Show("Main changes from the previous version of YATA+:\r\n -Fixed a bug in the theme simulator\r\n -Now the no background flag is supported for the mood-matrix type themes"); } private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) diff --git a/Info_Forms/FirstStart.Designer.cs b/Info_Forms/FirstStart.Designer.cs index d062f71..26f2257 100644 --- a/Info_Forms/FirstStart.Designer.cs +++ b/Info_Forms/FirstStart.Designer.cs @@ -35,7 +35,6 @@ private void InitializeComponent() this.label3 = new System.Windows.Forms.Label(); this.linkLabel1 = new System.Windows.Forms.LinkLabel(); this.linkLabel2 = new System.Windows.Forms.LinkLabel(); - this.label4 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // label1 @@ -79,7 +78,7 @@ private void InitializeComponent() // linkLabel1 // this.linkLabel1.AutoSize = true; - this.linkLabel1.Location = new System.Drawing.Point(39, 349); + this.linkLabel1.Location = new System.Drawing.Point(37, 270); this.linkLabel1.Name = "linkLabel1"; this.linkLabel1.Size = new System.Drawing.Size(359, 13); this.linkLabel1.TabIndex = 4; @@ -90,7 +89,7 @@ private void InitializeComponent() // linkLabel2 // this.linkLabel2.AutoSize = true; - this.linkLabel2.Location = new System.Drawing.Point(12, 179); + this.linkLabel2.Location = new System.Drawing.Point(12, 139); this.linkLabel2.Name = "linkLabel2"; this.linkLabel2.Size = new System.Drawing.Size(426, 13); this.linkLabel2.TabIndex = 5; @@ -98,17 +97,6 @@ private void InitializeComponent() this.linkLabel2.Text = "https://gbatemp.net/threads/tutorial-creating-a-3ds-custom-theme-from-scratch-wit" + "h-yat..."; this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked); - // - // label4 - // - this.label4.ForeColor = System.Drawing.Color.Red; - this.label4.Location = new System.Drawing.Point(2, 141); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(442, 51); - this.label4.TabIndex = 6; - this.label4.Text = "also, in the same thread there is a opened poll, where you can vote if you want m" + - "e to make some videos on how to use yata+ ,hurry up because you can only vote un" + - "til August 15\r\n (EXPIRED)"; // // FirstStart // @@ -121,7 +109,6 @@ private void InitializeComponent() this.Controls.Add(this.label3); this.Controls.Add(this.button1); this.Controls.Add(this.label1); - this.Controls.Add(this.label4); this.Controls.Add(this.label2); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Name = "FirstStart"; @@ -143,6 +130,5 @@ private void InitializeComponent() private System.Windows.Forms.Label label3; private System.Windows.Forms.LinkLabel linkLabel1; private System.Windows.Forms.LinkLabel linkLabel2; - private System.Windows.Forms.Label label4; } } \ No newline at end of file diff --git a/Info_Forms/FirstStart.cs b/Info_Forms/FirstStart.cs index cf7acb2..e3db374 100644 --- a/Info_Forms/FirstStart.cs +++ b/Info_Forms/FirstStart.cs @@ -36,7 +36,6 @@ private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs private void FirstStart_Load(object sender, EventArgs e) { label3.Text = Form1.APP_STRING_version; - if (DateTime.Today.Day <= 15 && DateTime.Today.Month == 8) { label4.Text = "Also, in the same thread there is a opened poll, where you can vote if you want me to make some videos on how to use yata + ,hurry up because you can only vote until August 15"; } else { label4.ForeColor = Color.Black; } } } } diff --git a/Info_Forms/FirstStart.resx b/Info_Forms/FirstStart.resx index 5484c77..c59f5cb 100644 --- a/Info_Forms/FirstStart.resx +++ b/Info_Forms/FirstStart.resx @@ -125,15 +125,9 @@ If you never made a custom theme or you aren't so "expert" you should check out this guide made by me for using YATA+, - - - Changes in this version of YATA+: - -Now the theme settings window is resizable - -The theme simulator can render most of the home menu UI (it's not 100% precise, use it just to see if the colors of the buttons are fine with the image ) - -WAV -> BRSTM/BCSTM conversion - -Now the folder back arrow can be edited - -Drag and drop now supports file conversions too (WAV -> CWAV, BRSTM -> WAV, etc...) + -Fixed a bug in the simulator + -Now the no background flag is supported for the mood-matrix type themes Remember that this is still a beta, so it could crash or corrupt themes, be sure to have always a backup of the theme you are working on and to save often the file, for every problem, question or bug report, here is the official thread: