From 411337143b7fa8afb0d220d3158e38447e0f352a Mon Sep 17 00:00:00 2001 From: Bitl Date: Thu, 2 Sep 2021 12:05:26 -0700 Subject: [PATCH] SDK improvements --- .../SDK/ClientScriptDocumentation.Designer.cs | 8 +- .../Forms/SDK/ItemCreationSDK.Designer.cs | 325 ++++++++++-------- .../Forms/SDK/ItemCreationSDK.cs | 207 +++++++++-- .../Forms/SDK/NovetusSDK.Designer.cs | 14 +- .../NovetusLauncher/Forms/SDK/NovetusSDK.resx | 6 +- changelog.txt | 30 +- 6 files changed, 411 insertions(+), 179 deletions(-) diff --git a/Novetus/NovetusLauncher/Forms/SDK/ClientScriptDocumentation.Designer.cs b/Novetus/NovetusLauncher/Forms/SDK/ClientScriptDocumentation.Designer.cs index 1edf3d1..dfe1ab0 100644 --- a/Novetus/NovetusLauncher/Forms/SDK/ClientScriptDocumentation.Designer.cs +++ b/Novetus/NovetusLauncher/Forms/SDK/ClientScriptDocumentation.Designer.cs @@ -43,6 +43,9 @@ partial class ClientScriptDocumentation // // richTextBox1 // + this.richTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.richTextBox1.BackColor = System.Drawing.SystemColors.ControlLightLight; this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.richTextBox1.Location = new System.Drawing.Point(0, 0); @@ -60,12 +63,11 @@ partial class ClientScriptDocumentation this.BackColor = System.Drawing.SystemColors.ControlLightLight; this.ClientSize = new System.Drawing.Size(648, 337); this.Controls.Add(this.richTextBox1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.MaximizeBox = false; + this.MinimumSize = new System.Drawing.Size(337, 205); this.Name = "ClientScriptDocumentation"; - this.Text = "ClientScript Documentation"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "ClientScript Documentation"; this.Load += new System.EventHandler(this.ClientScriptDocumentationLoad); this.ResumeLayout(false); diff --git a/Novetus/NovetusLauncher/Forms/SDK/ItemCreationSDK.Designer.cs b/Novetus/NovetusLauncher/Forms/SDK/ItemCreationSDK.Designer.cs index 553ce10..637de49 100644 --- a/Novetus/NovetusLauncher/Forms/SDK/ItemCreationSDK.Designer.cs +++ b/Novetus/NovetusLauncher/Forms/SDK/ItemCreationSDK.Designer.cs @@ -33,6 +33,15 @@ partial class ItemCreationSDK this.ItemIconLabel = new System.Windows.Forms.Label(); this.BrowseImageButton = new System.Windows.Forms.Button(); this.ItemSettingsGroup = new System.Windows.Forms.GroupBox(); + this.UsesHatTexLabel = new System.Windows.Forms.Label(); + this.UsesHatTexBox = new System.Windows.Forms.ComboBox(); + this.CoordGroup2 = new System.Windows.Forms.GroupBox(); + this.ZBox2 = new System.Windows.Forms.NumericUpDown(); + this.YBox2 = new System.Windows.Forms.NumericUpDown(); + this.XBox360 = new System.Windows.Forms.NumericUpDown(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); this.UsesHatMeshLabel = new System.Windows.Forms.Label(); this.UsesHatMeshBox = new System.Windows.Forms.ComboBox(); this.MeshOptionsGroup = new System.Windows.Forms.GroupBox(); @@ -69,14 +78,12 @@ partial class ItemCreationSDK this.DescBox = new System.Windows.Forms.TextBox(); this.ItemNameLabel = new System.Windows.Forms.Label(); this.ItemNameBox = new System.Windows.Forms.TextBox(); - this.CoordGroup2 = new System.Windows.Forms.GroupBox(); - this.ZBox2 = new System.Windows.Forms.NumericUpDown(); - this.YBox2 = new System.Windows.Forms.NumericUpDown(); - this.XBox360 = new System.Windows.Forms.NumericUpDown(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); + this.Warning = new System.Windows.Forms.Label(); this.ItemSettingsGroup.SuspendLayout(); + this.CoordGroup2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.ZBox2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.YBox2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.XBox360)).BeginInit(); this.MeshOptionsGroup.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.LODYBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.LODXBox)).BeginInit(); @@ -88,10 +95,6 @@ partial class ItemCreationSDK ((System.ComponentModel.ISupportInitialize)(this.YBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.XBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ItemIcon)).BeginInit(); - this.CoordGroup2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.ZBox2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.YBox2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.XBox360)).BeginInit(); this.SuspendLayout(); // // ItemTypeListBox @@ -143,6 +146,8 @@ partial class ItemCreationSDK // // ItemSettingsGroup // + this.ItemSettingsGroup.Controls.Add(this.UsesHatTexLabel); + this.ItemSettingsGroup.Controls.Add(this.UsesHatTexBox); this.ItemSettingsGroup.Controls.Add(this.CoordGroup2); this.ItemSettingsGroup.Controls.Add(this.UsesHatMeshLabel); this.ItemSettingsGroup.Controls.Add(this.UsesHatMeshBox); @@ -156,15 +161,147 @@ partial class ItemCreationSDK this.ItemSettingsGroup.Controls.Add(this.Option1Label); this.ItemSettingsGroup.Location = new System.Drawing.Point(305, 12); this.ItemSettingsGroup.Name = "ItemSettingsGroup"; - this.ItemSettingsGroup.Size = new System.Drawing.Size(276, 522); + this.ItemSettingsGroup.Size = new System.Drawing.Size(276, 571); this.ItemSettingsGroup.TabIndex = 5; this.ItemSettingsGroup.TabStop = false; this.ItemSettingsGroup.Text = "Item Settings"; // + // UsesHatTexLabel + // + this.UsesHatTexLabel.AutoSize = true; + this.UsesHatTexLabel.Location = new System.Drawing.Point(5, 143); + this.UsesHatTexLabel.Name = "UsesHatTexLabel"; + this.UsesHatTexLabel.Size = new System.Drawing.Size(114, 13); + this.UsesHatTexLabel.TabIndex = 21; + this.UsesHatTexLabel.Text = "This option is disabled."; + // + // UsesHatTexBox + // + this.UsesHatTexBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.UsesHatTexBox.Enabled = false; + this.UsesHatTexBox.FormattingEnabled = true; + this.UsesHatTexBox.Location = new System.Drawing.Point(7, 159); + this.UsesHatTexBox.Name = "UsesHatTexBox"; + this.UsesHatTexBox.Size = new System.Drawing.Size(264, 21); + this.UsesHatTexBox.TabIndex = 20; + this.UsesHatTexBox.SelectedIndexChanged += new System.EventHandler(this.UsesHatTexBox_SelectedIndexChanged); + // + // CoordGroup2 + // + this.CoordGroup2.Controls.Add(this.ZBox2); + this.CoordGroup2.Controls.Add(this.YBox2); + this.CoordGroup2.Controls.Add(this.XBox360); + this.CoordGroup2.Controls.Add(this.label1); + this.CoordGroup2.Controls.Add(this.label2); + this.CoordGroup2.Controls.Add(this.label3); + this.CoordGroup2.Enabled = false; + this.CoordGroup2.Location = new System.Drawing.Point(7, 291); + this.CoordGroup2.Name = "CoordGroup2"; + this.CoordGroup2.Size = new System.Drawing.Size(263, 90); + this.CoordGroup2.TabIndex = 19; + this.CoordGroup2.TabStop = false; + this.CoordGroup2.Text = "This option is disabled."; + // + // ZBox2 + // + this.ZBox2.DecimalPlaces = 6; + this.ZBox2.Location = new System.Drawing.Point(27, 65); + this.ZBox2.Maximum = new decimal(new int[] { + 1661992959, + 1808227885, + 5, + 0}); + this.ZBox2.Minimum = new decimal(new int[] { + 1661992959, + 1808227885, + 5, + -2147483648}); + this.ZBox2.Name = "ZBox2"; + this.ZBox2.Size = new System.Drawing.Size(230, 20); + this.ZBox2.TabIndex = 5; + this.ZBox2.Value = new decimal(new int[] { + 1, + 0, + 0, + 0}); + // + // YBox2 + // + this.YBox2.DecimalPlaces = 6; + this.YBox2.Location = new System.Drawing.Point(27, 39); + this.YBox2.Maximum = new decimal(new int[] { + 1661992959, + 1808227885, + 5, + 0}); + this.YBox2.Minimum = new decimal(new int[] { + 1661992959, + 1808227885, + 5, + -2147483648}); + this.YBox2.Name = "YBox2"; + this.YBox2.Size = new System.Drawing.Size(230, 20); + this.YBox2.TabIndex = 4; + this.YBox2.Value = new decimal(new int[] { + 1, + 0, + 0, + 0}); + // + // XBox360 + // + this.XBox360.DecimalPlaces = 6; + this.XBox360.Location = new System.Drawing.Point(27, 14); + this.XBox360.Maximum = new decimal(new int[] { + 1661992959, + 1808227885, + 5, + 0}); + this.XBox360.Minimum = new decimal(new int[] { + 1661992959, + 1808227885, + 5, + -2147483648}); + this.XBox360.Name = "XBox360"; + this.XBox360.Size = new System.Drawing.Size(230, 20); + this.XBox360.TabIndex = 3; + this.XBox360.Value = new decimal(new int[] { + 1, + 0, + 0, + 0}); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(6, 67); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(14, 13); + this.label1.TabIndex = 2; + this.label1.Text = "Z"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(7, 41); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(14, 13); + this.label2.TabIndex = 1; + this.label2.Text = "Y"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(7, 16); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(14, 13); + this.label3.TabIndex = 0; + this.label3.Text = "X"; + // // UsesHatMeshLabel // this.UsesHatMeshLabel.AutoSize = true; - this.UsesHatMeshLabel.Location = new System.Drawing.Point(4, 60); + this.UsesHatMeshLabel.Location = new System.Drawing.Point(5, 64); this.UsesHatMeshLabel.Name = "UsesHatMeshLabel"; this.UsesHatMeshLabel.Size = new System.Drawing.Size(114, 13); this.UsesHatMeshLabel.TabIndex = 18; @@ -175,7 +312,7 @@ partial class ItemCreationSDK this.UsesHatMeshBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.UsesHatMeshBox.Enabled = false; this.UsesHatMeshBox.FormattingEnabled = true; - this.UsesHatMeshBox.Location = new System.Drawing.Point(6, 76); + this.UsesHatMeshBox.Location = new System.Drawing.Point(7, 80); this.UsesHatMeshBox.Name = "UsesHatMeshBox"; this.UsesHatMeshBox.Size = new System.Drawing.Size(264, 21); this.UsesHatMeshBox.TabIndex = 17; @@ -198,7 +335,7 @@ partial class ItemCreationSDK this.MeshOptionsGroup.Controls.Add(this.RoundnessLabel); this.MeshOptionsGroup.Controls.Add(this.BevelLabel); this.MeshOptionsGroup.Enabled = false; - this.MeshOptionsGroup.Location = new System.Drawing.Point(7, 334); + this.MeshOptionsGroup.Location = new System.Drawing.Point(7, 386); this.MeshOptionsGroup.Name = "MeshOptionsGroup"; this.MeshOptionsGroup.Size = new System.Drawing.Size(263, 179); this.MeshOptionsGroup.TabIndex = 7; @@ -410,7 +547,7 @@ partial class ItemCreationSDK this.CoordGroup.Controls.Add(this.YLabel); this.CoordGroup.Controls.Add(this.XLabel); this.CoordGroup.Enabled = false; - this.CoordGroup.Location = new System.Drawing.Point(7, 142); + this.CoordGroup.Location = new System.Drawing.Point(7, 195); this.CoordGroup.Name = "CoordGroup"; this.CoordGroup.Size = new System.Drawing.Size(263, 90); this.CoordGroup.TabIndex = 6; @@ -517,7 +654,7 @@ partial class ItemCreationSDK // this.Option2BrowseButton.Enabled = false; this.Option2BrowseButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.Option2BrowseButton.Location = new System.Drawing.Point(214, 116); + this.Option2BrowseButton.Location = new System.Drawing.Point(215, 120); this.Option2BrowseButton.Name = "Option2BrowseButton"; this.Option2BrowseButton.Size = new System.Drawing.Size(56, 20); this.Option2BrowseButton.TabIndex = 5; @@ -527,7 +664,7 @@ partial class ItemCreationSDK // // Option2TextBox // - this.Option2TextBox.Location = new System.Drawing.Point(6, 116); + this.Option2TextBox.Location = new System.Drawing.Point(7, 120); this.Option2TextBox.Name = "Option2TextBox"; this.Option2TextBox.ReadOnly = true; this.Option2TextBox.Size = new System.Drawing.Size(202, 20); @@ -536,7 +673,7 @@ partial class ItemCreationSDK // Option2Label // this.Option2Label.AutoSize = true; - this.Option2Label.Location = new System.Drawing.Point(4, 100); + this.Option2Label.Location = new System.Drawing.Point(5, 104); this.Option2Label.Name = "Option2Label"; this.Option2Label.Size = new System.Drawing.Size(114, 13); this.Option2Label.TabIndex = 3; @@ -546,7 +683,7 @@ partial class ItemCreationSDK // this.Option1BrowseButton.Enabled = false; this.Option1BrowseButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.Option1BrowseButton.Location = new System.Drawing.Point(214, 37); + this.Option1BrowseButton.Location = new System.Drawing.Point(215, 41); this.Option1BrowseButton.Name = "Option1BrowseButton"; this.Option1BrowseButton.Size = new System.Drawing.Size(56, 20); this.Option1BrowseButton.TabIndex = 2; @@ -556,7 +693,7 @@ partial class ItemCreationSDK // // Option1TextBox // - this.Option1TextBox.Location = new System.Drawing.Point(7, 37); + this.Option1TextBox.Location = new System.Drawing.Point(8, 41); this.Option1TextBox.Name = "Option1TextBox"; this.Option1TextBox.ReadOnly = true; this.Option1TextBox.Size = new System.Drawing.Size(201, 20); @@ -565,7 +702,7 @@ partial class ItemCreationSDK // Option1Label // this.Option1Label.AutoSize = true; - this.Option1Label.Location = new System.Drawing.Point(4, 21); + this.Option1Label.Location = new System.Drawing.Point(5, 25); this.Option1Label.Name = "Option1Label"; this.Option1Label.Size = new System.Drawing.Size(114, 13); this.Option1Label.TabIndex = 0; @@ -573,7 +710,7 @@ partial class ItemCreationSDK // // CreateItemButton // - this.CreateItemButton.Location = new System.Drawing.Point(12, 511); + this.CreateItemButton.Location = new System.Drawing.Point(11, 560); this.CreateItemButton.Name = "CreateItemButton"; this.CreateItemButton.Size = new System.Drawing.Size(288, 23); this.CreateItemButton.TabIndex = 6; @@ -594,7 +731,7 @@ partial class ItemCreationSDK // ItemDescLabel // this.ItemDescLabel.AutoSize = true; - this.ItemDescLabel.Location = new System.Drawing.Point(87, 96); + this.ItemDescLabel.Location = new System.Drawing.Point(87, 118); this.ItemDescLabel.Name = "ItemDescLabel"; this.ItemDescLabel.Size = new System.Drawing.Size(131, 13); this.ItemDescLabel.TabIndex = 7; @@ -602,10 +739,10 @@ partial class ItemCreationSDK // // DescBox // - this.DescBox.Location = new System.Drawing.Point(12, 112); + this.DescBox.Location = new System.Drawing.Point(11, 134); this.DescBox.Multiline = true; this.DescBox.Name = "DescBox"; - this.DescBox.Size = new System.Drawing.Size(288, 393); + this.DescBox.Size = new System.Drawing.Size(288, 420); this.DescBox.TabIndex = 8; // // ItemNameLabel @@ -623,125 +760,25 @@ partial class ItemCreationSDK this.ItemNameBox.Name = "ItemNameBox"; this.ItemNameBox.Size = new System.Drawing.Size(134, 20); this.ItemNameBox.TabIndex = 10; + this.ItemNameBox.TextChanged += new System.EventHandler(this.ItemNameBox_TextChanged); // - // CoordGroup2 + // Warning // - this.CoordGroup2.Controls.Add(this.ZBox2); - this.CoordGroup2.Controls.Add(this.YBox2); - this.CoordGroup2.Controls.Add(this.XBox360); - this.CoordGroup2.Controls.Add(this.label1); - this.CoordGroup2.Controls.Add(this.label2); - this.CoordGroup2.Controls.Add(this.label3); - this.CoordGroup2.Enabled = false; - this.CoordGroup2.Location = new System.Drawing.Point(7, 238); - this.CoordGroup2.Name = "CoordGroup2"; - this.CoordGroup2.Size = new System.Drawing.Size(263, 90); - this.CoordGroup2.TabIndex = 19; - this.CoordGroup2.TabStop = false; - this.CoordGroup2.Text = "This option is disabled."; - // - // ZBox2 - // - this.ZBox2.DecimalPlaces = 6; - this.ZBox2.Location = new System.Drawing.Point(27, 65); - this.ZBox2.Maximum = new decimal(new int[] { - 1661992959, - 1808227885, - 5, - 0}); - this.ZBox2.Minimum = new decimal(new int[] { - 1661992959, - 1808227885, - 5, - -2147483648}); - this.ZBox2.Name = "ZBox2"; - this.ZBox2.Size = new System.Drawing.Size(230, 20); - this.ZBox2.TabIndex = 5; - this.ZBox2.Value = new decimal(new int[] { - 1, - 0, - 0, - 0}); - // - // YBox2 - // - this.YBox2.DecimalPlaces = 6; - this.YBox2.Location = new System.Drawing.Point(27, 39); - this.YBox2.Maximum = new decimal(new int[] { - 1661992959, - 1808227885, - 5, - 0}); - this.YBox2.Minimum = new decimal(new int[] { - 1661992959, - 1808227885, - 5, - -2147483648}); - this.YBox2.Name = "YBox2"; - this.YBox2.Size = new System.Drawing.Size(230, 20); - this.YBox2.TabIndex = 4; - this.YBox2.Value = new decimal(new int[] { - 1, - 0, - 0, - 0}); - // - // XBox360 - // - this.XBox360.DecimalPlaces = 6; - this.XBox360.Location = new System.Drawing.Point(27, 14); - this.XBox360.Maximum = new decimal(new int[] { - 1661992959, - 1808227885, - 5, - 0}); - this.XBox360.Minimum = new decimal(new int[] { - 1661992959, - 1808227885, - 5, - -2147483648}); - this.XBox360.Name = "XBox360"; - this.XBox360.Size = new System.Drawing.Size(230, 20); - this.XBox360.TabIndex = 3; - this.XBox360.Value = new decimal(new int[] { - 1, - 0, - 0, - 0}); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(6, 67); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(14, 13); - this.label1.TabIndex = 2; - this.label1.Text = "Z"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(7, 41); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(14, 13); - this.label2.TabIndex = 1; - this.label2.Text = "Y"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(7, 16); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(14, 13); - this.label3.TabIndex = 0; - this.label3.Text = "X"; + this.Warning.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Warning.ForeColor = System.Drawing.Color.Red; + this.Warning.Location = new System.Drawing.Point(11, 88); + this.Warning.Name = "Warning"; + this.Warning.Size = new System.Drawing.Size(289, 30); + this.Warning.TabIndex = 11; + this.Warning.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // ItemCreationSDK // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.ClientSize = new System.Drawing.Size(585, 539); + this.ClientSize = new System.Drawing.Size(585, 595); + this.Controls.Add(this.Warning); this.Controls.Add(this.ItemNameBox); this.Controls.Add(this.ItemNameLabel); this.Controls.Add(this.DescBox); @@ -755,12 +792,18 @@ partial class ItemCreationSDK this.Controls.Add(this.ItemTypeListBox); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MaximizeBox = false; this.Name = "ItemCreationSDK"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Novetus Item Creation SDK"; this.Load += new System.EventHandler(this.ItemCreationSDK_Load); this.ItemSettingsGroup.ResumeLayout(false); this.ItemSettingsGroup.PerformLayout(); + this.CoordGroup2.ResumeLayout(false); + this.CoordGroup2.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.ZBox2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.YBox2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.XBox360)).EndInit(); this.MeshOptionsGroup.ResumeLayout(false); this.MeshOptionsGroup.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.LODYBox)).EndInit(); @@ -774,11 +817,6 @@ partial class ItemCreationSDK ((System.ComponentModel.ISupportInitialize)(this.YBox)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.XBox)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ItemIcon)).EndInit(); - this.CoordGroup2.ResumeLayout(false); - this.CoordGroup2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.ZBox2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.YBox2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.XBox360)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -834,4 +872,7 @@ partial class ItemCreationSDK private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label UsesHatTexLabel; + private System.Windows.Forms.ComboBox UsesHatTexBox; + private System.Windows.Forms.Label Warning; } \ No newline at end of file diff --git a/Novetus/NovetusLauncher/Forms/SDK/ItemCreationSDK.cs b/Novetus/NovetusLauncher/Forms/SDK/ItemCreationSDK.cs index ad59d33..aa59e70 100644 --- a/Novetus/NovetusLauncher/Forms/SDK/ItemCreationSDK.cs +++ b/Novetus/NovetusLauncher/Forms/SDK/ItemCreationSDK.cs @@ -89,11 +89,41 @@ public partial class ItemCreationSDK : Form } } } + + private void ItemNameBox_TextChanged(object sender, EventArgs e) + { + string iconpath = GetPathForType(type) + "\\" + ItemNameBox.Text.Replace(" ", "") + ".png"; + + string warningtext = ""; + + if (File.Exists(GetPathForType(type) + "\\" + ItemNameBox.Text.Replace(" ", "") + ".rbxm")) + { + warningtext = "Warning: This item already exists. Your item will not be created with this name."; + } + + if (File.Exists(iconpath)) + { + Image icon1 = GlobalFuncs.LoadImage(iconpath); + ItemIcon.Image = icon1; + } + else + { + ItemIcon.Image = null; + } + + Warning.Text = warningtext; + } + private void ItemTypeListBox_SelectedIndexChanged(object sender, EventArgs e) { - string previconpath = GetPathForType(type) + "\\" + ItemNameBox.Text.Replace(" ", "") + ".png"; + string itempath = GetPathForType(type) + "\\" + ItemNameBox.Text.Replace(" ", "") + ".png"; + string previconpath = itempath + ".png"; + string rbxmpath = itempath + ".rbxm"; - GlobalFuncs.FixedFileDelete(previconpath); + if (File.Exists(previconpath) && !File.Exists(rbxmpath)) + { + GlobalFuncs.FixedFileDelete(previconpath); + } type = GetTypeForInt(ItemTypeListBox.SelectedIndex); @@ -104,6 +134,7 @@ public partial class ItemCreationSDK : Form Option1Path = ""; Option1Required = true; ToggleHatMeshBox("Uses Existing Hat Mesh"); + ToggleHatTextureBox("Uses Existing Hat Texture"); ToggleOptionSet(Option2Label, Option2TextBox, Option2BrowseButton, "Hat Texture", true); Option2Path = ""; Option2Required = true; @@ -122,6 +153,7 @@ public partial class ItemCreationSDK : Form Option1Path = ""; Option1Required = false; ToggleHatMeshBox("", false); + ToggleHatTextureBox("", false); ToggleOptionSet(Option2Label, Option2TextBox, Option2BrowseButton, "", false, false); Option2Path = ""; Option2Required = false; @@ -136,6 +168,7 @@ public partial class ItemCreationSDK : Form Option1Path = ""; Option1Required = true; ToggleHatMeshBox("", false); + ToggleHatTextureBox("", false); ToggleOptionSet(Option2Label, Option2TextBox, Option2BrowseButton, "Head Texture", true); Option2Path = ""; Option2Required = true; @@ -154,6 +187,7 @@ public partial class ItemCreationSDK : Form Option1Path = ""; Option1Required = false; ToggleHatMeshBox("", false); + ToggleHatTextureBox("", false); ToggleOptionSet(Option2Label, Option2TextBox, Option2BrowseButton, "", false, false); Option2Path = ""; Option2Required = false; @@ -168,6 +202,7 @@ public partial class ItemCreationSDK : Form Option1Path = ""; Option1Required = false; ToggleHatMeshBox("", false); + ToggleHatTextureBox("", false); ToggleOptionSet(Option2Label, Option2TextBox, Option2BrowseButton, "", false, false); Option2Path = ""; Option2Required = false; @@ -182,6 +217,7 @@ public partial class ItemCreationSDK : Form Option1Path = ""; Option1Required = true; ToggleHatMeshBox("", false); + ToggleHatTextureBox("", false); ToggleOptionSet(Option2Label, Option2TextBox, Option2BrowseButton, "", false, false); Option2Path = ""; Option2Required = false; @@ -198,6 +234,7 @@ public partial class ItemCreationSDK : Form Option1Path = ""; Option1Required = true; ToggleHatMeshBox("", false); + ToggleHatTextureBox("", false); ToggleOptionSet(Option2Label, Option2TextBox, Option2BrowseButton, "", false, false); Option2Path = ""; Option2Required = false; @@ -290,12 +327,34 @@ public partial class ItemCreationSDK : Form if (UsesHatMeshBox.SelectedItem.ToString() != "None") { Option1TextBox.Text = UsesHatMeshBox.Text; + Option1TextBox.Enabled = false; + Option1BrowseButton.Enabled = false; } else { + Option1TextBox.Enabled = true; + Option1BrowseButton.Enabled = true; Option1TextBox.Text = ""; } } + + private void UsesHatTexBox_SelectedIndexChanged(object sender, EventArgs e) + { + Option2Path = ""; + + if (UsesHatTexBox.SelectedItem.ToString() != "None") + { + Option2TextBox.Text = UsesHatTexBox.Text; + Option2TextBox.Enabled = false; + Option2BrowseButton.Enabled = false; + } + else + { + Option2TextBox.Enabled = true; + Option2BrowseButton.Enabled = true; + Option2TextBox.Text = ""; + } + } #endregion #region Functions @@ -505,6 +564,28 @@ public partial class ItemCreationSDK : Form } } + public static string[] GetOptionPathsForType(RobloxFileType type) + { + switch (type) + { + case RobloxFileType.Hat: + return RobloxDefs.ItemHatFonts.Dir; + case RobloxFileType.HeadNoCustomMesh: + case RobloxFileType.Head: + return RobloxDefs.ItemHeadFonts.Dir; + case RobloxFileType.Face: + return RobloxDefs.ItemFaceTexture.Dir; + case RobloxFileType.TShirt: + return RobloxDefs.ItemTShirtTexture.Dir; + case RobloxFileType.Shirt: + return RobloxDefs.ItemShirtTexture.Dir; + case RobloxFileType.Pants: + return RobloxDefs.ItemPantsTexture.Dir; + default: + return null; + } + } + public static RobloxFileType GetTypeForInt(int type) { switch (type) @@ -650,6 +731,34 @@ public partial class ItemCreationSDK : Form } } + private void ToggleHatTextureBox(string labelText, bool enable = true) + { + UsesHatTexLabel.Text = enable ? labelText : (string.IsNullOrWhiteSpace(labelText) ? "This option is disabled." : labelText); + UsesHatTexBox.Enabled = enable; + + if (enable && Directory.Exists(GlobalPaths.hatdirTextures)) + { + UsesHatTexBox.Items.Add("None"); + DirectoryInfo dinfo = new DirectoryInfo(GlobalPaths.hatdirTextures); + FileInfo[] Files = dinfo.GetFiles("*.png"); + foreach (FileInfo file in Files) + { + if (file.Name.Equals(string.Empty)) + { + continue; + } + + UsesHatTexBox.Items.Add(file.Name); + } + + UsesHatTexBox.SelectedItem = "None"; + } + else + { + UsesHatTexBox.Items.Clear(); + } + } + private string LoadAsset(string assetName, string assetFilter) { openFileDialog1 = new OpenFileDialog() @@ -671,42 +780,95 @@ public partial class ItemCreationSDK : Form private bool CheckItemRequirements() { - string msgboxtext = "The Item Creation SDK has experienced an error: You are missing some requirements:\n"; + string msgboxtext = "Some issues have been found with your item:\n"; bool passed = true; + bool itemExists = false; if (string.IsNullOrWhiteSpace(ItemNameBox.Text)) { msgboxtext += "\n - You must assign an item name."; passed = false; } - - if (ItemIcon.Image == null) + else { - msgboxtext += "\n - You must assign an icon."; - - if (RequiresIconForTexture && ItemIcon.Image == null) + if(File.Exists(GetPathForType(type) + "\\" + ItemNameBox.Text.Replace(" ", "") + ".rbxm")) { - msgboxtext += " This item type requires that you must select an Icon to use as a Template or Texture."; + msgboxtext += "\n - The item already exists."; + passed = false; + itemExists = true; + } + } + + if (!itemExists) + { + if (ItemIcon.Image == null) + { + msgboxtext += "\n - You must assign an icon."; + + if (RequiresIconForTexture && ItemIcon.Image == null) + { + msgboxtext += " This item type requires that you must select an Icon to use as a Template or Texture."; + } + + passed = false; } - passed = false; - } + if (Option1Required) + { + if (string.IsNullOrWhiteSpace(Option1TextBox.Text)) + { + msgboxtext += "\n - You must assign a " + Option1Label.Text + "."; + passed = false; + } + else + { + if (string.IsNullOrWhiteSpace(UsesHatTexBox.Text) || UsesHatMeshBox.Text == "None") + { + if (!File.Exists(Option1Path)) + { + msgboxtext += "\n - The file assigned as a " + Option1Label.Text + " does not exist. Please rebrowse for the file again."; + passed = false; + } - if (Option1Required && string.IsNullOrWhiteSpace(Option1TextBox.Text)) - { - msgboxtext += "\n - You must assign a " + Option1Label.Text + "."; - passed = false; - } + if (File.Exists(GetOptionPathsForType(type)[0] + "\\" + Option1TextBox.Text)) + { + msgboxtext += "\n - The file assigned as a " + Option1Label.Text + " already exists. Please find an alternate file."; + passed = false; + } + } + } + } - if (Option2Required && string.IsNullOrWhiteSpace(Option2TextBox.Text)) - { - msgboxtext += "\n - You must assign a " + Option2Label.Text + "."; - passed = false; + if (Option2Required) + { + if (string.IsNullOrWhiteSpace(Option2TextBox.Text)) + { + msgboxtext += "\n - You must assign a " + Option2Label.Text + "."; + passed = false; + } + else + { + if (string.IsNullOrWhiteSpace(UsesHatTexBox.Text) || UsesHatTexBox.Text == "None") + { + if (!File.Exists(Option2Path)) + { + msgboxtext += "\n - The file assigned as a " + Option2Label.Text + " does not exist. Please rebrowse for the file again."; + passed = false; + } + + if (File.Exists(GetOptionPathsForType(type)[1] + "\\" + Option2TextBox.Text)) + { + msgboxtext += "\n - The file assigned as a " + Option2Label.Text + " already exists. Please find an alternate file."; + passed = false; + } + } + } + } } if (!passed) { - msgboxtext += "\n\nThese requirements must be fullfiled before the item can be created."; + msgboxtext += "\n\nThese issues must be fixed before the item can be created."; MessageBox.Show(msgboxtext, "Novetus Item Creation SDK - Requirements", MessageBoxButtons.OK, MessageBoxIcon.Error); } @@ -714,4 +876,5 @@ public partial class ItemCreationSDK : Form } #endregion } -#endregion \ No newline at end of file +#endregion + diff --git a/Novetus/NovetusLauncher/Forms/SDK/NovetusSDK.Designer.cs b/Novetus/NovetusLauncher/Forms/SDK/NovetusSDK.Designer.cs index 1dcc5bf..398ad54 100644 --- a/Novetus/NovetusLauncher/Forms/SDK/NovetusSDK.Designer.cs +++ b/Novetus/NovetusLauncher/Forms/SDK/NovetusSDK.Designer.cs @@ -58,9 +58,9 @@ // // label1 // - this.label1.Location = new System.Drawing.Point(12, 302); + this.label1.Location = new System.Drawing.Point(12, 329); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(260, 16); + this.label1.Size = new System.Drawing.Size(414, 16); this.label1.TabIndex = 12; this.label1.Text = "v1.0"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -71,7 +71,7 @@ this.pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.pictureBox2.Location = new System.Drawing.Point(12, 12); this.pictureBox2.Name = "pictureBox2"; - this.pictureBox2.Size = new System.Drawing.Size(260, 52); + this.pictureBox2.Size = new System.Drawing.Size(414, 84); this.pictureBox2.TabIndex = 8; this.pictureBox2.TabStop = false; // @@ -91,9 +91,9 @@ listViewItem8, listViewItem9, listViewItem10}); - this.listView1.Location = new System.Drawing.Point(12, 70); + this.listView1.Location = new System.Drawing.Point(12, 102); this.listView1.Name = "listView1"; - this.listView1.Size = new System.Drawing.Size(260, 229); + this.listView1.Size = new System.Drawing.Size(414, 224); this.listView1.SmallImageList = this.imageList1; this.listView1.TabIndex = 15; this.listView1.UseCompatibleStateImageBehavior = false; @@ -103,7 +103,7 @@ // columnHeader1 // this.columnHeader1.Text = "Novetus SDK Tools"; - this.columnHeader1.Width = 256; + this.columnHeader1.Width = 410; // // imageList1 // @@ -125,7 +125,7 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.ClientSize = new System.Drawing.Size(284, 326); + this.ClientSize = new System.Drawing.Size(438, 354); this.Controls.Add(this.listView1); this.Controls.Add(this.label1); this.Controls.Add(this.pictureBox2); diff --git a/Novetus/NovetusLauncher/Forms/SDK/NovetusSDK.resx b/Novetus/NovetusLauncher/Forms/SDK/NovetusSDK.resx index cf8a43f..c02f628 100644 --- a/Novetus/NovetusLauncher/Forms/SDK/NovetusSDK.resx +++ b/Novetus/NovetusLauncher/Forms/SDK/NovetusSDK.resx @@ -125,7 +125,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAU - EwAAAk1TRnQBSQFMAgEBCgEAARABAAEQAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo + EwAAAk1TRnQBSQFMAgEBCgEAARgBAAEYAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo AwABQAMAATADAAEBAQABCAYAAQwYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA @@ -153,8 +153,8 @@ AcwBAAH/AZkB/wEAAf8BzAIAAf8BzAEzAQAB/wHMAWYBAAH/AcwBmQEAAf8CzAEAAf8BzAH/AQAC/wEz AQABzAH/AWYBAAL/AZkBAAL/AcwBAAJmAf8BAAFmAf8BZgEAAWYC/wEAAf8CZgEAAf8BZgH/AQAC/wFm AQABIQEAAaUBAANfAQADdwEAA4YBAAOWAQADywEAA7IBAAPXAQAD3QEAA+MBAAPqAQAD8QEAA/gBAAHw - AfsB/wEAAaQCoAEAA4ADAAH/AgAB/wMAAv8BAAH/AwAB/wEAAf8BAAL/AgAD/0UABLMBrQHHAQAFrQHu - BLUKtAG8JAACrAKzAscBAALHAq0BxwG0AbwM8AHuAbQmAAGtAbQBrAHHAgABxwKtAccBtAXyAfAB8gX/ + AfsB/wEAAaQCoAEAA4ADAAH/AgAB/wMAAv8BAAH/AwAB/wEAAf8BAAL/AgAD/0UABLMBrQHHAQAFrQG8 + BLUKtAG8JAACrAKzAscBAALHAq0BxwG0AbwM8AG8AbQmAAGtAbQBrAHHAgABxwKtAccBtAXyAfAB8gX/ AfQB8AGRJgABrAGtAbMBrQGsAccBrQG0Aa0BxwG0AfIDtQLwAfIG/wHxAbQnAAGsA7QBswK0Aa0BxwG0 AfMDCQHyAfABvAfxAbQgAAG7AQkBuwG0AQABxwG0AQkCtAGsAQABrAG0Aa0BAAG0BfMB8gjxAbQgAAGt AbQBCQGtAgABxwK0ArMCrAG0Aa0BAAG0AfME9AHyAfMG9AHyAbQgAAKtAQkBswKtAccBCQG0Aa0BtAGz diff --git a/changelog.txt b/changelog.txt index 5994cf4..a921efa 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,9 +2,35 @@ Changes from 1.3 Pre-Release 3: - Renamed NovetusLauncher to NovetusBootstrapper. - Added hat mesh scaling to the Item Creation SDK. +- Added more requirement checks to the Item Creation SDK. +- Added the option to choose a built-in texture for a hat in the Item Creation SDK. +- When you choose a built-in mesh or texture for your hat in the Item Creation SDK, it will now disable the fields for the option it replaces. +- Fixed a bug where you can delete icons that already exist for items in the Item Creation SDK. +- Changing the name of the item to one that already exists will now load the icon of the item in the Item Creation SDK. +- Redesigned the Novetus SDK launcher. +- You can now resize the ClientScript Documentation. +- Added a warning that tells you if an item already exists in the Item Creation SDK. - Added the following items: -Hats: -BIG Inverted Top Hat +Pants: +Amber Wizard Robes +Blue Skater Pants +Coke Vending Machine +Crystal Pants +Foil Pants +Golden Wizard Robes +Green Skater Pants +Red Skater Pants +Robes of Dawn Spark +Robes of Pure Silver +Robes of Sacred Fire +Robes of Sheer Thaw +Robes of Toxcicity +Shiny Pants +Sunset Wizard Robes +Thaw Wizard Robes +The Golden Finoob +Wizard Robes Noir +Wood Pants Changes from 1.2.4.1: - The OBJ2MeshV1GUI, The Asset Localizer, and the Item SDK have been merged to form the Asset SDK! - Works with the Roblox Asset Delivery API! Note: Script assetss wil have to be downloaded manually in order to be used in scripts.