diff --git a/YgoProPatcher/Client.Designer.cs b/YgoProPatcher/Client.Designer.cs index d2b97fd..75f96e8 100644 --- a/YgoProPatcher/Client.Designer.cs +++ b/YgoProPatcher/Client.Designer.cs @@ -59,6 +59,7 @@ private void InitializeComponent() this.MimimizeButton = new System.Windows.Forms.Button(); this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components); this.StartMinimizedCheckbox = new System.Windows.Forms.CheckBox(); + this.submitFaceButton = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.UpdateCheckerTimeNumeric)).BeginInit(); this.SuspendLayout(); // @@ -376,6 +377,17 @@ private void InitializeComponent() this.StartMinimizedCheckbox.Text = "Start minimized and\r\ncheck for updates"; this.StartMinimizedCheckbox.UseVisualStyleBackColor = true; // + // submitFaceButton + // + this.submitFaceButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.submitFaceButton.Location = new System.Drawing.Point(12, 379); + this.submitFaceButton.Name = "submitFaceButton"; + this.submitFaceButton.Size = new System.Drawing.Size(189, 62); + this.submitFaceButton.TabIndex = 30; + this.submitFaceButton.Text = "Click this if You want to \r\nsubmit Your own custom face icon for YGOPro2"; + this.submitFaceButton.UseVisualStyleBackColor = true; + this.submitFaceButton.Click += new System.EventHandler(this.FormSubmitButton_click); + // // YgoProPatcher // this.AcceptButton = this.UpdateButton; @@ -385,6 +397,7 @@ private void InitializeComponent() this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.CancelButton = this.cancelButton; this.ClientSize = new System.Drawing.Size(670, 450); + this.Controls.Add(this.submitFaceButton); this.Controls.Add(this.StartMinimizedCheckbox); this.Controls.Add(this.MimimizeButton); this.Controls.Add(this.UpdateWhenLabel); @@ -457,5 +470,6 @@ private void InitializeComponent() private System.Windows.Forms.Button MimimizeButton; private System.Windows.Forms.NotifyIcon notifyIcon1; private System.Windows.Forms.CheckBox StartMinimizedCheckbox; + private System.Windows.Forms.Button submitFaceButton; } } diff --git a/YgoProPatcher/Client.cs b/YgoProPatcher/Client.cs index a1aad8e..d27be26 100644 --- a/YgoProPatcher/Client.cs +++ b/YgoProPatcher/Client.cs @@ -21,7 +21,7 @@ public YgoProPatcher() { InitializeComponent(); - ServicePointManager.DefaultConnectionLimit = throttleValue+1; + ServicePointManager.DefaultConnectionLimit = throttleValue+2; List paths = LocalData.LoadFileToList("paths.txt"); YgoProLinksPath.Text = paths?[0]; YgoPro2Path.Text = paths?[1]; @@ -41,6 +41,7 @@ public YgoProPatcher() toolTip1.SetToolTip(UpdateWhenLabel, "This label tells you if/when the next check will occur or if it's on cooldown!"); toolTip1.SetToolTip(MimimizeButton, "This button makes the application minimize to taskbar!\nUseful if you want to check for updates without this window taking space!"); toolTip1.SetToolTip(StartMinimizedCheckbox, "This lets you make YgoProPatcher start in background,\nchecking for new updates in background!"); + toolTip1.SetToolTip(submitFaceButton, "This button will open you a website where you can submit a custom face icon\nthat others will be able to see if they also update using the patcher."); string version = Data.version; footerLabel.Text += version; CheckForNewVersionOfPatcher(version); @@ -820,6 +821,18 @@ private void YgoProPatcher_Load(object sender, EventArgs e) } } + + private void FormSubmitButton_click(object sender, EventArgs e) + { + try + { + System.Diagnostics.Process.Start(Data.FormLink); + } + catch + { + + } + } } }