Update addnewskin to return when skin id is not valid and re-linked textSkinID_TextChanged

This commit is contained in:
miku-666
2022-09-04 10:41:54 +02:00
parent 7cbdc616b4
commit d600d24aec
3 changed files with 352 additions and 336 deletions

View File

@@ -28,320 +28,324 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(addNewSkin));
this.textTheme = new System.Windows.Forms.TextBox();
this.contextMenuSkin = new System.Windows.Forms.ContextMenuStrip(this.components);
this.replaceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuCape = new System.Windows.Forms.ContextMenuStrip(this.components);
this.replaceToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.buttonDone = new System.Windows.Forms.Button();
this.buttonModelGen = new System.Windows.Forms.Button();
this.buttonCape = new System.Windows.Forms.Button();
this.buttonSkin = new System.Windows.Forms.Button();
this.displayBox = new System.Windows.Forms.PictureBox();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.radioAUTO = new System.Windows.Forms.RadioButton();
this.radioLOCAL = new System.Windows.Forms.RadioButton();
this.labelSelectTexture = new System.Windows.Forms.Label();
this.radioSERVER = new System.Windows.Forms.RadioButton();
this.textSkinID = new MetroFramework.Controls.MetroTextBox();
this.textSkinName = new MetroFramework.Controls.MetroTextBox();
this.textThemeName = new MetroFramework.Controls.MetroTextBox();
this.label4 = new System.Windows.Forms.Label();
this.buttonAnimGen = new System.Windows.Forms.Button();
this.capePictureBox = new PckStudio.PictureBoxWithInterpolationMode();
this.skinPictureBoxTexture = new PckStudio.PictureBoxWithInterpolationMode();
this.contextMenuSkin.SuspendLayout();
this.contextMenuCape.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.displayBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.capePictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.skinPictureBoxTexture)).BeginInit();
this.SuspendLayout();
//
// textTheme
//
resources.ApplyResources(this.textTheme, "textTheme");
this.textTheme.Name = "textTheme";
//
// contextMenuSkin
//
this.contextMenuSkin.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(addNewSkin));
System.Windows.Forms.Label label3;
System.Windows.Forms.Label label2;
System.Windows.Forms.Label label1;
this.textTheme = new System.Windows.Forms.TextBox();
this.contextMenuSkin = new System.Windows.Forms.ContextMenuStrip(this.components);
this.replaceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuCape = new System.Windows.Forms.ContextMenuStrip(this.components);
this.replaceToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.buttonDone = new System.Windows.Forms.Button();
this.buttonModelGen = new System.Windows.Forms.Button();
this.buttonCape = new System.Windows.Forms.Button();
this.buttonSkin = new System.Windows.Forms.Button();
this.displayBox = new System.Windows.Forms.PictureBox();
this.radioAUTO = new System.Windows.Forms.RadioButton();
this.radioLOCAL = new System.Windows.Forms.RadioButton();
this.labelSelectTexture = new System.Windows.Forms.Label();
this.radioSERVER = new System.Windows.Forms.RadioButton();
this.textSkinID = new MetroFramework.Controls.MetroTextBox();
this.textSkinName = new MetroFramework.Controls.MetroTextBox();
this.textThemeName = new MetroFramework.Controls.MetroTextBox();
this.label4 = new System.Windows.Forms.Label();
this.buttonAnimGen = new System.Windows.Forms.Button();
this.capePictureBox = new PckStudio.PictureBoxWithInterpolationMode();
this.skinPictureBoxTexture = new PckStudio.PictureBoxWithInterpolationMode();
label3 = new System.Windows.Forms.Label();
label2 = new System.Windows.Forms.Label();
label1 = new System.Windows.Forms.Label();
this.contextMenuSkin.SuspendLayout();
this.contextMenuCape.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.displayBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.capePictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.skinPictureBoxTexture)).BeginInit();
this.SuspendLayout();
//
// textTheme
//
resources.ApplyResources(this.textTheme, "textTheme");
this.textTheme.Name = "textTheme";
//
// contextMenuSkin
//
this.contextMenuSkin.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.replaceToolStripMenuItem});
this.contextMenuSkin.Name = "contextMenuSkin";
resources.ApplyResources(this.contextMenuSkin, "contextMenuSkin");
//
// replaceToolStripMenuItem
//
resources.ApplyResources(this.replaceToolStripMenuItem, "replaceToolStripMenuItem");
this.replaceToolStripMenuItem.Name = "replaceToolStripMenuItem";
this.replaceToolStripMenuItem.Click += new System.EventHandler(this.replaceToolStripMenuItem_Click);
//
// contextMenuCape
//
this.contextMenuCape.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.contextMenuSkin.Name = "contextMenuSkin";
resources.ApplyResources(this.contextMenuSkin, "contextMenuSkin");
//
// replaceToolStripMenuItem
//
resources.ApplyResources(this.replaceToolStripMenuItem, "replaceToolStripMenuItem");
this.replaceToolStripMenuItem.Name = "replaceToolStripMenuItem";
this.replaceToolStripMenuItem.Click += new System.EventHandler(this.replaceToolStripMenuItem_Click);
//
// contextMenuCape
//
this.contextMenuCape.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.replaceToolStripMenuItem1});
this.contextMenuCape.Name = "contextMenuCape";
resources.ApplyResources(this.contextMenuCape, "contextMenuCape");
//
// replaceToolStripMenuItem1
//
resources.ApplyResources(this.replaceToolStripMenuItem1, "replaceToolStripMenuItem1");
this.replaceToolStripMenuItem1.Name = "replaceToolStripMenuItem1";
this.replaceToolStripMenuItem1.Click += new System.EventHandler(this.replaceToolStripMenuItem1_Click);
//
// buttonDone
//
resources.ApplyResources(this.buttonDone, "buttonDone");
this.buttonDone.ForeColor = System.Drawing.Color.White;
this.buttonDone.Name = "buttonDone";
this.buttonDone.UseVisualStyleBackColor = true;
this.buttonDone.Click += new System.EventHandler(this.CreateButton_Click);
//
// buttonModelGen
//
resources.ApplyResources(this.buttonModelGen, "buttonModelGen");
this.buttonModelGen.ForeColor = System.Drawing.Color.White;
this.buttonModelGen.Name = "buttonModelGen";
this.buttonModelGen.UseVisualStyleBackColor = true;
this.buttonModelGen.Click += new System.EventHandler(this.CreateCustomModel_Click);
//
// buttonCape
//
resources.ApplyResources(this.buttonCape, "buttonCape");
this.buttonCape.Name = "buttonCape";
this.buttonCape.UseVisualStyleBackColor = true;
this.buttonCape.Click += new System.EventHandler(this.buttonCape_Click);
//
// buttonSkin
//
resources.ApplyResources(this.buttonSkin, "buttonSkin");
this.buttonSkin.Name = "buttonSkin";
this.buttonSkin.UseVisualStyleBackColor = true;
this.buttonSkin.Click += new System.EventHandler(this.buttonSkin_Click);
//
// displayBox
//
this.displayBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(13)))), ((int)(((byte)(13)))), ((int)(((byte)(13)))));
resources.ApplyResources(this.displayBox, "displayBox");
this.displayBox.Name = "displayBox";
this.displayBox.TabStop = false;
//
// label3
//
resources.ApplyResources(this.label3, "label3");
this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Name = "label3";
//
// label2
//
resources.ApplyResources(this.label2, "label2");
this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Name = "label2";
//
// label1
//
resources.ApplyResources(this.label1, "label1");
this.label1.ForeColor = System.Drawing.Color.White;
this.label1.Name = "label1";
//
// radioAUTO
//
resources.ApplyResources(this.radioAUTO, "radioAUTO");
this.radioAUTO.ForeColor = System.Drawing.Color.White;
this.radioAUTO.Name = "radioAUTO";
this.radioAUTO.UseVisualStyleBackColor = true;
this.radioAUTO.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
//
// radioLOCAL
//
resources.ApplyResources(this.radioLOCAL, "radioLOCAL");
this.radioLOCAL.Checked = true;
this.radioLOCAL.ForeColor = System.Drawing.Color.White;
this.radioLOCAL.Name = "radioLOCAL";
this.radioLOCAL.TabStop = true;
this.radioLOCAL.UseVisualStyleBackColor = true;
this.radioLOCAL.CheckedChanged += new System.EventHandler(this.radioLOCAL_CheckedChanged);
//
// labelSelectTexture
//
resources.ApplyResources(this.labelSelectTexture, "labelSelectTexture");
this.labelSelectTexture.ForeColor = System.Drawing.Color.White;
this.labelSelectTexture.Name = "labelSelectTexture";
this.labelSelectTexture.Click += new System.EventHandler(this.pictureBox1_Click);
//
// radioSERVER
//
resources.ApplyResources(this.radioSERVER, "radioSERVER");
this.radioSERVER.ForeColor = System.Drawing.Color.White;
this.radioSERVER.Name = "radioSERVER";
this.radioSERVER.UseVisualStyleBackColor = true;
this.radioSERVER.CheckedChanged += new System.EventHandler(this.radioSERVER_CheckedChanged);
//
// textSkinID
//
//
//
//
this.textSkinID.CustomButton.Image = ((System.Drawing.Image)(resources.GetObject("resource.Image")));
this.textSkinID.CustomButton.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("resource.ImeMode")));
this.textSkinID.CustomButton.Location = ((System.Drawing.Point)(resources.GetObject("resource.Location")));
this.textSkinID.CustomButton.Name = "";
this.textSkinID.CustomButton.Size = ((System.Drawing.Size)(resources.GetObject("resource.Size")));
this.textSkinID.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.textSkinID.CustomButton.TabIndex = ((int)(resources.GetObject("resource.TabIndex")));
this.textSkinID.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.textSkinID.CustomButton.UseSelectable = true;
this.textSkinID.CustomButton.Visible = ((bool)(resources.GetObject("resource.Visible")));
this.textSkinID.ForeColor = System.Drawing.Color.White;
this.textSkinID.Lines = new string[0];
resources.ApplyResources(this.textSkinID, "textSkinID");
this.textSkinID.MaxLength = 32767;
this.textSkinID.Name = "textSkinID";
this.textSkinID.PasswordChar = '\0';
this.textSkinID.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.textSkinID.SelectedText = "";
this.textSkinID.SelectionLength = 0;
this.textSkinID.SelectionStart = 0;
this.textSkinID.ShortcutsEnabled = true;
this.textSkinID.Theme = MetroFramework.MetroThemeStyle.Dark;
this.textSkinID.UseSelectable = true;
this.textSkinID.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.textSkinID.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
//
// textSkinName
//
//
//
//
this.textSkinName.CustomButton.Image = ((System.Drawing.Image)(resources.GetObject("resource.Image1")));
this.textSkinName.CustomButton.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("resource.ImeMode1")));
this.textSkinName.CustomButton.Location = ((System.Drawing.Point)(resources.GetObject("resource.Location1")));
this.textSkinName.CustomButton.Name = "";
this.textSkinName.CustomButton.Size = ((System.Drawing.Size)(resources.GetObject("resource.Size1")));
this.textSkinName.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.textSkinName.CustomButton.TabIndex = ((int)(resources.GetObject("resource.TabIndex1")));
this.textSkinName.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.textSkinName.CustomButton.UseSelectable = true;
this.textSkinName.CustomButton.Visible = ((bool)(resources.GetObject("resource.Visible1")));
this.textSkinName.ForeColor = System.Drawing.Color.White;
this.textSkinName.Lines = new string[0];
resources.ApplyResources(this.textSkinName, "textSkinName");
this.textSkinName.MaxLength = 32767;
this.textSkinName.Name = "textSkinName";
this.textSkinName.PasswordChar = '\0';
this.textSkinName.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.textSkinName.SelectedText = "";
this.textSkinName.SelectionLength = 0;
this.textSkinName.SelectionStart = 0;
this.textSkinName.ShortcutsEnabled = true;
this.textSkinName.Theme = MetroFramework.MetroThemeStyle.Dark;
this.textSkinName.UseSelectable = true;
this.textSkinName.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.textSkinName.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
//
// textThemeName
//
//
//
//
this.textThemeName.CustomButton.Image = ((System.Drawing.Image)(resources.GetObject("resource.Image2")));
this.textThemeName.CustomButton.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("resource.ImeMode2")));
this.textThemeName.CustomButton.Location = ((System.Drawing.Point)(resources.GetObject("resource.Location2")));
this.textThemeName.CustomButton.Name = "";
this.textThemeName.CustomButton.Size = ((System.Drawing.Size)(resources.GetObject("resource.Size2")));
this.textThemeName.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.textThemeName.CustomButton.TabIndex = ((int)(resources.GetObject("resource.TabIndex2")));
this.textThemeName.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.textThemeName.CustomButton.UseSelectable = true;
this.textThemeName.CustomButton.Visible = ((bool)(resources.GetObject("resource.Visible2")));
this.textThemeName.ForeColor = System.Drawing.Color.White;
this.textThemeName.Lines = new string[0];
resources.ApplyResources(this.textThemeName, "textThemeName");
this.textThemeName.MaxLength = 32767;
this.textThemeName.Name = "textThemeName";
this.textThemeName.PasswordChar = '\0';
this.textThemeName.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.textThemeName.SelectedText = "";
this.textThemeName.SelectionLength = 0;
this.textThemeName.SelectionStart = 0;
this.textThemeName.ShortcutsEnabled = true;
this.textThemeName.Theme = MetroFramework.MetroThemeStyle.Dark;
this.textThemeName.UseSelectable = true;
this.textThemeName.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.textThemeName.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
//
// label4
//
resources.ApplyResources(this.label4, "label4");
this.label4.ForeColor = System.Drawing.Color.White;
this.label4.Name = "label4";
this.label4.Click += new System.EventHandler(this.replaceToolStripMenuItem1_Click);
//
// buttonAnimGen
//
resources.ApplyResources(this.buttonAnimGen, "buttonAnimGen");
this.buttonAnimGen.ForeColor = System.Drawing.Color.White;
this.buttonAnimGen.Name = "buttonAnimGen";
this.buttonAnimGen.UseVisualStyleBackColor = true;
this.buttonAnimGen.Click += new System.EventHandler(this.buttonAnimGen_Click);
//
// capePictureBox
//
resources.ApplyResources(this.capePictureBox, "capePictureBox");
this.capePictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.capePictureBox.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Default;
this.capePictureBox.Name = "capePictureBox";
this.capePictureBox.TabStop = false;
this.capePictureBox.Click += new System.EventHandler(this.replaceToolStripMenuItem1_Click);
//
// skinPictureBoxTexture
//
resources.ApplyResources(this.skinPictureBoxTexture, "skinPictureBoxTexture");
this.skinPictureBoxTexture.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.skinPictureBoxTexture.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Default;
this.skinPictureBoxTexture.Name = "skinPictureBoxTexture";
this.skinPictureBoxTexture.TabStop = false;
this.skinPictureBoxTexture.Click += new System.EventHandler(this.pictureBox1_Click);
//
// addNewSkin
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.buttonAnimGen);
this.Controls.Add(this.label4);
this.Controls.Add(this.textThemeName);
this.Controls.Add(this.textSkinName);
this.Controls.Add(this.textSkinID);
this.Controls.Add(this.radioSERVER);
this.Controls.Add(this.labelSelectTexture);
this.Controls.Add(this.radioLOCAL);
this.Controls.Add(this.radioAUTO);
this.Controls.Add(this.buttonDone);
this.Controls.Add(this.buttonModelGen);
this.Controls.Add(this.buttonCape);
this.Controls.Add(this.buttonSkin);
this.Controls.Add(this.capePictureBox);
this.Controls.Add(this.skinPictureBoxTexture);
this.Controls.Add(this.displayBox);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.MaximizeBox = false;
this.Name = "addNewSkin";
this.Resizable = false;
this.Style = MetroFramework.MetroColorStyle.Silver;
this.Theme = MetroFramework.MetroThemeStyle.Dark;
this.Load += new System.EventHandler(this.addnewskin_Load);
this.contextMenuSkin.ResumeLayout(false);
this.contextMenuCape.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.displayBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.capePictureBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.skinPictureBoxTexture)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
this.contextMenuCape.Name = "contextMenuCape";
resources.ApplyResources(this.contextMenuCape, "contextMenuCape");
//
// replaceToolStripMenuItem1
//
resources.ApplyResources(this.replaceToolStripMenuItem1, "replaceToolStripMenuItem1");
this.replaceToolStripMenuItem1.Name = "replaceToolStripMenuItem1";
this.replaceToolStripMenuItem1.Click += new System.EventHandler(this.replaceToolStripMenuItem1_Click);
//
// buttonDone
//
resources.ApplyResources(this.buttonDone, "buttonDone");
this.buttonDone.ForeColor = System.Drawing.Color.White;
this.buttonDone.Name = "buttonDone";
this.buttonDone.UseVisualStyleBackColor = true;
this.buttonDone.Click += new System.EventHandler(this.CreateButton_Click);
//
// buttonModelGen
//
resources.ApplyResources(this.buttonModelGen, "buttonModelGen");
this.buttonModelGen.ForeColor = System.Drawing.Color.White;
this.buttonModelGen.Name = "buttonModelGen";
this.buttonModelGen.UseVisualStyleBackColor = true;
this.buttonModelGen.Click += new System.EventHandler(this.CreateCustomModel_Click);
//
// buttonCape
//
resources.ApplyResources(this.buttonCape, "buttonCape");
this.buttonCape.Name = "buttonCape";
this.buttonCape.UseVisualStyleBackColor = true;
this.buttonCape.Click += new System.EventHandler(this.buttonCape_Click);
//
// buttonSkin
//
resources.ApplyResources(this.buttonSkin, "buttonSkin");
this.buttonSkin.Name = "buttonSkin";
this.buttonSkin.UseVisualStyleBackColor = true;
this.buttonSkin.Click += new System.EventHandler(this.buttonSkin_Click);
//
// displayBox
//
this.displayBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(13)))), ((int)(((byte)(13)))), ((int)(((byte)(13)))));
resources.ApplyResources(this.displayBox, "displayBox");
this.displayBox.Name = "displayBox";
this.displayBox.TabStop = false;
//
// label3
//
resources.ApplyResources(label3, "label3");
label3.ForeColor = System.Drawing.Color.White;
label3.Name = "label3";
//
// label2
//
resources.ApplyResources(label2, "label2");
label2.ForeColor = System.Drawing.Color.White;
label2.Name = "label2";
//
// label1
//
resources.ApplyResources(label1, "label1");
label1.ForeColor = System.Drawing.Color.White;
label1.Name = "label1";
//
// radioAUTO
//
resources.ApplyResources(this.radioAUTO, "radioAUTO");
this.radioAUTO.ForeColor = System.Drawing.Color.White;
this.radioAUTO.Name = "radioAUTO";
this.radioAUTO.UseVisualStyleBackColor = true;
this.radioAUTO.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
//
// radioLOCAL
//
resources.ApplyResources(this.radioLOCAL, "radioLOCAL");
this.radioLOCAL.Checked = true;
this.radioLOCAL.ForeColor = System.Drawing.Color.White;
this.radioLOCAL.Name = "radioLOCAL";
this.radioLOCAL.TabStop = true;
this.radioLOCAL.UseVisualStyleBackColor = true;
this.radioLOCAL.CheckedChanged += new System.EventHandler(this.radioLOCAL_CheckedChanged);
//
// labelSelectTexture
//
resources.ApplyResources(this.labelSelectTexture, "labelSelectTexture");
this.labelSelectTexture.ForeColor = System.Drawing.Color.White;
this.labelSelectTexture.Name = "labelSelectTexture";
this.labelSelectTexture.Click += new System.EventHandler(this.pictureBox1_Click);
//
// radioSERVER
//
resources.ApplyResources(this.radioSERVER, "radioSERVER");
this.radioSERVER.ForeColor = System.Drawing.Color.White;
this.radioSERVER.Name = "radioSERVER";
this.radioSERVER.UseVisualStyleBackColor = true;
this.radioSERVER.CheckedChanged += new System.EventHandler(this.radioSERVER_CheckedChanged);
//
// textSkinID
//
//
//
//
this.textSkinID.CustomButton.Image = ((System.Drawing.Image)(resources.GetObject("resource.Image")));
this.textSkinID.CustomButton.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("resource.ImeMode")));
this.textSkinID.CustomButton.Location = ((System.Drawing.Point)(resources.GetObject("resource.Location")));
this.textSkinID.CustomButton.Name = "";
this.textSkinID.CustomButton.Size = ((System.Drawing.Size)(resources.GetObject("resource.Size")));
this.textSkinID.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.textSkinID.CustomButton.TabIndex = ((int)(resources.GetObject("resource.TabIndex")));
this.textSkinID.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.textSkinID.CustomButton.UseSelectable = true;
this.textSkinID.CustomButton.Visible = ((bool)(resources.GetObject("resource.Visible")));
this.textSkinID.ForeColor = System.Drawing.Color.White;
this.textSkinID.Lines = new string[0];
resources.ApplyResources(this.textSkinID, "textSkinID");
this.textSkinID.MaxLength = 32767;
this.textSkinID.Name = "textSkinID";
this.textSkinID.PasswordChar = '\0';
this.textSkinID.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.textSkinID.SelectedText = "";
this.textSkinID.SelectionLength = 0;
this.textSkinID.SelectionStart = 0;
this.textSkinID.ShortcutsEnabled = true;
this.textSkinID.Theme = MetroFramework.MetroThemeStyle.Dark;
this.textSkinID.UseSelectable = true;
this.textSkinID.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.textSkinID.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
this.textSkinID.TextChanged += new System.EventHandler(this.textSkinID_TextChanged);
//
// textSkinName
//
//
//
//
this.textSkinName.CustomButton.Image = ((System.Drawing.Image)(resources.GetObject("resource.Image1")));
this.textSkinName.CustomButton.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("resource.ImeMode1")));
this.textSkinName.CustomButton.Location = ((System.Drawing.Point)(resources.GetObject("resource.Location1")));
this.textSkinName.CustomButton.Name = "";
this.textSkinName.CustomButton.Size = ((System.Drawing.Size)(resources.GetObject("resource.Size1")));
this.textSkinName.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.textSkinName.CustomButton.TabIndex = ((int)(resources.GetObject("resource.TabIndex1")));
this.textSkinName.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.textSkinName.CustomButton.UseSelectable = true;
this.textSkinName.CustomButton.Visible = ((bool)(resources.GetObject("resource.Visible1")));
this.textSkinName.ForeColor = System.Drawing.Color.White;
this.textSkinName.Lines = new string[0];
resources.ApplyResources(this.textSkinName, "textSkinName");
this.textSkinName.MaxLength = 32767;
this.textSkinName.Name = "textSkinName";
this.textSkinName.PasswordChar = '\0';
this.textSkinName.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.textSkinName.SelectedText = "";
this.textSkinName.SelectionLength = 0;
this.textSkinName.SelectionStart = 0;
this.textSkinName.ShortcutsEnabled = true;
this.textSkinName.Theme = MetroFramework.MetroThemeStyle.Dark;
this.textSkinName.UseSelectable = true;
this.textSkinName.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.textSkinName.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
//
// textThemeName
//
//
//
//
this.textThemeName.CustomButton.Image = ((System.Drawing.Image)(resources.GetObject("resource.Image2")));
this.textThemeName.CustomButton.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("resource.ImeMode2")));
this.textThemeName.CustomButton.Location = ((System.Drawing.Point)(resources.GetObject("resource.Location2")));
this.textThemeName.CustomButton.Name = "";
this.textThemeName.CustomButton.Size = ((System.Drawing.Size)(resources.GetObject("resource.Size2")));
this.textThemeName.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.textThemeName.CustomButton.TabIndex = ((int)(resources.GetObject("resource.TabIndex2")));
this.textThemeName.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.textThemeName.CustomButton.UseSelectable = true;
this.textThemeName.CustomButton.Visible = ((bool)(resources.GetObject("resource.Visible2")));
this.textThemeName.ForeColor = System.Drawing.Color.White;
this.textThemeName.Lines = new string[0];
resources.ApplyResources(this.textThemeName, "textThemeName");
this.textThemeName.MaxLength = 32767;
this.textThemeName.Name = "textThemeName";
this.textThemeName.PasswordChar = '\0';
this.textThemeName.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.textThemeName.SelectedText = "";
this.textThemeName.SelectionLength = 0;
this.textThemeName.SelectionStart = 0;
this.textThemeName.ShortcutsEnabled = true;
this.textThemeName.Theme = MetroFramework.MetroThemeStyle.Dark;
this.textThemeName.UseSelectable = true;
this.textThemeName.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.textThemeName.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
//
// label4
//
resources.ApplyResources(this.label4, "label4");
this.label4.ForeColor = System.Drawing.Color.White;
this.label4.Name = "label4";
this.label4.Click += new System.EventHandler(this.replaceToolStripMenuItem1_Click);
//
// buttonAnimGen
//
resources.ApplyResources(this.buttonAnimGen, "buttonAnimGen");
this.buttonAnimGen.ForeColor = System.Drawing.Color.White;
this.buttonAnimGen.Name = "buttonAnimGen";
this.buttonAnimGen.UseVisualStyleBackColor = true;
this.buttonAnimGen.Click += new System.EventHandler(this.buttonAnimGen_Click);
//
// capePictureBox
//
resources.ApplyResources(this.capePictureBox, "capePictureBox");
this.capePictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.capePictureBox.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Default;
this.capePictureBox.Name = "capePictureBox";
this.capePictureBox.TabStop = false;
this.capePictureBox.Click += new System.EventHandler(this.replaceToolStripMenuItem1_Click);
//
// skinPictureBoxTexture
//
resources.ApplyResources(this.skinPictureBoxTexture, "skinPictureBoxTexture");
this.skinPictureBoxTexture.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.skinPictureBoxTexture.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Default;
this.skinPictureBoxTexture.Name = "skinPictureBoxTexture";
this.skinPictureBoxTexture.TabStop = false;
this.skinPictureBoxTexture.Click += new System.EventHandler(this.pictureBox1_Click);
//
// addNewSkin
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.buttonAnimGen);
this.Controls.Add(this.label4);
this.Controls.Add(this.textThemeName);
this.Controls.Add(this.textSkinName);
this.Controls.Add(this.textSkinID);
this.Controls.Add(this.radioSERVER);
this.Controls.Add(this.labelSelectTexture);
this.Controls.Add(this.radioLOCAL);
this.Controls.Add(this.radioAUTO);
this.Controls.Add(this.buttonDone);
this.Controls.Add(this.buttonModelGen);
this.Controls.Add(this.buttonCape);
this.Controls.Add(this.buttonSkin);
this.Controls.Add(this.capePictureBox);
this.Controls.Add(this.skinPictureBoxTexture);
this.Controls.Add(this.displayBox);
this.Controls.Add(label3);
this.Controls.Add(label2);
this.Controls.Add(label1);
this.MaximizeBox = false;
this.Name = "addNewSkin";
this.Resizable = false;
this.Style = MetroFramework.MetroColorStyle.Silver;
this.Theme = MetroFramework.MetroThemeStyle.Dark;
this.Load += new System.EventHandler(this.addnewskin_Load);
this.contextMenuSkin.ResumeLayout(false);
this.contextMenuCape.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.displayBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.capePictureBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.skinPictureBoxTexture)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
@@ -357,9 +361,6 @@
private System.Windows.Forms.Button buttonSkin;
private PictureBoxWithInterpolationMode capePictureBox;
private System.Windows.Forms.PictureBox displayBox;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.RadioButton radioAUTO;
private System.Windows.Forms.RadioButton radioLOCAL;
private System.Windows.Forms.Label labelSelectTexture;

View File

@@ -226,7 +226,10 @@ namespace PckStudio
{
int _skinId = -1;
if (!int.TryParse(textSkinID.Text, out _skinId))
{
MessageBox.Show("The Skin ID Must be a Unique 8 Digit Number Thats Not Already in Use", "Invalid Skin ID", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
string skinId = _skinId.ToString("d08");
if (useCape)
{
@@ -274,7 +277,7 @@ namespace PckStudio
Close();
}
private void textSkinID_TextChanged_1(object sender, EventArgs e)
private void textSkinID_TextChanged(object sender, EventArgs e)
{
bool validSkinId = int.TryParse(textSkinID.Text, out _);
textSkinID.ForeColor = validSkinId ? Color.Green : Color.Red;

View File

@@ -137,15 +137,6 @@
<metadata name="contextMenuSkin.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="contextMenuSkin.Size" type="System.Drawing.Size, System.Drawing">
<value>116, 26</value>
</data>
<data name="&gt;&gt;contextMenuSkin.Name" xml:space="preserve">
<value>contextMenuSkin</value>
</data>
<data name="&gt;&gt;contextMenuSkin.Type" xml:space="preserve">
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="replaceToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
@@ -162,18 +153,18 @@
<data name="replaceToolStripMenuItem.Text" xml:space="preserve">
<value>Replace</value>
</data>
<data name="contextMenuSkin.Size" type="System.Drawing.Size, System.Drawing">
<value>116, 26</value>
</data>
<data name="&gt;&gt;contextMenuSkin.Name" xml:space="preserve">
<value>contextMenuSkin</value>
</data>
<data name="&gt;&gt;contextMenuSkin.Type" xml:space="preserve">
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<metadata name="contextMenuCape.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>172, 17</value>
</metadata>
<data name="contextMenuCape.Size" type="System.Drawing.Size, System.Drawing">
<value>127, 26</value>
</data>
<data name="&gt;&gt;contextMenuCape.Name" xml:space="preserve">
<value>contextMenuCape</value>
</data>
<data name="&gt;&gt;contextMenuCape.Type" xml:space="preserve">
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="replaceToolStripMenuItem1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
@@ -188,6 +179,15 @@
<data name="replaceToolStripMenuItem1.Text" xml:space="preserve">
<value>Add Cape</value>
</data>
<data name="contextMenuCape.Size" type="System.Drawing.Size, System.Drawing">
<value>127, 26</value>
</data>
<data name="&gt;&gt;contextMenuCape.Name" xml:space="preserve">
<value>contextMenuCape</value>
</data>
<data name="&gt;&gt;contextMenuCape.Type" xml:space="preserve">
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="buttonDone.Enabled" type="System.Boolean, mscorlib">
<value>False</value>
</data>
@@ -340,6 +340,9 @@
<data name="&gt;&gt;displayBox.ZOrder" xml:space="preserve">
<value>17</value>
</data>
<metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<data name="label3.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
@@ -370,6 +373,9 @@
<data name="&gt;&gt;label3.ZOrder" xml:space="preserve">
<value>18</value>
</data>
<metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<data name="label2.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
@@ -400,6 +406,9 @@
<data name="&gt;&gt;label2.ZOrder" xml:space="preserve">
<value>19</value>
</data>
<metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
@@ -758,7 +767,7 @@
<value>capePictureBox</value>
</data>
<data name="&gt;&gt;capePictureBox.Type" xml:space="preserve">
<value>PckStudio.PictureBoxWithInterpolationMode, PCK Studio, Version=6.5.0.0, Culture=neutral, PublicKeyToken=null</value>
<value>PckStudio.PictureBoxWithInterpolationMode, PCK-Studio, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;capePictureBox.Parent" xml:space="preserve">
<value>$this</value>
@@ -785,7 +794,7 @@
<value>skinPictureBoxTexture</value>
</data>
<data name="&gt;&gt;skinPictureBoxTexture.Type" xml:space="preserve">
<value>PckStudio.PictureBoxWithInterpolationMode, PCK Studio, Version=6.5.0.0, Culture=neutral, PublicKeyToken=null</value>
<value>PckStudio.PictureBoxWithInterpolationMode, PCK-Studio, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;skinPictureBoxTexture.Parent" xml:space="preserve">
<value>$this</value>
@@ -2527,6 +2536,9 @@
AABJRU5ErkJggg==
</value>
</data>
<data name="$this.MinimumSize" type="System.Drawing.Size, System.Drawing">
<value>483, 296</value>
</data>
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterParent</value>
</data>