From 8ed9ad9273b82719f6a6a51e580859b29e415287 Mon Sep 17 00:00:00 2001 From: Bitl Date: Sun, 9 Oct 2016 16:12:51 -0700 Subject: [PATCH] v1.1.2 --- .../RBXLegacyLauncher/MainForm.Designer.cs | 33 ++++++++++++++--- .../RBXLegacyLauncher/MainForm.cs | 35 ++++++++++--------- RBXLegacySetup.iss | 2 +- README.TXT | 8 +++-- 4 files changed, 54 insertions(+), 24 deletions(-) diff --git a/RBXLegacyLauncher/RBXLegacyLauncher/MainForm.Designer.cs b/RBXLegacyLauncher/RBXLegacyLauncher/MainForm.Designer.cs index aeaecab..c5a7270 100644 --- a/RBXLegacyLauncher/RBXLegacyLauncher/MainForm.Designer.cs +++ b/RBXLegacyLauncher/RBXLegacyLauncher/MainForm.Designer.cs @@ -50,6 +50,8 @@ namespace RBXLegacyLauncher this.label1 = new System.Windows.Forms.Label(); this.listBox1 = new System.Windows.Forms.ListBox(); this.tabPage4 = new System.Windows.Forms.TabPage(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); @@ -90,6 +92,7 @@ namespace RBXLegacyLauncher this.tabControl1.SelectedIndex = 0; this.tabControl1.Size = new System.Drawing.Size(398, 252); this.tabControl1.TabIndex = 1; + this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged); // // tabPage1 // @@ -167,8 +170,6 @@ namespace RBXLegacyLauncher this.tabPage2.TabIndex = 1; this.tabPage2.Text = "START SERVER"; this.tabPage2.UseVisualStyleBackColor = true; - this.tabPage2.Enter += new System.EventHandler(this.tabPage2_Enter); - this.tabPage2.Leave += new System.EventHandler(this.tabPage2_Leave); // // label2 // @@ -219,6 +220,8 @@ namespace RBXLegacyLauncher // // tabPage4 // + this.tabPage4.Controls.Add(this.label11); + this.tabPage4.Controls.Add(this.label10); this.tabPage4.Controls.Add(this.label9); this.tabPage4.Controls.Add(this.label8); this.tabPage4.Controls.Add(this.label7); @@ -232,6 +235,24 @@ namespace RBXLegacyLauncher this.tabPage4.Text = "ABOUT"; this.tabPage4.UseVisualStyleBackColor = true; // + // label11 + // + this.label11.Location = new System.Drawing.Point(206, 73); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(80, 23); + this.label11.TabIndex = 6; + this.label11.Text = "label11"; + this.label11.TextAlign = System.Drawing.ContentAlignment.TopCenter; + // + // label10 + // + this.label10.Location = new System.Drawing.Point(206, 57); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(80, 16); + this.label10.TabIndex = 5; + this.label10.Text = "Client Version:"; + this.label10.TextAlign = System.Drawing.ContentAlignment.TopCenter; + // // label9 // this.label9.Location = new System.Drawing.Point(6, 92); @@ -243,16 +264,16 @@ namespace RBXLegacyLauncher // // label8 // - this.label8.Location = new System.Drawing.Point(6, 73); + this.label8.Location = new System.Drawing.Point(88, 73); this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(378, 26); + this.label8.Size = new System.Drawing.Size(100, 19); this.label8.TabIndex = 3; this.label8.Text = "label8"; this.label8.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // label7 // - this.label7.Location = new System.Drawing.Point(143, 57); + this.label7.Location = new System.Drawing.Point(88, 57); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(100, 16); this.label7.TabIndex = 2; @@ -327,6 +348,8 @@ namespace RBXLegacyLauncher this.tabPage4.ResumeLayout(false); this.ResumeLayout(false); } + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label11; private System.Windows.Forms.Button button3; private System.Windows.Forms.CheckBox checkBox1; private System.Windows.Forms.Label label2; diff --git a/RBXLegacyLauncher/RBXLegacyLauncher/MainForm.cs b/RBXLegacyLauncher/RBXLegacyLauncher/MainForm.cs index 1bf7c0d..420b189 100644 --- a/RBXLegacyLauncher/RBXLegacyLauncher/MainForm.cs +++ b/RBXLegacyLauncher/RBXLegacyLauncher/MainForm.cs @@ -30,23 +30,23 @@ namespace RBXLegacyLauncher // TODO: Add constructor code after the InitializeComponent() call. // } - void tabPage2_Enter(object sender, EventArgs e) + void tabControl1_SelectedIndexChanged(object sender, EventArgs e) { - string mapdir = GlobalVars.ClientDir + @"\\content\\Maps"; - DirectoryInfo dinfo = new DirectoryInfo(mapdir); - FileInfo[] Files = dinfo.GetFiles("*.rbxl"); - foreach( FileInfo file in Files ) - { - this.listBox1.Items.Add(file.Name); - } - this.listBox1.SelectedIndex = 0; - } - void tabPage2_Leave(object sender, EventArgs e) - { - if (this.tabControl1.SelectedTab != tabPage2) - { - this.listBox1.Items.Clear(); - } + if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage2"])//your specific tabname + { + string mapdir = GlobalVars.ClientDir + @"\\content\\Maps"; + DirectoryInfo dinfo = new DirectoryInfo(mapdir); + FileInfo[] Files = dinfo.GetFiles("*.rbxl"); + foreach( FileInfo file in Files ) + { + this.listBox1.Items.Add(file.Name); + } + this.listBox1.SelectedIndex = 0; + } + else + { + this.listBox1.Items.Clear(); + } } void Button1Click(object sender, EventArgs e) { @@ -84,6 +84,9 @@ namespace RBXLegacyLauncher GlobalVars.IP = "localhost"; GlobalVars.Map = "Baseplate.rbxl"; GlobalVars.CloseOnLaunch = true; + string[] lines = File.ReadAllLines("version.txt"); //File is in System.IO + string version = lines[0]; + label11.Text = version; } void TextBox1TextChanged(object sender, EventArgs e) diff --git a/RBXLegacySetup.iss b/RBXLegacySetup.iss index 17f4274..47733fb 100644 --- a/RBXLegacySetup.iss +++ b/RBXLegacySetup.iss @@ -1,7 +1,7 @@ ; Script generated by the Inno Script Studio Wizard. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! -#define AppVer "1.1.1" +#define AppVer "1.1.2" [Setup] ; NOTE: The value of AppId uniquely identifies this application. diff --git a/README.TXT b/README.TXT index 1a31f81..c0996cc 100644 --- a/README.TXT +++ b/README.TXT @@ -9,10 +9,14 @@ RBXLegacy is a version of a late-2008 ROBLOX client, built to allow the user to ========= CHANGELOG ========= ----------------------------- +v1.1.2: +- Fixed the skybox on Sword Fights on the Heights, Rocket Arena, and Yorick's Resting Place. +- Fixed a bug where the Launcher would duplicate names of maps in the map list. +- The Launcher will now list the current version of RBXLegacy. v1.1.1: -- Fixed both Sword Fights on the Heights and Happy Home in Robloxia. +- Fixed Sword Fights on the Heights, Happy Home in Robloxia, and Crossroads. - Fixed a bug where the entire map list would disappear if you selected the options on top on the launcher. -- Removed Winter Rocket Arena as it is a non-ROBLOX-made level. +- Removed Winter Rocket Arena as it is a non-ROBLOX-made level. v1.1: - Added a new launcher. - Added a CHANGLOG section to the README.