interface change, crash fix

This commit is contained in:
Bitl 2020-10-16 09:45:28 -07:00
parent 97601fc251
commit 19da14f35e
5 changed files with 126 additions and 80 deletions

View File

@ -44,6 +44,7 @@ namespace NovetusLauncher
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LauncherFormCompact)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LauncherFormCompact));
this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage1 = new System.Windows.Forms.TabPage();
this.button36 = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.button7 = new System.Windows.Forms.Button(); this.button7 = new System.Windows.Forms.Button();
@ -57,6 +58,7 @@ namespace NovetusLauncher
this.label3 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox1 = new System.Windows.Forms.TextBox();
this.tabPage2 = new System.Windows.Forms.TabPage(); this.tabPage2 = new System.Windows.Forms.TabPage();
this.checkBox8 = new System.Windows.Forms.CheckBox();
this.label19 = new System.Windows.Forms.Label(); this.label19 = new System.Windows.Forms.Label();
this.textBox3 = new System.Windows.Forms.TextBox(); this.textBox3 = new System.Windows.Forms.TextBox();
this.checkBox4 = new System.Windows.Forms.CheckBox(); this.checkBox4 = new System.Windows.Forms.CheckBox();
@ -154,7 +156,6 @@ namespace NovetusLauncher
this.panel3 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel(); this.panel4 = new System.Windows.Forms.Panel();
this.button35 = new System.Windows.Forms.Button(); this.button35 = new System.Windows.Forms.Button();
this.checkBox8 = new System.Windows.Forms.CheckBox();
this.tabControl1.SuspendLayout(); this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout(); this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
@ -192,6 +193,7 @@ namespace NovetusLauncher
// //
// tabPage1 // tabPage1
// //
this.tabPage1.Controls.Add(this.button36);
this.tabPage1.Controls.Add(this.label2); this.tabPage1.Controls.Add(this.label2);
this.tabPage1.Controls.Add(this.label1); this.tabPage1.Controls.Add(this.label1);
this.tabPage1.Controls.Add(this.button7); this.tabPage1.Controls.Add(this.button7);
@ -214,10 +216,20 @@ namespace NovetusLauncher
this.tabPage1.ToolTipText = "Join a server via IP Address"; this.tabPage1.ToolTipText = "Join a server via IP Address";
this.tabPage1.UseVisualStyleBackColor = true; this.tabPage1.UseVisualStyleBackColor = true;
// //
// button36
//
this.button36.Location = new System.Drawing.Point(235, 32);
this.button36.Name = "button36";
this.button36.Size = new System.Drawing.Size(164, 34);
this.button36.TabIndex = 51;
this.button36.Text = "JOIN SERVER FROM SERVER BROWSER";
this.button36.UseVisualStyleBackColor = true;
this.button36.Click += new System.EventHandler(this.button36_Click);
//
// label2 // label2
// //
this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label2.Location = new System.Drawing.Point(6, 200); this.label2.Location = new System.Drawing.Point(6, 253);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(393, 2); this.label2.Size = new System.Drawing.Size(393, 2);
this.label2.TabIndex = 50; this.label2.TabIndex = 50;
@ -225,16 +237,16 @@ namespace NovetusLauncher
// label1 // label1
// //
this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label1.Location = new System.Drawing.Point(6, 91); this.label1.Location = new System.Drawing.Point(6, 105);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(393, 2); this.label1.Size = new System.Drawing.Size(393, 2);
this.label1.TabIndex = 49; this.label1.TabIndex = 49;
// //
// button7 // button7
// //
this.button7.Location = new System.Drawing.Point(333, 47); this.button7.Location = new System.Drawing.Point(175, 47);
this.button7.Name = "button7"; this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(54, 31); this.button7.Size = new System.Drawing.Size(54, 19);
this.button7.TabIndex = 48; this.button7.TabIndex = 48;
this.button7.Text = "RESET"; this.button7.Text = "RESET";
this.button7.UseVisualStyleBackColor = true; this.button7.UseVisualStyleBackColor = true;
@ -244,7 +256,7 @@ namespace NovetusLauncher
// //
this.label31.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.label31.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.label31.Location = new System.Drawing.Point(267, 5); this.label31.Location = new System.Drawing.Point(109, 5);
this.label31.Name = "label31"; this.label31.Name = "label31";
this.label31.Size = new System.Drawing.Size(120, 13); this.label31.Size = new System.Drawing.Size(120, 13);
this.label31.TabIndex = 47; this.label31.TabIndex = 47;
@ -253,9 +265,9 @@ namespace NovetusLauncher
// //
// button11 // button11
// //
this.button11.Location = new System.Drawing.Point(267, 47); this.button11.Location = new System.Drawing.Point(109, 47);
this.button11.Name = "button11"; this.button11.Name = "button11";
this.button11.Size = new System.Drawing.Size(60, 31); this.button11.Size = new System.Drawing.Size(60, 19);
this.button11.TabIndex = 46; this.button11.TabIndex = 46;
this.button11.Text = "SAVE"; this.button11.Text = "SAVE";
this.button11.UseVisualStyleBackColor = true; this.button11.UseVisualStyleBackColor = true;
@ -263,7 +275,7 @@ namespace NovetusLauncher
// //
// numericUpDown1 // numericUpDown1
// //
this.numericUpDown1.Location = new System.Drawing.Point(267, 21); this.numericUpDown1.Location = new System.Drawing.Point(109, 21);
this.numericUpDown1.Maximum = new decimal(new int[] { this.numericUpDown1.Maximum = new decimal(new int[] {
65535, 65535,
0, 0,
@ -286,9 +298,9 @@ namespace NovetusLauncher
// //
// button19 // button19
// //
this.button19.Location = new System.Drawing.Point(207, 212); this.button19.Location = new System.Drawing.Point(109, 72);
this.button19.Name = "button19"; this.button19.Name = "button19";
this.button19.Size = new System.Drawing.Size(192, 40); this.button19.Size = new System.Drawing.Size(192, 29);
this.button19.TabIndex = 16; this.button19.TabIndex = 16;
this.button19.Text = "PLAY SOLO"; this.button19.Text = "PLAY SOLO";
this.button19.UseVisualStyleBackColor = true; this.button19.UseVisualStyleBackColor = true;
@ -296,9 +308,9 @@ namespace NovetusLauncher
// //
// button10 // button10
// //
this.button10.Location = new System.Drawing.Point(64, 47); this.button10.Location = new System.Drawing.Point(7, 47);
this.button10.Name = "button10"; this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(137, 31); this.button10.Size = new System.Drawing.Size(96, 19);
this.button10.TabIndex = 15; this.button10.TabIndex = 15;
this.button10.Text = "SAVE SERVER"; this.button10.Text = "SAVE SERVER";
this.button10.UseVisualStyleBackColor = true; this.button10.UseVisualStyleBackColor = true;
@ -306,22 +318,22 @@ namespace NovetusLauncher
// //
// label4 // label4
// //
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.ForeColor = System.Drawing.Color.Red; this.label4.ForeColor = System.Drawing.Color.Red;
this.label4.Location = new System.Drawing.Point(6, 93); this.label4.Location = new System.Drawing.Point(6, 107);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(393, 107); this.label4.Size = new System.Drawing.Size(393, 136);
this.label4.TabIndex = 4; this.label4.TabIndex = 4;
this.label4.Text = resources.GetString("label4.Text"); this.label4.Text = resources.GetString("label4.Text");
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// button1 // button1
// //
this.button1.Location = new System.Drawing.Point(6, 212); this.button1.Location = new System.Drawing.Point(235, 6);
this.button1.Name = "button1"; this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(195, 40); this.button1.Size = new System.Drawing.Size(164, 23);
this.button1.TabIndex = 3; this.button1.TabIndex = 3;
this.button1.Text = "JOIN SERVER"; this.button1.Text = "JOIN SERVER FROM IP";
this.button1.UseVisualStyleBackColor = true; this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.Button1Click); this.button1.Click += new System.EventHandler(this.Button1Click);
// //
@ -329,18 +341,18 @@ namespace NovetusLauncher
// //
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.label3.Location = new System.Drawing.Point(16, 5); this.label3.Location = new System.Drawing.Point(4, 5);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(241, 13); this.label3.Size = new System.Drawing.Size(99, 13);
this.label3.TabIndex = 1; this.label3.TabIndex = 1;
this.label3.Text = "Server IP Address"; this.label3.Text = "Server IP Address";
this.label3.TextAlign = System.Drawing.ContentAlignment.TopCenter; this.label3.TextAlign = System.Drawing.ContentAlignment.TopCenter;
// //
// textBox1 // textBox1
// //
this.textBox1.Location = new System.Drawing.Point(41, 21); this.textBox1.Location = new System.Drawing.Point(6, 21);
this.textBox1.Name = "textBox1"; this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(189, 20); this.textBox1.Size = new System.Drawing.Size(97, 20);
this.textBox1.TabIndex = 0; this.textBox1.TabIndex = 0;
this.textBox1.Text = "localhost"; this.textBox1.Text = "localhost";
this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
@ -369,6 +381,18 @@ namespace NovetusLauncher
this.tabPage2.ToolTipText = "Start a server for other players to play"; this.tabPage2.ToolTipText = "Start a server for other players to play";
this.tabPage2.UseVisualStyleBackColor = true; this.tabPage2.UseVisualStyleBackColor = true;
// //
// checkBox8
//
this.checkBox8.AutoSize = true;
this.checkBox8.Location = new System.Drawing.Point(265, 189);
this.checkBox8.Name = "checkBox8";
this.checkBox8.Size = new System.Drawing.Size(83, 17);
this.checkBox8.TabIndex = 62;
this.checkBox8.Text = "Web Server";
this.checkBox8.UseVisualStyleBackColor = true;
this.checkBox8.CheckedChanged += new System.EventHandler(this.checkBox8_CheckedChanged);
this.checkBox8.Click += new System.EventHandler(this.CheckBox8Click);
//
// label19 // label19
// //
this.label19.AutoSize = true; this.label19.AutoSize = true;
@ -1336,18 +1360,6 @@ namespace NovetusLauncher
this.button35.Size = new System.Drawing.Size(75, 23); this.button35.Size = new System.Drawing.Size(75, 23);
this.button35.TabIndex = 0; this.button35.TabIndex = 0;
// //
// checkBox8
//
this.checkBox8.AutoSize = true;
this.checkBox8.Location = new System.Drawing.Point(265, 189);
this.checkBox8.Name = "checkBox8";
this.checkBox8.Size = new System.Drawing.Size(83, 17);
this.checkBox8.TabIndex = 62;
this.checkBox8.Text = "Web Server";
this.checkBox8.UseVisualStyleBackColor = true;
this.checkBox8.CheckedChanged += new System.EventHandler(this.checkBox8_CheckedChanged);
this.checkBox8.Click += new System.EventHandler(this.CheckBox8Click);
//
// LauncherFormCompact // LauncherFormCompact
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -1517,6 +1529,7 @@ namespace NovetusLauncher
private System.Windows.Forms.TextBox SearchBar; private System.Windows.Forms.TextBox SearchBar;
private System.Windows.Forms.Button SearchButton; private System.Windows.Forms.Button SearchButton;
private System.Windows.Forms.CheckBox checkBox8; private System.Windows.Forms.CheckBox checkBox8;
private System.Windows.Forms.Button button36;
//private System.Windows.Forms.CheckBox checkBox8; //private System.Windows.Forms.CheckBox checkBox8;
} }
} }

View File

@ -430,6 +430,11 @@ namespace NovetusLauncher
} }
void MainFormClose(object sender, CancelEventArgs e) void MainFormClose(object sender, CancelEventArgs e)
{
CloseEvent();
}
void CloseEvent()
{ {
if (!GlobalVars.LocalPlayMode) if (!GlobalVars.LocalPlayMode)
{ {
@ -1235,7 +1240,7 @@ namespace NovetusLauncher
break; break;
default: default:
GlobalVars.UserConfiguration.LauncherStyle = Settings.UIOptions.Style.Extended; GlobalVars.UserConfiguration.LauncherStyle = Settings.UIOptions.Style.Extended;
WriteConfigValues(); CloseEvent();
Application.Restart(); Application.Restart();
break; break;
} }
@ -1311,6 +1316,11 @@ namespace NovetusLauncher
WriteConfigValues(); WriteConfigValues();
Application.Restart(); Application.Restart();
} }
private void button36_Click(object sender, EventArgs e)
{
MessageBox.Show("no functionality");
}
#endregion #endregion
#region Functions #region Functions

View File

@ -122,7 +122,7 @@
- If you have a problem where you can't see your character, REGENERATE YOUR PLAYER ID THEN REJOIN THE SERVER. - If you have a problem where you can't see your character, REGENERATE YOUR PLAYER ID THEN REJOIN THE SERVER.
- If you tried to connect to the server and you get an error, REJOIN THE SERVER. - If you tried to connect to the server and you get an error, REJOIN THE SERVER.
- To reset your character, type !!!reset into chat. - To reset your character, type !!!reset into chat.
- Your tripcode will only be seen by you and the server host of any server you join. It is used to verify that you are a unique player. - Your tripcode will only be seen by you and the server host of any server you join. It is used to verify you.

View File

@ -72,6 +72,7 @@ namespace NovetusLauncher
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.tabControl1 = new TabControlWithoutHeader(); this.tabControl1 = new TabControlWithoutHeader();
this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage1 = new System.Windows.Forms.TabPage();
this.button37 = new System.Windows.Forms.Button();
this.label24 = new System.Windows.Forms.Label(); this.label24 = new System.Windows.Forms.Label();
this.label23 = new System.Windows.Forms.Label(); this.label23 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
@ -85,6 +86,7 @@ namespace NovetusLauncher
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox1 = new System.Windows.Forms.TextBox();
this.tabPage2 = new System.Windows.Forms.TabPage(); this.tabPage2 = new System.Windows.Forms.TabPage();
this.checkBox8 = new System.Windows.Forms.CheckBox();
this.label19 = new System.Windows.Forms.Label(); this.label19 = new System.Windows.Forms.Label();
this.textBox3 = new System.Windows.Forms.TextBox(); this.textBox3 = new System.Windows.Forms.TextBox();
this.checkBox4 = new System.Windows.Forms.CheckBox(); this.checkBox4 = new System.Windows.Forms.CheckBox();
@ -154,7 +156,6 @@ namespace NovetusLauncher
this.panel4 = new System.Windows.Forms.Panel(); this.panel4 = new System.Windows.Forms.Panel();
this.button35 = new System.Windows.Forms.Button(); this.button35 = new System.Windows.Forms.Button();
this.UAButton = new System.Windows.Forms.Button(); this.UAButton = new System.Windows.Forms.Button();
this.checkBox8 = new System.Windows.Forms.CheckBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.panel2.SuspendLayout(); this.panel2.SuspendLayout();
@ -486,6 +487,7 @@ namespace NovetusLauncher
// //
// tabPage1 // tabPage1
// //
this.tabPage1.Controls.Add(this.button37);
this.tabPage1.Controls.Add(this.label24); this.tabPage1.Controls.Add(this.label24);
this.tabPage1.Controls.Add(this.label23); this.tabPage1.Controls.Add(this.label23);
this.tabPage1.Controls.Add(this.label2); this.tabPage1.Controls.Add(this.label2);
@ -508,10 +510,20 @@ namespace NovetusLauncher
this.tabPage1.ToolTipText = "Join a server via IP Address"; this.tabPage1.ToolTipText = "Join a server via IP Address";
this.tabPage1.UseVisualStyleBackColor = true; this.tabPage1.UseVisualStyleBackColor = true;
// //
// button37
//
this.button37.Location = new System.Drawing.Point(311, 49);
this.button37.Name = "button37";
this.button37.Size = new System.Drawing.Size(293, 21);
this.button37.TabIndex = 53;
this.button37.Text = "JOIN SERVER FROM SERVER BROWSER";
this.button37.UseVisualStyleBackColor = true;
this.button37.Click += new System.EventHandler(this.button37_Click);
//
// label24 // label24
// //
this.label24.AutoSize = true; this.label24.AutoSize = true;
this.label24.Location = new System.Drawing.Point(365, 7); this.label24.Location = new System.Drawing.Point(224, 7);
this.label24.Name = "label24"; this.label24.Name = "label24";
this.label24.Size = new System.Drawing.Size(60, 13); this.label24.Size = new System.Drawing.Size(60, 13);
this.label24.TabIndex = 52; this.label24.TabIndex = 52;
@ -520,7 +532,7 @@ namespace NovetusLauncher
// label23 // label23
// //
this.label23.AutoSize = true; this.label23.AutoSize = true;
this.label23.Location = new System.Drawing.Point(200, 7); this.label23.Location = new System.Drawing.Point(59, 7);
this.label23.Name = "label23"; this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(92, 13); this.label23.Size = new System.Drawing.Size(92, 13);
this.label23.TabIndex = 51; this.label23.TabIndex = 51;
@ -529,7 +541,7 @@ namespace NovetusLauncher
// label2 // label2
// //
this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label2.Location = new System.Drawing.Point(9, 200); this.label2.Location = new System.Drawing.Point(6, 251);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(612, 2); this.label2.Size = new System.Drawing.Size(612, 2);
this.label2.TabIndex = 50; this.label2.TabIndex = 50;
@ -537,14 +549,14 @@ namespace NovetusLauncher
// label1 // label1
// //
this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label1.Location = new System.Drawing.Point(9, 80); this.label1.Location = new System.Drawing.Point(6, 125);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(612, 2); this.label1.Size = new System.Drawing.Size(612, 2);
this.label1.TabIndex = 49; this.label1.TabIndex = 49;
// //
// button7 // button7
// //
this.button7.Location = new System.Drawing.Point(395, 49); this.button7.Location = new System.Drawing.Point(254, 49);
this.button7.Name = "button7"; this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(51, 21); this.button7.Size = new System.Drawing.Size(51, 21);
this.button7.TabIndex = 48; this.button7.TabIndex = 48;
@ -554,7 +566,7 @@ namespace NovetusLauncher
// //
// button11 // button11
// //
this.button11.Location = new System.Drawing.Point(344, 49); this.button11.Location = new System.Drawing.Point(203, 49);
this.button11.Name = "button11"; this.button11.Name = "button11";
this.button11.Size = new System.Drawing.Size(45, 21); this.button11.Size = new System.Drawing.Size(45, 21);
this.button11.TabIndex = 46; this.button11.TabIndex = 46;
@ -564,7 +576,7 @@ namespace NovetusLauncher
// //
// numericUpDown1 // numericUpDown1
// //
this.numericUpDown1.Location = new System.Drawing.Point(344, 23); this.numericUpDown1.Location = new System.Drawing.Point(203, 23);
this.numericUpDown1.Maximum = new decimal(new int[] { this.numericUpDown1.Maximum = new decimal(new int[] {
65535, 65535,
0, 0,
@ -587,9 +599,9 @@ namespace NovetusLauncher
// //
// button19 // button19
// //
this.button19.Location = new System.Drawing.Point(325, 210); this.button19.Location = new System.Drawing.Point(163, 76);
this.button19.Name = "button19"; this.button19.Name = "button19";
this.button19.Size = new System.Drawing.Size(293, 36); this.button19.Size = new System.Drawing.Size(293, 30);
this.button19.TabIndex = 16; this.button19.TabIndex = 16;
this.button19.Text = "PLAY SOLO"; this.button19.Text = "PLAY SOLO";
this.button19.UseVisualStyleBackColor = true; this.button19.UseVisualStyleBackColor = true;
@ -597,9 +609,9 @@ namespace NovetusLauncher
// //
// button10 // button10
// //
this.button10.Location = new System.Drawing.Point(183, 49); this.button10.Location = new System.Drawing.Point(8, 49);
this.button10.Name = "button10"; this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(120, 21); this.button10.Size = new System.Drawing.Size(189, 21);
this.button10.TabIndex = 15; this.button10.TabIndex = 15;
this.button10.Text = "SAVE SERVER"; this.button10.Text = "SAVE SERVER";
this.button10.UseVisualStyleBackColor = true; this.button10.UseVisualStyleBackColor = true;
@ -607,28 +619,28 @@ namespace NovetusLauncher
// //
// label4 // label4
// //
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.ForeColor = System.Drawing.Color.Red; this.label4.ForeColor = System.Drawing.Color.Red;
this.label4.Location = new System.Drawing.Point(9, 89); this.label4.Location = new System.Drawing.Point(6, 127);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(613, 99); this.label4.Size = new System.Drawing.Size(613, 126);
this.label4.TabIndex = 4; this.label4.TabIndex = 4;
this.label4.Text = resources.GetString("label4.Text"); this.label4.Text = resources.GetString("label4.Text");
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// button1 // button1
// //
this.button1.Location = new System.Drawing.Point(10, 210); this.button1.Location = new System.Drawing.Point(311, 23);
this.button1.Name = "button1"; this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(293, 36); this.button1.Size = new System.Drawing.Size(293, 20);
this.button1.TabIndex = 3; this.button1.TabIndex = 3;
this.button1.Text = "JOIN SERVER"; this.button1.Text = "JOIN SERVER FROM IP";
this.button1.UseVisualStyleBackColor = true; this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.Button1Click); this.button1.Click += new System.EventHandler(this.Button1Click);
// //
// textBox1 // textBox1
// //
this.textBox1.Location = new System.Drawing.Point(149, 23); this.textBox1.Location = new System.Drawing.Point(8, 23);
this.textBox1.Name = "textBox1"; this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(189, 20); this.textBox1.Size = new System.Drawing.Size(189, 20);
this.textBox1.TabIndex = 0; this.textBox1.TabIndex = 0;
@ -659,6 +671,18 @@ namespace NovetusLauncher
this.tabPage2.ToolTipText = "Start a server for other players to play"; this.tabPage2.ToolTipText = "Start a server for other players to play";
this.tabPage2.UseVisualStyleBackColor = true; this.tabPage2.UseVisualStyleBackColor = true;
// //
// checkBox8
//
this.checkBox8.AutoSize = true;
this.checkBox8.Location = new System.Drawing.Point(379, 180);
this.checkBox8.Name = "checkBox8";
this.checkBox8.Size = new System.Drawing.Size(83, 17);
this.checkBox8.TabIndex = 61;
this.checkBox8.Text = "Web Server";
this.checkBox8.UseVisualStyleBackColor = true;
this.checkBox8.CheckedChanged += new System.EventHandler(this.checkBox8_CheckedChanged);
this.checkBox8.Click += new System.EventHandler(this.CheckBox8Click);
//
// label19 // label19
// //
this.label19.AutoSize = true; this.label19.AutoSize = true;
@ -1439,18 +1463,6 @@ namespace NovetusLauncher
this.UAButton.Size = new System.Drawing.Size(75, 23); this.UAButton.Size = new System.Drawing.Size(75, 23);
this.UAButton.TabIndex = 0; this.UAButton.TabIndex = 0;
// //
// checkBox8
//
this.checkBox8.AutoSize = true;
this.checkBox8.Location = new System.Drawing.Point(379, 180);
this.checkBox8.Name = "checkBox8";
this.checkBox8.Size = new System.Drawing.Size(83, 17);
this.checkBox8.TabIndex = 61;
this.checkBox8.Text = "Web Server";
this.checkBox8.UseVisualStyleBackColor = true;
this.checkBox8.CheckedChanged += new System.EventHandler(this.checkBox8_CheckedChanged);
this.checkBox8.Click += new System.EventHandler(this.CheckBox8Click);
//
// LauncherFormExtended // LauncherFormExtended
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -1615,6 +1627,7 @@ namespace NovetusLauncher
private System.Windows.Forms.Button SearchButton; private System.Windows.Forms.Button SearchButton;
private System.Windows.Forms.Button button36; private System.Windows.Forms.Button button36;
private System.Windows.Forms.CheckBox checkBox8; private System.Windows.Forms.CheckBox checkBox8;
private System.Windows.Forms.Button button37;
//private System.Windows.Forms.CheckBox checkBox8; //private System.Windows.Forms.CheckBox checkBox8;
} }
} }

View File

@ -464,19 +464,24 @@ namespace NovetusLauncher
void MainFormClose(object sender, CancelEventArgs e) void MainFormClose(object sender, CancelEventArgs e)
{ {
if (!GlobalVars.LocalPlayMode) CloseEvent();
{ }
WriteConfigValues();
} void CloseEvent()
if (GlobalVars.UserConfiguration.DiscordPresence) {
{ if (!GlobalVars.LocalPlayMode)
DiscordRPC.Shutdown(); {
} WriteConfigValues();
}
if (GlobalVars.UserConfiguration.DiscordPresence)
{
DiscordRPC.Shutdown();
}
if (GlobalVars.IsWebServerOn) if (GlobalVars.IsWebServerOn)
{ {
StopWebServer(); StopWebServer();
} }
} }
void ReadConfigValues(bool initial = false) void ReadConfigValues(bool initial = false)
{ {
@ -1391,7 +1396,7 @@ namespace NovetusLauncher
{ {
case 1: case 1:
GlobalVars.UserConfiguration.LauncherStyle = Settings.UIOptions.Style.Compact; GlobalVars.UserConfiguration.LauncherStyle = Settings.UIOptions.Style.Compact;
WriteConfigValues(); CloseEvent();
Application.Restart(); Application.Restart();
break; break;
default: default:
@ -1482,6 +1487,11 @@ namespace NovetusLauncher
WriteConfigValues(); WriteConfigValues();
Application.Restart(); Application.Restart();
} }
private void button37_Click(object sender, EventArgs e)
{
MessageBox.Show("no functionality");
}
#endregion #endregion
#region Functions #region Functions
@ -1501,7 +1511,7 @@ namespace NovetusLauncher
}; };
} }
#endregion #endregion
} }
#endregion #endregion
} }