From 4023865b41c084c94807379b6f0b81b958e4d6bf Mon Sep 17 00:00:00 2001 From: Bitl Date: Thu, 12 Mar 2020 19:20:02 -0700 Subject: [PATCH] more 1.1 stuffs! --- .../NovetusFuncs/TreeNodeHelper.cs | 20 +- .../CharacterCustomization.Designer.cs | 171 ++++++- .../NovetusLauncher/CharacterCustomization.cs | 439 ++++++++++++++++-- .../NovetusLauncher/MainForm.Designer.cs | 204 ++++---- NovetusLauncher/NovetusLauncher/MainForm.cs | 85 +++- 5 files changed, 766 insertions(+), 153 deletions(-) diff --git a/NovetusLauncher/NovetusFuncs/TreeNodeHelper.cs b/NovetusLauncher/NovetusFuncs/TreeNodeHelper.cs index 8a1e8c2..35d6fb3 100644 --- a/NovetusLauncher/NovetusFuncs/TreeNodeHelper.cs +++ b/NovetusLauncher/NovetusFuncs/TreeNodeHelper.cs @@ -15,21 +15,21 @@ using System.Linq; public static class TreeNodeHelper { - public static void ListDirectory(TreeView treeView, string path) + public static void ListDirectory(TreeView treeView, string path, string filter = ".*") { treeView.Nodes.Clear(); var rootDirectoryInfo = new DirectoryInfo(path); - treeView.Nodes.Add(CreateDirectoryNode(rootDirectoryInfo)); + treeView.Nodes.Add(CreateDirectoryNode(rootDirectoryInfo, filter)); } - public static TreeNode CreateDirectoryNode(DirectoryInfo directoryInfo) - { - var directoryNode = new TreeNode(directoryInfo.Name); - foreach (var directory in directoryInfo.GetDirectories()) - directoryNode.Nodes.Add(CreateDirectoryNode(directory)); - foreach (var file in directoryInfo.GetFiles()) - directoryNode.Nodes.Add(new TreeNode(file.Name)); - return directoryNode; + public static TreeNode CreateDirectoryNode(DirectoryInfo directoryInfo, string filter = ".*") + { + var directoryNode = new TreeNode(directoryInfo.Name); + foreach (var directory in directoryInfo.GetDirectories()) + directoryNode.Nodes.Add(CreateDirectoryNode(directory, filter)); + foreach (var file in directoryInfo.GetFiles("*"+filter)) + directoryNode.Nodes.Add(new TreeNode(file.Name)); + return directoryNode; } public static TreeNode SearchTreeView(string p_sSearchTerm, TreeNodeCollection p_Nodes) diff --git a/NovetusLauncher/NovetusLauncher/CharacterCustomization.Designer.cs b/NovetusLauncher/NovetusLauncher/CharacterCustomization.Designer.cs index 930cae0..c739134 100644 --- a/NovetusLauncher/NovetusLauncher/CharacterCustomization.Designer.cs +++ b/NovetusLauncher/NovetusLauncher/CharacterCustomization.Designer.cs @@ -97,42 +97,51 @@ namespace NovetusLauncher this.tabPage2 = new System.Windows.Forms.TabPage(); this.tabControl2 = new System.Windows.Forms.TabControl(); this.tabPage10 = new System.Windows.Forms.TabPage(); + this.textBox2 = new System.Windows.Forms.TextBox(); this.listBox1 = new System.Windows.Forms.ListBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.tabPage11 = new System.Windows.Forms.TabPage(); + this.textBox3 = new System.Windows.Forms.TextBox(); this.listBox2 = new System.Windows.Forms.ListBox(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.tabPage12 = new System.Windows.Forms.TabPage(); + this.textBox4 = new System.Windows.Forms.TextBox(); this.listBox3 = new System.Windows.Forms.ListBox(); this.pictureBox3 = new System.Windows.Forms.PictureBox(); this.button42 = new System.Windows.Forms.Button(); this.button41 = new System.Windows.Forms.Button(); this.tabPage8 = new System.Windows.Forms.TabPage(); + this.textBox5 = new System.Windows.Forms.TextBox(); this.button56 = new System.Windows.Forms.Button(); this.button57 = new System.Windows.Forms.Button(); this.pictureBox8 = new System.Windows.Forms.PictureBox(); this.listBox8 = new System.Windows.Forms.ListBox(); this.tabPage3 = new System.Windows.Forms.TabPage(); + this.textBox6 = new System.Windows.Forms.TextBox(); this.button44 = new System.Windows.Forms.Button(); this.button45 = new System.Windows.Forms.Button(); this.pictureBox4 = new System.Windows.Forms.PictureBox(); this.listBox4 = new System.Windows.Forms.ListBox(); this.tabPage4 = new System.Windows.Forms.TabPage(); + this.textBox7 = new System.Windows.Forms.TextBox(); this.button46 = new System.Windows.Forms.Button(); this.button47 = new System.Windows.Forms.Button(); this.pictureBox5 = new System.Windows.Forms.PictureBox(); this.listBox5 = new System.Windows.Forms.ListBox(); this.tabPage5 = new System.Windows.Forms.TabPage(); + this.textBox8 = new System.Windows.Forms.TextBox(); this.button48 = new System.Windows.Forms.Button(); this.button49 = new System.Windows.Forms.Button(); this.pictureBox6 = new System.Windows.Forms.PictureBox(); this.listBox6 = new System.Windows.Forms.ListBox(); this.tabPage6 = new System.Windows.Forms.TabPage(); + this.textBox9 = new System.Windows.Forms.TextBox(); this.button50 = new System.Windows.Forms.Button(); this.button51 = new System.Windows.Forms.Button(); this.pictureBox7 = new System.Windows.Forms.PictureBox(); this.listBox7 = new System.Windows.Forms.ListBox(); this.tabPage9 = new System.Windows.Forms.TabPage(); + this.textBox10 = new System.Windows.Forms.TextBox(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.button58 = new System.Windows.Forms.Button(); this.button59 = new System.Windows.Forms.Button(); @@ -877,6 +886,7 @@ namespace NovetusLauncher // // tabPage10 // + this.tabPage10.Controls.Add(this.textBox2); this.tabPage10.Controls.Add(this.listBox1); this.tabPage10.Controls.Add(this.pictureBox1); this.tabPage10.Location = new System.Drawing.Point(4, 22); @@ -887,6 +897,17 @@ namespace NovetusLauncher this.tabPage10.Text = "HAT 1"; this.tabPage10.UseVisualStyleBackColor = true; // + // textBox2 + // + this.textBox2.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.textBox2.Location = new System.Drawing.Point(238, 94); + this.textBox2.Multiline = true; + this.textBox2.Name = "textBox2"; + this.textBox2.ReadOnly = true; + this.textBox2.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBox2.Size = new System.Drawing.Size(218, 68); + this.textBox2.TabIndex = 51; + // // listBox1 // this.listBox1.FormattingEnabled = true; @@ -898,15 +919,16 @@ namespace NovetusLauncher // // pictureBox1 // - this.pictureBox1.Location = new System.Drawing.Point(238, 3); + this.pictureBox1.Location = new System.Drawing.Point(303, 3); this.pictureBox1.Name = "pictureBox1"; - this.pictureBox1.Size = new System.Drawing.Size(218, 160); + this.pictureBox1.Size = new System.Drawing.Size(85, 85); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox1.TabIndex = 50; this.pictureBox1.TabStop = false; // // tabPage11 // + this.tabPage11.Controls.Add(this.textBox3); this.tabPage11.Controls.Add(this.listBox2); this.tabPage11.Controls.Add(this.pictureBox2); this.tabPage11.Location = new System.Drawing.Point(4, 22); @@ -917,6 +939,17 @@ namespace NovetusLauncher this.tabPage11.Text = "HAT 2"; this.tabPage11.UseVisualStyleBackColor = true; // + // textBox3 + // + this.textBox3.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.textBox3.Location = new System.Drawing.Point(238, 94); + this.textBox3.Multiline = true; + this.textBox3.Name = "textBox3"; + this.textBox3.ReadOnly = true; + this.textBox3.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBox3.Size = new System.Drawing.Size(218, 68); + this.textBox3.TabIndex = 52; + // // listBox2 // this.listBox2.FormattingEnabled = true; @@ -928,15 +961,16 @@ namespace NovetusLauncher // // pictureBox2 // - this.pictureBox2.Location = new System.Drawing.Point(238, 3); + this.pictureBox2.Location = new System.Drawing.Point(303, 3); this.pictureBox2.Name = "pictureBox2"; - this.pictureBox2.Size = new System.Drawing.Size(218, 160); + this.pictureBox2.Size = new System.Drawing.Size(85, 85); this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox2.TabIndex = 51; this.pictureBox2.TabStop = false; // // tabPage12 // + this.tabPage12.Controls.Add(this.textBox4); this.tabPage12.Controls.Add(this.listBox3); this.tabPage12.Controls.Add(this.pictureBox3); this.tabPage12.Location = new System.Drawing.Point(4, 22); @@ -946,6 +980,17 @@ namespace NovetusLauncher this.tabPage12.Text = "HAT 3"; this.tabPage12.UseVisualStyleBackColor = true; // + // textBox4 + // + this.textBox4.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.textBox4.Location = new System.Drawing.Point(238, 94); + this.textBox4.Multiline = true; + this.textBox4.Name = "textBox4"; + this.textBox4.ReadOnly = true; + this.textBox4.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBox4.Size = new System.Drawing.Size(218, 68); + this.textBox4.TabIndex = 55; + // // listBox3 // this.listBox3.FormattingEnabled = true; @@ -957,9 +1002,9 @@ namespace NovetusLauncher // // pictureBox3 // - this.pictureBox3.Location = new System.Drawing.Point(238, 3); + this.pictureBox3.Location = new System.Drawing.Point(303, 3); this.pictureBox3.Name = "pictureBox3"; - this.pictureBox3.Size = new System.Drawing.Size(218, 160); + this.pictureBox3.Size = new System.Drawing.Size(85, 85); this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox3.TabIndex = 54; this.pictureBox3.TabStop = false; @@ -986,6 +1031,7 @@ namespace NovetusLauncher // // tabPage8 // + this.tabPage8.Controls.Add(this.textBox5); this.tabPage8.Controls.Add(this.button56); this.tabPage8.Controls.Add(this.button57); this.tabPage8.Controls.Add(this.pictureBox8); @@ -997,6 +1043,17 @@ namespace NovetusLauncher this.tabPage8.Text = "HEADS"; this.tabPage8.UseVisualStyleBackColor = true; // + // textBox5 + // + this.textBox5.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.textBox5.Location = new System.Drawing.Point(242, 114); + this.textBox5.Multiline = true; + this.textBox5.Name = "textBox5"; + this.textBox5.ReadOnly = true; + this.textBox5.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBox5.Size = new System.Drawing.Size(218, 68); + this.textBox5.TabIndex = 66; + // // button56 // this.button56.Location = new System.Drawing.Point(242, 193); @@ -1019,9 +1076,9 @@ namespace NovetusLauncher // // pictureBox8 // - this.pictureBox8.Location = new System.Drawing.Point(242, 9); + this.pictureBox8.Location = new System.Drawing.Point(303, 9); this.pictureBox8.Name = "pictureBox8"; - this.pictureBox8.Size = new System.Drawing.Size(219, 173); + this.pictureBox8.Size = new System.Drawing.Size(99, 99); this.pictureBox8.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox8.TabIndex = 63; this.pictureBox8.TabStop = false; @@ -1037,6 +1094,7 @@ namespace NovetusLauncher // // tabPage3 // + this.tabPage3.Controls.Add(this.textBox6); this.tabPage3.Controls.Add(this.button44); this.tabPage3.Controls.Add(this.button45); this.tabPage3.Controls.Add(this.pictureBox4); @@ -1048,6 +1106,17 @@ namespace NovetusLauncher this.tabPage3.Text = "FACES"; this.tabPage3.UseVisualStyleBackColor = true; // + // textBox6 + // + this.textBox6.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.textBox6.Location = new System.Drawing.Point(242, 114); + this.textBox6.Multiline = true; + this.textBox6.Name = "textBox6"; + this.textBox6.ReadOnly = true; + this.textBox6.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBox6.Size = new System.Drawing.Size(218, 68); + this.textBox6.TabIndex = 67; + // // button44 // this.button44.Location = new System.Drawing.Point(242, 193); @@ -1070,9 +1139,9 @@ namespace NovetusLauncher // // pictureBox4 // - this.pictureBox4.Location = new System.Drawing.Point(242, 9); + this.pictureBox4.Location = new System.Drawing.Point(303, 9); this.pictureBox4.Name = "pictureBox4"; - this.pictureBox4.Size = new System.Drawing.Size(219, 173); + this.pictureBox4.Size = new System.Drawing.Size(99, 99); this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox4.TabIndex = 59; this.pictureBox4.TabStop = false; @@ -1088,6 +1157,7 @@ namespace NovetusLauncher // // tabPage4 // + this.tabPage4.Controls.Add(this.textBox7); this.tabPage4.Controls.Add(this.button46); this.tabPage4.Controls.Add(this.button47); this.tabPage4.Controls.Add(this.pictureBox5); @@ -1099,6 +1169,17 @@ namespace NovetusLauncher this.tabPage4.Text = "T-SHIRTS"; this.tabPage4.UseVisualStyleBackColor = true; // + // textBox7 + // + this.textBox7.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.textBox7.Location = new System.Drawing.Point(242, 114); + this.textBox7.Multiline = true; + this.textBox7.Name = "textBox7"; + this.textBox7.ReadOnly = true; + this.textBox7.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBox7.Size = new System.Drawing.Size(218, 68); + this.textBox7.TabIndex = 68; + // // button46 // this.button46.Location = new System.Drawing.Point(242, 193); @@ -1121,9 +1202,9 @@ namespace NovetusLauncher // // pictureBox5 // - this.pictureBox5.Location = new System.Drawing.Point(242, 9); + this.pictureBox5.Location = new System.Drawing.Point(303, 9); this.pictureBox5.Name = "pictureBox5"; - this.pictureBox5.Size = new System.Drawing.Size(219, 173); + this.pictureBox5.Size = new System.Drawing.Size(99, 99); this.pictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox5.TabIndex = 63; this.pictureBox5.TabStop = false; @@ -1139,6 +1220,7 @@ namespace NovetusLauncher // // tabPage5 // + this.tabPage5.Controls.Add(this.textBox8); this.tabPage5.Controls.Add(this.button48); this.tabPage5.Controls.Add(this.button49); this.tabPage5.Controls.Add(this.pictureBox6); @@ -1150,6 +1232,17 @@ namespace NovetusLauncher this.tabPage5.Text = "SHIRTS"; this.tabPage5.UseVisualStyleBackColor = true; // + // textBox8 + // + this.textBox8.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.textBox8.Location = new System.Drawing.Point(242, 114); + this.textBox8.Multiline = true; + this.textBox8.Name = "textBox8"; + this.textBox8.ReadOnly = true; + this.textBox8.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBox8.Size = new System.Drawing.Size(218, 68); + this.textBox8.TabIndex = 68; + // // button48 // this.button48.Location = new System.Drawing.Point(242, 193); @@ -1172,9 +1265,9 @@ namespace NovetusLauncher // // pictureBox6 // - this.pictureBox6.Location = new System.Drawing.Point(242, 9); + this.pictureBox6.Location = new System.Drawing.Point(303, 9); this.pictureBox6.Name = "pictureBox6"; - this.pictureBox6.Size = new System.Drawing.Size(219, 173); + this.pictureBox6.Size = new System.Drawing.Size(99, 99); this.pictureBox6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox6.TabIndex = 63; this.pictureBox6.TabStop = false; @@ -1190,6 +1283,7 @@ namespace NovetusLauncher // // tabPage6 // + this.tabPage6.Controls.Add(this.textBox9); this.tabPage6.Controls.Add(this.button50); this.tabPage6.Controls.Add(this.button51); this.tabPage6.Controls.Add(this.pictureBox7); @@ -1201,6 +1295,17 @@ namespace NovetusLauncher this.tabPage6.Text = "PANTS"; this.tabPage6.UseVisualStyleBackColor = true; // + // textBox9 + // + this.textBox9.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.textBox9.Location = new System.Drawing.Point(242, 114); + this.textBox9.Multiline = true; + this.textBox9.Name = "textBox9"; + this.textBox9.ReadOnly = true; + this.textBox9.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBox9.Size = new System.Drawing.Size(218, 68); + this.textBox9.TabIndex = 68; + // // button50 // this.button50.Location = new System.Drawing.Point(242, 193); @@ -1223,9 +1328,9 @@ namespace NovetusLauncher // // pictureBox7 // - this.pictureBox7.Location = new System.Drawing.Point(242, 9); + this.pictureBox7.Location = new System.Drawing.Point(303, 9); this.pictureBox7.Name = "pictureBox7"; - this.pictureBox7.Size = new System.Drawing.Size(219, 173); + this.pictureBox7.Size = new System.Drawing.Size(99, 99); this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox7.TabIndex = 63; this.pictureBox7.TabStop = false; @@ -1241,6 +1346,7 @@ namespace NovetusLauncher // // tabPage9 // + this.tabPage9.Controls.Add(this.textBox10); this.tabPage9.Controls.Add(this.checkBox1); this.tabPage9.Controls.Add(this.button58); this.tabPage9.Controls.Add(this.button59); @@ -1253,6 +1359,17 @@ namespace NovetusLauncher this.tabPage9.Text = "EXTRA"; this.tabPage9.UseVisualStyleBackColor = true; // + // textBox10 + // + this.textBox10.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.textBox10.Location = new System.Drawing.Point(242, 114); + this.textBox10.Multiline = true; + this.textBox10.Name = "textBox10"; + this.textBox10.ReadOnly = true; + this.textBox10.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBox10.Size = new System.Drawing.Size(218, 68); + this.textBox10.TabIndex = 71; + // // checkBox1 // this.checkBox1.Location = new System.Drawing.Point(6, 170); @@ -1285,9 +1402,9 @@ namespace NovetusLauncher // // pictureBox9 // - this.pictureBox9.Location = new System.Drawing.Point(242, 9); + this.pictureBox9.Location = new System.Drawing.Point(303, 9); this.pictureBox9.Name = "pictureBox9"; - this.pictureBox9.Size = new System.Drawing.Size(219, 173); + this.pictureBox9.Size = new System.Drawing.Size(99, 99); this.pictureBox9.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox9.TabIndex = 67; this.pictureBox9.TabStop = false; @@ -1500,22 +1617,31 @@ namespace NovetusLauncher this.tabPage2.ResumeLayout(false); this.tabControl2.ResumeLayout(false); this.tabPage10.ResumeLayout(false); + this.tabPage10.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.tabPage11.ResumeLayout(false); + this.tabPage11.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); this.tabPage12.ResumeLayout(false); + this.tabPage12.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit(); this.tabPage8.ResumeLayout(false); + this.tabPage8.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox8)).EndInit(); this.tabPage3.ResumeLayout(false); + this.tabPage3.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit(); this.tabPage4.ResumeLayout(false); + this.tabPage4.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit(); this.tabPage5.ResumeLayout(false); + this.tabPage5.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit(); this.tabPage6.ResumeLayout(false); + this.tabPage6.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit(); this.tabPage9.ResumeLayout(false); + this.tabPage9.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).EndInit(); this.tabPage7.ResumeLayout(false); this.tabPage7.PerformLayout(); @@ -1640,5 +1766,14 @@ namespace NovetusLauncher private System.Windows.Forms.Button button70; private System.Windows.Forms.Button button69; private System.Windows.Forms.Button button71; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.TextBox textBox8; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.TextBox textBox10; } } diff --git a/NovetusLauncher/NovetusLauncher/CharacterCustomization.cs b/NovetusLauncher/NovetusLauncher/CharacterCustomization.cs index f2df99c..c452425 100644 --- a/NovetusLauncher/NovetusLauncher/CharacterCustomization.cs +++ b/NovetusLauncher/NovetusLauncher/CharacterCustomization.cs @@ -214,7 +214,33 @@ namespace NovetusLauncher pictureBox2.Image = icon2; Image icon3 = LauncherFuncs.LoadImage(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat3ID_Offline.Replace(".rbxm", "") + ".png"); pictureBox3.Image = icon3; - } + if (File.Exists(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat1ID_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox2.Text = File.ReadAllText(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat1ID_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox2.Text = GlobalVars.Custom_Hat1ID_Offline; + } + + if (File.Exists(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat2ID_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox3.Text = File.ReadAllText(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat2ID_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox3.Text = GlobalVars.Custom_Hat2ID_Offline; + } + + if (File.Exists(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat3ID_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox4.Text = File.ReadAllText(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat3ID_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox4.Text = GlobalVars.Custom_Hat3ID_Offline; + } + } } else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage3"])//your specific tabname { @@ -245,7 +271,16 @@ namespace NovetusLauncher listBox4.Enabled = true; Image icon1 = LauncherFuncs.LoadImage(GlobalVars.facedir + @"\\" + GlobalVars.Custom_Face_Offline.Replace(".rbxm", "") + ".png"); pictureBox4.Image = icon1; - } + + if (File.Exists(GlobalVars.facedir + @"\\" + GlobalVars.Custom_Face_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox6.Text = File.ReadAllText(GlobalVars.facedir + @"\\" + GlobalVars.Custom_Face_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox6.Text = GlobalVars.Custom_Face_Offline; + } + } } else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage4"])//your specific tabname { @@ -276,7 +311,16 @@ namespace NovetusLauncher listBox5.Enabled = true; Image icon1 = LauncherFuncs.LoadImage(GlobalVars.tshirtdir + @"\\" + GlobalVars.Custom_T_Shirt_Offline.Replace(".rbxm", "") + ".png"); pictureBox5.Image = icon1; - } + + if (File.Exists(GlobalVars.tshirtdir + @"\\" + GlobalVars.Custom_T_Shirt_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox7.Text = File.ReadAllText(GlobalVars.tshirtdir + @"\\" + GlobalVars.Custom_T_Shirt_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox7.Text = GlobalVars.Custom_T_Shirt_Offline; + } + } } else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage5"])//your specific tabname { @@ -307,7 +351,16 @@ namespace NovetusLauncher listBox6.Enabled = true; Image icon1 = LauncherFuncs.LoadImage(GlobalVars.shirtdir + @"\\" + GlobalVars.Custom_Shirt_Offline.Replace(".rbxm", "") + ".png"); pictureBox6.Image = icon1; - } + + if (File.Exists(GlobalVars.shirtdir + @"\\" + GlobalVars.Custom_Shirt_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox8.Text = File.ReadAllText(GlobalVars.shirtdir + @"\\" + GlobalVars.Custom_Shirt_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox8.Text = GlobalVars.Custom_Shirt_Offline; + } + } } else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage6"])//your specific tabname { @@ -338,7 +391,16 @@ namespace NovetusLauncher listBox7.Enabled = true; Image icon1 = LauncherFuncs.LoadImage(GlobalVars.pantsdir + @"\\" + GlobalVars.Custom_Pants_Offline.Replace(".rbxm", "") + ".png"); pictureBox7.Image = icon1; - } + + if (File.Exists(GlobalVars.pantsdir + @"\\" + GlobalVars.Custom_Pants_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox9.Text = File.ReadAllText(GlobalVars.pantsdir + @"\\" + GlobalVars.Custom_Pants_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox9.Text = GlobalVars.Custom_Pants_Offline; + } + } } else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage8"])//your specific tabname { @@ -369,7 +431,16 @@ namespace NovetusLauncher listBox8.Enabled = true; Image icon1 = LauncherFuncs.LoadImage(GlobalVars.headdir + @"\\" + GlobalVars.Custom_Head_Offline.Replace(".rbxm", "") + ".png"); pictureBox8.Image = icon1; - } + + if (File.Exists(GlobalVars.headdir + @"\\" + GlobalVars.Custom_Head_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox5.Text = File.ReadAllText(GlobalVars.headdir + @"\\" + GlobalVars.Custom_Head_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox5.Text = GlobalVars.Custom_Head_Offline; + } + } } else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage9"])//your specific tabname { @@ -427,14 +498,30 @@ namespace NovetusLauncher { Image icon1 = LauncherFuncs.LoadImage(GlobalVars.extradir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + ".png"); pictureBox9.Image = icon1; - } + if (File.Exists(GlobalVars.extradir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt")) + { + textBox10.Text = File.ReadAllText(GlobalVars.extradir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox10.Text = GlobalVars.Custom_Extra; + } + } catch(Exception) when (!Env.Debugging) { if (Directory.Exists(GlobalVars.hatdir)) { Image icon1 = LauncherFuncs.LoadImage(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + ".png"); pictureBox9.Image = icon1; - } + if (File.Exists(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt")) + { + textBox10.Text = File.ReadAllText(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox10.Text = GlobalVars.Custom_Extra; + } + } } } } @@ -454,8 +541,17 @@ namespace NovetusLauncher GlobalVars.Custom_Hat1ID_Offline = listBox1.SelectedItem.ToString(); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Hat1ID_Offline.Replace(".rbxm", "") + ".png"); pictureBox1.Image = icon1; - } - } + + if (File.Exists(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat1ID_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox2.Text = File.ReadAllText(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat1ID_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox2.Text = GlobalVars.Custom_Hat1ID_Offline; + } + } + } void ListBox2SelectedIndexChanged(object sender, EventArgs e) { @@ -464,7 +560,16 @@ namespace NovetusLauncher GlobalVars.Custom_Hat2ID_Offline = listBox2.SelectedItem.ToString(); Image icon2 = LauncherFuncs.LoadImage(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Hat2ID_Offline.Replace(".rbxm", "") + ".png"); pictureBox2.Image = icon2; - } + + if (File.Exists(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat2ID_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox3.Text = File.ReadAllText(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat2ID_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox3.Text = GlobalVars.Custom_Hat2ID_Offline; + } + } } void ListBox3SelectedIndexChanged(object sender, EventArgs e) @@ -474,7 +579,16 @@ namespace NovetusLauncher GlobalVars.Custom_Hat3ID_Offline = listBox3.SelectedItem.ToString(); Image icon3 = LauncherFuncs.LoadImage(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Hat3ID_Offline.Replace(".rbxm", "") + ".png"); pictureBox3.Image = icon3; - } + + if (File.Exists(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat3ID_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox4.Text = File.ReadAllText(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat3ID_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox4.Text = GlobalVars.Custom_Hat3ID_Offline; + } + } } void Button41Click(object sender, EventArgs e) @@ -497,7 +611,33 @@ namespace NovetusLauncher GlobalVars.Custom_Hat3ID_Offline = listBox3.SelectedItem.ToString(); Image icon3 = LauncherFuncs.LoadImage(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Hat3ID_Offline.Replace(".rbxm", "") + ".png"); pictureBox3.Image = icon3; - } + if (File.Exists(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat1ID_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox2.Text = File.ReadAllText(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat1ID_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox2.Text = GlobalVars.Custom_Hat1ID_Offline; + } + + if (File.Exists(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat2ID_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox3.Text = File.ReadAllText(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat2ID_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox3.Text = GlobalVars.Custom_Hat2ID_Offline; + } + + if (File.Exists(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat3ID_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox4.Text = File.ReadAllText(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat3ID_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox4.Text = GlobalVars.Custom_Hat3ID_Offline; + } + } } void Button42Click(object sender, EventArgs e) @@ -516,7 +656,33 @@ namespace NovetusLauncher GlobalVars.Custom_Hat3ID_Offline = listBox3.SelectedItem.ToString(); Image icon3 = LauncherFuncs.LoadImage(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Hat3ID_Offline.Replace(".rbxm", "") + ".png"); pictureBox3.Image = icon3; - } + if (File.Exists(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat1ID_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox2.Text = File.ReadAllText(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat1ID_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox2.Text = GlobalVars.Custom_Hat1ID_Offline; + } + + if (File.Exists(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat2ID_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox3.Text = File.ReadAllText(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat2ID_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox3.Text = GlobalVars.Custom_Hat2ID_Offline; + } + + if (File.Exists(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat3ID_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox4.Text = File.ReadAllText(GlobalVars.hatdir + @"\\" + GlobalVars.Custom_Hat3ID_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox4.Text = GlobalVars.Custom_Hat3ID_Offline; + } + } } //faces @@ -528,7 +694,16 @@ namespace NovetusLauncher GlobalVars.Custom_Face_Offline = listBox4.SelectedItem.ToString(); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.facedir + "\\" + GlobalVars.Custom_Face_Offline.Replace(".rbxm", "") + ".png"); pictureBox4.Image = icon1; - } + + if (File.Exists(GlobalVars.facedir + @"\\" + GlobalVars.Custom_Face_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox6.Text = File.ReadAllText(GlobalVars.facedir + @"\\" + GlobalVars.Custom_Face_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox6.Text = GlobalVars.Custom_Face_Offline; + } + } } void Button45Click(object sender, EventArgs e) @@ -541,7 +716,16 @@ namespace NovetusLauncher GlobalVars.Custom_Face_Offline = listBox4.SelectedItem.ToString(); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.facedir + "\\" + GlobalVars.Custom_Face_Offline.Replace(".rbxm", "") + ".png"); pictureBox4.Image = icon1; - } + + if (File.Exists(GlobalVars.facedir + @"\\" + GlobalVars.Custom_Face_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox6.Text = File.ReadAllText(GlobalVars.facedir + @"\\" + GlobalVars.Custom_Face_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox6.Text = GlobalVars.Custom_Face_Offline; + } + } } void Button44Click(object sender, EventArgs e) @@ -552,7 +736,16 @@ namespace NovetusLauncher GlobalVars.Custom_Face_Offline = listBox4.SelectedItem.ToString(); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.facedir + "\\" + GlobalVars.Custom_Face_Offline.Replace(".rbxm", "") + ".png"); pictureBox4.Image = icon1; - } + + if (File.Exists(GlobalVars.facedir + @"\\" + GlobalVars.Custom_Face_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox6.Text = File.ReadAllText(GlobalVars.facedir + @"\\" + GlobalVars.Custom_Face_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox6.Text = GlobalVars.Custom_Face_Offline; + } + } } //t-shirt @@ -564,7 +757,16 @@ namespace NovetusLauncher GlobalVars.Custom_T_Shirt_Offline = listBox5.SelectedItem.ToString(); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.tshirtdir + "\\" + GlobalVars.Custom_T_Shirt_Offline.Replace(".rbxm", "") + ".png"); pictureBox5.Image = icon1; - } + + if (File.Exists(GlobalVars.tshirtdir + @"\\" + GlobalVars.Custom_T_Shirt_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox7.Text = File.ReadAllText(GlobalVars.tshirtdir + @"\\" + GlobalVars.Custom_T_Shirt_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox7.Text = GlobalVars.Custom_T_Shirt_Offline; + } + } } void Button47Click(object sender, EventArgs e) @@ -577,7 +779,16 @@ namespace NovetusLauncher GlobalVars.Custom_T_Shirt_Offline = listBox5.SelectedItem.ToString(); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.tshirtdir + "\\" + GlobalVars.Custom_T_Shirt_Offline.Replace(".rbxm", "") + ".png"); pictureBox5.Image = icon1; - } + + if (File.Exists(GlobalVars.tshirtdir + @"\\" + GlobalVars.Custom_T_Shirt_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox7.Text = File.ReadAllText(GlobalVars.tshirtdir + @"\\" + GlobalVars.Custom_T_Shirt_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox7.Text = GlobalVars.Custom_T_Shirt_Offline; + } + } } void Button46Click(object sender, EventArgs e) @@ -588,7 +799,16 @@ namespace NovetusLauncher GlobalVars.Custom_T_Shirt_Offline = listBox5.SelectedItem.ToString(); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.tshirtdir + "\\" + GlobalVars.Custom_T_Shirt_Offline.Replace(".rbxm", "") + ".png"); pictureBox5.Image = icon1; - } + + if (File.Exists(GlobalVars.tshirtdir + @"\\" + GlobalVars.Custom_T_Shirt_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox7.Text = File.ReadAllText(GlobalVars.tshirtdir + @"\\" + GlobalVars.Custom_T_Shirt_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox7.Text = GlobalVars.Custom_T_Shirt_Offline; + } + } } //shirt @@ -600,7 +820,16 @@ namespace NovetusLauncher GlobalVars.Custom_Shirt_Offline = listBox6.SelectedItem.ToString(); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.shirtdir + "\\" + GlobalVars.Custom_Shirt_Offline.Replace(".rbxm", "") + ".png"); pictureBox6.Image = icon1; - } + + if (File.Exists(GlobalVars.shirtdir + @"\\" + GlobalVars.Custom_Shirt_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox8.Text = File.ReadAllText(GlobalVars.shirtdir + @"\\" + GlobalVars.Custom_Shirt_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox8.Text = GlobalVars.Custom_Shirt_Offline; + } + } } void Button49Click(object sender, EventArgs e) @@ -613,7 +842,16 @@ namespace NovetusLauncher GlobalVars.Custom_Shirt_Offline = listBox6.SelectedItem.ToString(); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.shirtdir + "\\" + GlobalVars.Custom_Shirt_Offline.Replace(".rbxm", "") + ".png"); pictureBox6.Image = icon1; - } + + if (File.Exists(GlobalVars.shirtdir + @"\\" + GlobalVars.Custom_Shirt_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox8.Text = File.ReadAllText(GlobalVars.shirtdir + @"\\" + GlobalVars.Custom_Shirt_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox8.Text = GlobalVars.Custom_Shirt_Offline; + } + } } void Button48Click(object sender, EventArgs e) @@ -624,7 +862,16 @@ namespace NovetusLauncher GlobalVars.Custom_Shirt_Offline = listBox6.SelectedItem.ToString(); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.shirtdir + "\\" + GlobalVars.Custom_Shirt_Offline.Replace(".rbxm", "") + ".png"); pictureBox6.Image = icon1; - } + + if (File.Exists(GlobalVars.shirtdir + @"\\" + GlobalVars.Custom_Shirt_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox8.Text = File.ReadAllText(GlobalVars.shirtdir + @"\\" + GlobalVars.Custom_Shirt_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox8.Text = GlobalVars.Custom_Shirt_Offline; + } + } } //pants @@ -636,7 +883,16 @@ namespace NovetusLauncher GlobalVars.Custom_Pants_Offline = listBox7.SelectedItem.ToString(); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.pantsdir + "\\" + GlobalVars.Custom_Pants_Offline.Replace(".rbxm", "") + ".png"); pictureBox7.Image = icon1; - } + + if (File.Exists(GlobalVars.pantsdir + @"\\" + GlobalVars.Custom_Pants_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox9.Text = File.ReadAllText(GlobalVars.pantsdir + @"\\" + GlobalVars.Custom_Pants_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox9.Text = GlobalVars.Custom_Pants_Offline; + } + } } void Button51Click(object sender, EventArgs e) @@ -649,7 +905,16 @@ namespace NovetusLauncher GlobalVars.Custom_Pants_Offline = listBox7.SelectedItem.ToString(); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.pantsdir + "\\" + GlobalVars.Custom_Pants_Offline.Replace(".rbxm", "") + ".png"); pictureBox7.Image = icon1; - } + + if (File.Exists(GlobalVars.pantsdir + @"\\" + GlobalVars.Custom_Pants_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox9.Text = File.ReadAllText(GlobalVars.pantsdir + @"\\" + GlobalVars.Custom_Pants_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox9.Text = GlobalVars.Custom_Pants_Offline; + } + } } void Button50Click(object sender, EventArgs e) @@ -660,7 +925,16 @@ namespace NovetusLauncher GlobalVars.Custom_Pants_Offline = listBox7.SelectedItem.ToString(); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.pantsdir + "\\" + GlobalVars.Custom_Pants_Offline.Replace(".rbxm", "") + ".png"); pictureBox7.Image = icon1; - } + + if (File.Exists(GlobalVars.pantsdir + @"\\" + GlobalVars.Custom_Pants_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox9.Text = File.ReadAllText(GlobalVars.pantsdir + @"\\" + GlobalVars.Custom_Pants_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox9.Text = GlobalVars.Custom_Pants_Offline; + } + } } //head @@ -672,7 +946,16 @@ namespace NovetusLauncher GlobalVars.Custom_Head_Offline = listBox8.SelectedItem.ToString(); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.headdir + "\\" + GlobalVars.Custom_Head_Offline.Replace(".rbxm", "") + ".png"); pictureBox8.Image = icon1; - } + + if (File.Exists(GlobalVars.headdir + @"\\" + GlobalVars.Custom_Head_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox5.Text = File.ReadAllText(GlobalVars.headdir + @"\\" + GlobalVars.Custom_Head_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox5.Text = GlobalVars.Custom_Head_Offline; + } + } } void Button57Click(object sender, EventArgs e) @@ -685,7 +968,16 @@ namespace NovetusLauncher GlobalVars.Custom_Head_Offline = listBox8.SelectedItem.ToString(); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.headdir + "\\" + GlobalVars.Custom_Head_Offline.Replace(".rbxm", "") + ".png"); pictureBox8.Image = icon1; - } + + if (File.Exists(GlobalVars.headdir + @"\\" + GlobalVars.Custom_Head_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox5.Text = File.ReadAllText(GlobalVars.headdir + @"\\" + GlobalVars.Custom_Head_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox5.Text = GlobalVars.Custom_Head_Offline; + } + } } void Button56Click(object sender, EventArgs e) @@ -696,7 +988,16 @@ namespace NovetusLauncher GlobalVars.Custom_Head_Offline = listBox8.SelectedItem.ToString(); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.headdir + "\\" + GlobalVars.Custom_Head_Offline.Replace(".rbxm", "") + ".png"); pictureBox8.Image = icon1; - } + + if (File.Exists(GlobalVars.headdir + @"\\" + GlobalVars.Custom_Head_Offline.Replace(".rbxm", "") + "_desc.txt")) + { + textBox5.Text = File.ReadAllText(GlobalVars.headdir + @"\\" + GlobalVars.Custom_Head_Offline.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox5.Text = GlobalVars.Custom_Head_Offline; + } + } } //body @@ -1128,7 +1429,15 @@ namespace NovetusLauncher Image icon1 = LauncherFuncs.LoadImage(GlobalVars.extradir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + ".png"); pictureBox9.Image = icon1; GlobalVars.Custom_Extra_SelectionIsHat = false; - } + if (File.Exists(GlobalVars.extradir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt")) + { + textBox10.Text = File.ReadAllText(GlobalVars.extradir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox10.Text = GlobalVars.Custom_Extra; + } + } catch(Exception) when (!Env.Debugging) { if (Directory.Exists(GlobalVars.hatdir)) @@ -1137,7 +1446,15 @@ namespace NovetusLauncher Image icon1 = LauncherFuncs.LoadImage(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + ".png"); pictureBox9.Image = icon1; GlobalVars.Custom_Extra_SelectionIsHat = true; - } + if (File.Exists(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt")) + { + textBox10.Text = File.ReadAllText(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox10.Text = GlobalVars.Custom_Extra; + } + } } } } @@ -1155,7 +1472,15 @@ namespace NovetusLauncher Image icon1 = LauncherFuncs.LoadImage(GlobalVars.extradir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + ".png"); pictureBox9.Image = icon1; GlobalVars.Custom_Extra_SelectionIsHat = false; - } + if (File.Exists(GlobalVars.extradir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt")) + { + textBox10.Text = File.ReadAllText(GlobalVars.extradir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox10.Text = GlobalVars.Custom_Extra; + } + } catch(Exception) when (!Env.Debugging) { if (Directory.Exists(GlobalVars.hatdir)) @@ -1164,7 +1489,15 @@ namespace NovetusLauncher Image icon1 = LauncherFuncs.LoadImage(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + ".png"); pictureBox9.Image = icon1; GlobalVars.Custom_Extra_SelectionIsHat = true; - } + if (File.Exists(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt")) + { + textBox10.Text = File.ReadAllText(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox10.Text = GlobalVars.Custom_Extra; + } + } } } } @@ -1180,7 +1513,15 @@ namespace NovetusLauncher Image icon1 = LauncherFuncs.LoadImage(GlobalVars.extradir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + ".png"); pictureBox9.Image = icon1; GlobalVars.Custom_Extra_SelectionIsHat = false; - } + if (File.Exists(GlobalVars.extradir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt")) + { + textBox10.Text = File.ReadAllText(GlobalVars.extradir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox10.Text = GlobalVars.Custom_Extra; + } + } catch(Exception) when (!Env.Debugging) { if (Directory.Exists(GlobalVars.hatdir)) @@ -1189,7 +1530,15 @@ namespace NovetusLauncher Image icon1 = LauncherFuncs.LoadImage(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + ".png"); pictureBox9.Image = icon1; GlobalVars.Custom_Extra_SelectionIsHat = true; - } + if (File.Exists(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt")) + { + textBox10.Text = File.ReadAllText(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox10.Text = GlobalVars.Custom_Extra; + } + } } } } @@ -1247,7 +1596,15 @@ namespace NovetusLauncher Image icon1 = LauncherFuncs.LoadImage(GlobalVars.extradir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + ".png"); pictureBox9.Image = icon1; GlobalVars.Custom_Extra_SelectionIsHat = false; - } + if (File.Exists(GlobalVars.extradir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt")) + { + textBox10.Text = File.ReadAllText(GlobalVars.extradir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox10.Text = GlobalVars.Custom_Extra; + } + } catch(Exception) when (!Env.Debugging) { if (Directory.Exists(GlobalVars.hatdir)) @@ -1256,7 +1613,15 @@ namespace NovetusLauncher Image icon1 = LauncherFuncs.LoadImage(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + ".png"); pictureBox9.Image = icon1; GlobalVars.Custom_Extra_SelectionIsHat = true; - } + if (File.Exists(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt")) + { + textBox10.Text = File.ReadAllText(GlobalVars.hatdir + "\\" + GlobalVars.Custom_Extra.Replace(".rbxm", "") + "_desc.txt"); + } + else + { + textBox10.Text = GlobalVars.Custom_Extra; + } + } } } } diff --git a/NovetusLauncher/NovetusLauncher/MainForm.Designer.cs b/NovetusLauncher/NovetusLauncher/MainForm.Designer.cs index 6403c57..0e07e6f 100644 --- a/NovetusLauncher/NovetusLauncher/MainForm.Designer.cs +++ b/NovetusLauncher/NovetusLauncher/MainForm.Designer.cs @@ -52,24 +52,27 @@ namespace NovetusLauncher this.label3 = new System.Windows.Forms.Label(); this.textBox1 = new System.Windows.Forms.TextBox(); this.tabPage2 = new System.Windows.Forms.TabPage(); - this.button24 = new System.Windows.Forms.Button(); + this.label19 = new System.Windows.Forms.Label(); + this.textBox3 = new System.Windows.Forms.TextBox(); this.label17 = new System.Windows.Forms.Label(); this.checkBox4 = new System.Windows.Forms.CheckBox(); - this.button6 = new System.Windows.Forms.Button(); - this.treeView1 = new System.Windows.Forms.TreeView(); this.button23 = new System.Windows.Forms.Button(); this.button22 = new System.Windows.Forms.Button(); this.numericUpDown3 = new System.Windows.Forms.NumericUpDown(); this.numericUpDown2 = new System.Windows.Forms.NumericUpDown(); this.label29 = new System.Windows.Forms.Label(); this.label35 = new System.Windows.Forms.Label(); - this.button20 = new System.Windows.Forms.Button(); this.button18 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.tabPage3 = new System.Windows.Forms.TabPage(); this.textBox6 = new System.Windows.Forms.TextBox(); this.label30 = new System.Windows.Forms.Label(); this.listBox2 = new System.Windows.Forms.ListBox(); + this.tabPage4 = new System.Windows.Forms.TabPage(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.button24 = new System.Windows.Forms.Button(); + this.treeView1 = new System.Windows.Forms.TreeView(); + this.button6 = new System.Windows.Forms.Button(); this.tabPage6 = new System.Windows.Forms.TabPage(); this.button17 = new System.Windows.Forms.Button(); this.button16 = new System.Windows.Forms.Button(); @@ -93,18 +96,18 @@ namespace NovetusLauncher this.checkBox2 = new System.Windows.Forms.CheckBox(); this.label18 = new System.Windows.Forms.Label(); this.button26 = new System.Windows.Forms.Button(); - this.button25 = new System.Windows.Forms.Button(); this.label7 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); - this.button21 = new System.Windows.Forms.Button(); this.label8 = new System.Windows.Forms.Label(); this.button9 = new System.Windows.Forms.Button(); this.checkBox3 = new System.Windows.Forms.CheckBox(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.button5 = new System.Windows.Forms.Button(); + this.button25 = new System.Windows.Forms.Button(); + this.button21 = new System.Windows.Forms.Button(); this.textBox5 = new System.Windows.Forms.TextBox(); this.label15 = new System.Windows.Forms.Label(); this.label13 = new System.Windows.Forms.Label(); @@ -127,6 +130,7 @@ namespace NovetusLauncher ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit(); this.tabPage3.SuspendLayout(); + this.tabPage4.SuspendLayout(); this.tabPage6.SuspendLayout(); this.tabPage7.SuspendLayout(); this.tabPage8.SuspendLayout(); @@ -139,6 +143,7 @@ namespace NovetusLauncher this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Controls.Add(this.tabPage2); this.tabControl1.Controls.Add(this.tabPage3); + this.tabControl1.Controls.Add(this.tabPage4); this.tabControl1.Controls.Add(this.tabPage6); this.tabControl1.Controls.Add(this.tabPage7); this.tabControl1.Controls.Add(this.tabPage8); @@ -311,18 +316,16 @@ namespace NovetusLauncher // // tabPage2 // - this.tabPage2.Controls.Add(this.button24); + this.tabPage2.Controls.Add(this.label19); + this.tabPage2.Controls.Add(this.textBox3); this.tabPage2.Controls.Add(this.label17); this.tabPage2.Controls.Add(this.checkBox4); - this.tabPage2.Controls.Add(this.button6); - this.tabPage2.Controls.Add(this.treeView1); this.tabPage2.Controls.Add(this.button23); this.tabPage2.Controls.Add(this.button22); this.tabPage2.Controls.Add(this.numericUpDown3); this.tabPage2.Controls.Add(this.numericUpDown2); this.tabPage2.Controls.Add(this.label29); this.tabPage2.Controls.Add(this.label35); - this.tabPage2.Controls.Add(this.button20); this.tabPage2.Controls.Add(this.button18); this.tabPage2.Controls.Add(this.button2); this.tabPage2.Location = new System.Drawing.Point(4, 22); @@ -334,15 +337,28 @@ namespace NovetusLauncher this.tabPage2.ToolTipText = "Start a server for other players to play"; this.tabPage2.UseVisualStyleBackColor = true; // - // button24 + // label19 // - this.button24.Location = new System.Drawing.Point(10, 4); - this.button24.Name = "button24"; - this.button24.Size = new System.Drawing.Size(188, 23); - this.button24.TabIndex = 59; - this.button24.Text = "Refresh List"; - this.button24.UseVisualStyleBackColor = true; - this.button24.Click += new System.EventHandler(this.Button24Click); + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(6, 5); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(129, 13); + this.label19.TabIndex = 60; + this.label19.Text = "SERVER INFORMATION"; + // + // textBox3 + // + this.textBox3.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.textBox3.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.textBox3.Location = new System.Drawing.Point(6, 21); + this.textBox3.Multiline = true; + this.textBox3.Name = "textBox3"; + this.textBox3.ReadOnly = true; + this.textBox3.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBox3.Size = new System.Drawing.Size(393, 117); + this.textBox3.TabIndex = 59; // // label17 // @@ -357,7 +373,7 @@ namespace NovetusLauncher // // checkBox4 // - this.checkBox4.Location = new System.Drawing.Point(152, 187); + this.checkBox4.Location = new System.Drawing.Point(205, 187); this.checkBox4.Name = "checkBox4"; this.checkBox4.Size = new System.Drawing.Size(104, 17); this.checkBox4.TabIndex = 57; @@ -366,30 +382,10 @@ namespace NovetusLauncher this.checkBox4.CheckedChanged += new System.EventHandler(this.CheckBox4CheckedChanged); this.checkBox4.Click += new System.EventHandler(this.CheckBox4Click); // - // button6 - // - this.button6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.button6.Location = new System.Drawing.Point(204, 4); - this.button6.Name = "button6"; - this.button6.Size = new System.Drawing.Size(188, 23); - this.button6.TabIndex = 56; - this.button6.Text = "Open Maps Folder"; - this.button6.UseVisualStyleBackColor = true; - this.button6.Click += new System.EventHandler(this.Button6Click); - // - // treeView1 - // - this.treeView1.HideSelection = false; - this.treeView1.Location = new System.Drawing.Point(10, 30); - this.treeView1.Name = "treeView1"; - this.treeView1.Size = new System.Drawing.Size(382, 108); - this.treeView1.TabIndex = 54; - this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.TreeView1AfterSelect); - // // button23 // this.button23.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.button23.Location = new System.Drawing.Point(10, 184); + this.button23.Location = new System.Drawing.Point(63, 184); this.button23.Name = "button23"; this.button23.Size = new System.Drawing.Size(66, 25); this.button23.TabIndex = 51; @@ -399,7 +395,7 @@ namespace NovetusLauncher // // button22 // - this.button22.Location = new System.Drawing.Point(82, 184); + this.button22.Location = new System.Drawing.Point(135, 184); this.button22.Name = "button22"; this.button22.Size = new System.Drawing.Size(63, 25); this.button22.TabIndex = 50; @@ -409,7 +405,7 @@ namespace NovetusLauncher // // numericUpDown3 // - this.numericUpDown3.Location = new System.Drawing.Point(217, 161); + this.numericUpDown3.Location = new System.Drawing.Point(270, 161); this.numericUpDown3.Maximum = new decimal(new int[] { 256, 0, @@ -432,7 +428,7 @@ namespace NovetusLauncher // // numericUpDown2 // - this.numericUpDown2.Location = new System.Drawing.Point(81, 161); + this.numericUpDown2.Location = new System.Drawing.Point(134, 161); this.numericUpDown2.Maximum = new decimal(new int[] { 65535, 0, @@ -455,7 +451,7 @@ namespace NovetusLauncher // // label29 // - this.label29.Location = new System.Drawing.Point(152, 163); + this.label29.Location = new System.Drawing.Point(205, 163); this.label29.Name = "label29"; this.label29.Size = new System.Drawing.Size(60, 16); this.label29.TabIndex = 46; @@ -463,23 +459,13 @@ namespace NovetusLauncher // // label35 // - this.label35.Location = new System.Drawing.Point(10, 163); + this.label35.Location = new System.Drawing.Point(63, 163); this.label35.Name = "label35"; this.label35.Size = new System.Drawing.Size(65, 16); this.label35.TabIndex = 44; this.label35.Text = "Server Port"; this.label35.TextAlign = System.Drawing.ContentAlignment.TopCenter; // - // button20 - // - this.button20.Location = new System.Drawing.Point(292, 163); - this.button20.Name = "button20"; - this.button20.Size = new System.Drawing.Size(100, 46); - this.button20.TabIndex = 21; - this.button20.Text = "SERVER INFORMATION"; - this.button20.UseVisualStyleBackColor = true; - this.button20.Click += new System.EventHandler(this.Button20Click); - // // button18 // this.button18.Location = new System.Drawing.Point(204, 215); @@ -546,6 +532,60 @@ namespace NovetusLauncher this.listBox2.TabIndex = 2; this.listBox2.SelectedIndexChanged += new System.EventHandler(this.ListBox2SelectedIndexChanged); // + // tabPage4 + // + this.tabPage4.Controls.Add(this.textBox4); + this.tabPage4.Controls.Add(this.button24); + this.tabPage4.Controls.Add(this.treeView1); + this.tabPage4.Controls.Add(this.button6); + this.tabPage4.Location = new System.Drawing.Point(4, 22); + this.tabPage4.Name = "tabPage4"; + this.tabPage4.Size = new System.Drawing.Size(405, 258); + this.tabPage4.TabIndex = 10; + this.tabPage4.Text = "MAPS"; + this.tabPage4.UseVisualStyleBackColor = true; + // + // textBox4 + // + this.textBox4.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.textBox4.Location = new System.Drawing.Point(7, 143); + this.textBox4.Multiline = true; + this.textBox4.Name = "textBox4"; + this.textBox4.ReadOnly = true; + this.textBox4.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBox4.Size = new System.Drawing.Size(392, 110); + this.textBox4.TabIndex = 67; + // + // button24 + // + this.button24.Location = new System.Drawing.Point(7, 3); + this.button24.Name = "button24"; + this.button24.Size = new System.Drawing.Size(188, 23); + this.button24.TabIndex = 59; + this.button24.Text = "Refresh List"; + this.button24.UseVisualStyleBackColor = true; + this.button24.Click += new System.EventHandler(this.Button24Click); + // + // treeView1 + // + this.treeView1.HideSelection = false; + this.treeView1.Location = new System.Drawing.Point(7, 29); + this.treeView1.Name = "treeView1"; + this.treeView1.Size = new System.Drawing.Size(392, 108); + this.treeView1.TabIndex = 54; + this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.TreeView1AfterSelect); + // + // button6 + // + this.button6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button6.Location = new System.Drawing.Point(211, 3); + this.button6.Name = "button6"; + this.button6.Size = new System.Drawing.Size(188, 23); + this.button6.TabIndex = 56; + this.button6.Text = "Open Maps Folder"; + this.button6.UseVisualStyleBackColor = true; + this.button6.Click += new System.EventHandler(this.Button6Click); + // // tabPage6 // this.tabPage6.Controls.Add(this.button17); @@ -704,7 +744,7 @@ namespace NovetusLauncher this.tabPage7.Padding = new System.Windows.Forms.Padding(3); this.tabPage7.Size = new System.Drawing.Size(405, 258); this.tabPage7.TabIndex = 7; - this.tabPage7.Text = "CONSOLE"; + this.tabPage7.Text = "CMD"; // // richTextBox1 // @@ -800,17 +840,6 @@ namespace NovetusLauncher this.button26.UseVisualStyleBackColor = true; this.button26.Click += new System.EventHandler(this.button26_Click); // - // button25 - // - this.button25.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.button25.Location = new System.Drawing.Point(315, 31); - this.button25.Name = "button25"; - this.button25.Size = new System.Drawing.Size(63, 20); - this.button25.TabIndex = 56; - this.button25.Text = "Install Mod"; - this.button25.UseVisualStyleBackColor = true; - this.button25.Click += new System.EventHandler(this.button25_Click); - // // label7 // this.label7.Location = new System.Drawing.Point(274, 237); @@ -855,17 +884,6 @@ namespace NovetusLauncher this.label5.Text = "label5"; this.label5.TextAlign = System.Drawing.ContentAlignment.TopCenter; // - // button21 - // - this.button21.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.button21.Location = new System.Drawing.Point(380, 31); - this.button21.Name = "button21"; - this.button21.Size = new System.Drawing.Size(35, 20); - this.button21.TabIndex = 44; - this.button21.Text = "URI"; - this.button21.UseVisualStyleBackColor = true; - this.button21.Click += new System.EventHandler(this.Button21Click); - // // label8 // this.label8.Location = new System.Drawing.Point(8, 237); @@ -920,6 +938,28 @@ namespace NovetusLauncher this.button5.UseVisualStyleBackColor = true; this.button5.Click += new System.EventHandler(this.Button5Click); // + // button25 + // + this.button25.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button25.Location = new System.Drawing.Point(315, 31); + this.button25.Name = "button25"; + this.button25.Size = new System.Drawing.Size(63, 20); + this.button25.TabIndex = 56; + this.button25.Text = "Install Mod"; + this.button25.UseVisualStyleBackColor = true; + this.button25.Click += new System.EventHandler(this.button25_Click); + // + // button21 + // + this.button21.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button21.Location = new System.Drawing.Point(380, 31); + this.button21.Name = "button21"; + this.button21.Size = new System.Drawing.Size(35, 20); + this.button21.TabIndex = 44; + this.button21.Text = "URI"; + this.button21.UseVisualStyleBackColor = true; + this.button21.Click += new System.EventHandler(this.Button21Click); + // // textBox5 // this.textBox5.Location = new System.Drawing.Point(95, 53); @@ -1098,10 +1138,13 @@ namespace NovetusLauncher this.tabPage1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); this.tabPage2.ResumeLayout(false); + this.tabPage2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit(); this.tabPage3.ResumeLayout(false); this.tabPage3.PerformLayout(); + this.tabPage4.ResumeLayout(false); + this.tabPage4.PerformLayout(); this.tabPage6.ResumeLayout(false); this.tabPage7.ResumeLayout(false); this.tabPage8.ResumeLayout(false); @@ -1136,7 +1179,6 @@ namespace NovetusLauncher private System.Windows.Forms.TabPage tabPage8; private System.Windows.Forms.RichTextBox richTextBox1; private System.Windows.Forms.TabPage tabPage7; - private System.Windows.Forms.Button button20; private System.Windows.Forms.Button button19; private System.Windows.Forms.Button button18; private System.Windows.Forms.Button button16; @@ -1196,5 +1238,9 @@ namespace NovetusLauncher private System.Windows.Forms.Button button26; private System.Windows.Forms.Label label18; private System.Windows.Forms.CheckBox checkBox2; + private System.Windows.Forms.TabPage tabPage4; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.TextBox textBox4; } } diff --git a/NovetusLauncher/NovetusLauncher/MainForm.cs b/NovetusLauncher/NovetusLauncher/MainForm.cs index 2ae9315..96c5e97 100644 --- a/NovetusLauncher/NovetusLauncher/MainForm.cs +++ b/NovetusLauncher/NovetusLauncher/MainForm.cs @@ -209,10 +209,57 @@ namespace NovetusLauncher void tabControl1_SelectedIndexChanged(object sender, EventArgs e) { - if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage2"])//your specific tabname + if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage2"])//your specific tabname + { + string IP = SecurityFuncs.GetExternalIPAddress(); + string[] lines1 = { + SecurityFuncs.Base64Encode(IP), + SecurityFuncs.Base64Encode(GlobalVars.RobloxPort.ToString()), + SecurityFuncs.Base64Encode(GlobalVars.SelectedClient) + }; + string URI = "novetus://" + SecurityFuncs.Base64Encode(string.Join("|", lines1)); + string[] lines2 = { + SecurityFuncs.Base64Encode("localhost"), + SecurityFuncs.Base64Encode(GlobalVars.RobloxPort.ToString()), + SecurityFuncs.Base64Encode(GlobalVars.SelectedClient) + }; + string URI2 = "novetus://" + SecurityFuncs.Base64Encode(string.Join("|", lines2)); + string[] text = { + "Client: " + GlobalVars.SelectedClient, + "IP: " + IP, + "Port: " + GlobalVars.RobloxPort.ToString(), + "Map: " + GlobalVars.Map, + "Players: " + GlobalVars.PlayerLimit, + "Version: Novetus " + GlobalVars.Version, + "Online URI Link:", + URI, + "Local URI Link:", + URI2, + GlobalVars.IsWebServerOn == true ? "Web Server URL:" : "", + GlobalVars.IsWebServerOn == true ? "http://" + IP + ":" + GlobalVars.WebServer.Port.ToString() : "", + GlobalVars.IsWebServerOn == true ? "Local Web Server URL:" : "", + GlobalVars.IsWebServerOn == true ? GlobalVars.LocalWebServerURI : "" + }; + + foreach (string str in text) + { + if (!string.IsNullOrWhiteSpace(str)) + { + textBox3.AppendText(str); + textBox3.AppendText(Environment.NewLine); + } + } + treeView1.Nodes.Clear(); + _fieldsTreeCache.Nodes.Clear(); + textBox4.Text = ""; + listBox2.Items.Clear(); + listBox3.Items.Clear(); + listBox4.Items.Clear(); + } + else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage4"])//your specific tabname { string mapdir = GlobalVars.MapsDir; - TreeNodeHelper.ListDirectory(treeView1, mapdir); + TreeNodeHelper.ListDirectory(treeView1, mapdir, ".rbxl"); TreeNodeHelper.CopyNodes(treeView1.Nodes,_fieldsTreeCache.Nodes); treeView1.SelectedNode = TreeNodeHelper.SearchTreeView(GlobalVars.Map, treeView1.Nodes); treeView1.Focus(); @@ -220,7 +267,7 @@ namespace NovetusLauncher listBox3.Items.Clear(); listBox4.Items.Clear(); } - else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage3"])//your specific tabname + else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage3"])//your specific tabname { string clientdir = GlobalVars.ClientDir; DirectoryInfo dinfo = new DirectoryInfo(clientdir); @@ -232,7 +279,8 @@ namespace NovetusLauncher listBox2.SelectedItem = GlobalVars.SelectedClient; treeView1.Nodes.Clear(); _fieldsTreeCache.Nodes.Clear(); - listBox3.Items.Clear(); + textBox4.Text = ""; + listBox3.Items.Clear(); listBox4.Items.Clear(); } else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage6"])//your specific tabname @@ -243,13 +291,15 @@ namespace NovetusLauncher listBox4.Items.AddRange(lines_ports); treeView1.Nodes.Clear(); _fieldsTreeCache.Nodes.Clear(); - listBox2.Items.Clear(); + textBox4.Text = ""; + listBox2.Items.Clear(); } else { treeView1.Nodes.Clear(); _fieldsTreeCache.Nodes.Clear(); - listBox2.Items.Clear(); + textBox4.Text = ""; + listBox2.Items.Clear(); listBox3.Items.Clear(); listBox4.Items.Clear(); } @@ -1447,7 +1497,16 @@ namespace NovetusLauncher GlobalVars.Map = treeView1.SelectedNode.Text.ToString(); GlobalVars.MapPath = GlobalVars.BasePath + @"\\" + treeView1.SelectedNode.FullPath.ToString().Replace(@"\", @"\\"); label28.Text = GlobalVars.Map; - } + + if (File.Exists(GlobalVars.RootPath + @"\\" + treeView1.SelectedNode.FullPath.ToString().Replace(".rbxl", "") + "_desc.txt")) + { + textBox4.Text = File.ReadAllText(GlobalVars.RootPath + @"\\" + treeView1.SelectedNode.FullPath.ToString().Replace(".rbxl", "") + "_desc.txt"); + } + else + { + textBox4.Text = treeView1.SelectedNode.Text.ToString(); + } + } } void Button6Click(object sender, EventArgs e) @@ -1477,11 +1536,19 @@ namespace NovetusLauncher treeView1.Nodes.Clear(); _fieldsTreeCache.Nodes.Clear(); string mapdir = GlobalVars.MapsDir; - TreeNodeHelper.ListDirectory(treeView1, mapdir); + TreeNodeHelper.ListDirectory(treeView1, mapdir, ".rbxl"); TreeNodeHelper.CopyNodes(treeView1.Nodes,_fieldsTreeCache.Nodes); treeView1.SelectedNode = TreeNodeHelper.SearchTreeView(GlobalVars.Map, treeView1.Nodes); treeView1.Focus(); - } + if (File.Exists(GlobalVars.RootPath + @"\\" + treeView1.SelectedNode.FullPath.ToString().Replace(".rbxl", "") + "_desc.txt")) + { + textBox4.Text = File.ReadAllText(GlobalVars.RootPath + @"\\" + treeView1.SelectedNode.FullPath.ToString().Replace(".rbxl", "") + "_desc.txt"); + } + else + { + textBox4.Text = treeView1.SelectedNode.Text.ToString(); + } + } private void button25_Click(object sender, EventArgs e) {