diff --git a/AboutPopup.Designer.cs b/AboutPopup.Designer.cs index efb25f8..f055d76 100644 --- a/AboutPopup.Designer.cs +++ b/AboutPopup.Designer.cs @@ -29,6 +29,8 @@ protected override void Dispose(bool disposing) private void InitializeComponent() { this.closeButton = new AstroModLoader.CoolButton(); + this.licenseButton = new AstroModLoader.CoolButton(); + this.thirdPartyButton = new AstroModLoader.CoolButton(); this.SuspendLayout(); // // closeButton @@ -39,7 +41,7 @@ private void InitializeComponent() this.closeButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.closeButton.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.closeButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(225)))), ((int)(((byte)(225))))); - this.closeButton.Location = new System.Drawing.Point(12, 223); + this.closeButton.Location = new System.Drawing.Point(12, 226); this.closeButton.MinimumSize = new System.Drawing.Size(0, 26); this.closeButton.Name = "closeButton"; this.closeButton.Size = new System.Drawing.Size(75, 26); @@ -48,12 +50,48 @@ private void InitializeComponent() this.closeButton.UseVisualStyleBackColor = false; this.closeButton.Click += new System.EventHandler(this.closeButton_Click); // + // licenseButton + // + this.licenseButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.licenseButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.licenseButton.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(231)))), ((int)(((byte)(149))))); + this.licenseButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.licenseButton.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.licenseButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(225)))), ((int)(((byte)(225))))); + this.licenseButton.Location = new System.Drawing.Point(271, 226); + this.licenseButton.MinimumSize = new System.Drawing.Size(0, 26); + this.licenseButton.Name = "licenseButton"; + this.licenseButton.Size = new System.Drawing.Size(92, 26); + this.licenseButton.TabIndex = 2; + this.licenseButton.Text = "View license"; + this.licenseButton.UseVisualStyleBackColor = false; + this.licenseButton.Click += new System.EventHandler(this.licenseButton_Click); + // + // thirdPartyButton + // + this.thirdPartyButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.thirdPartyButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.thirdPartyButton.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(231)))), ((int)(((byte)(149))))); + this.thirdPartyButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.thirdPartyButton.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.thirdPartyButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(225)))), ((int)(((byte)(225))))); + this.thirdPartyButton.Location = new System.Drawing.Point(109, 226); + this.thirdPartyButton.MinimumSize = new System.Drawing.Size(0, 26); + this.thirdPartyButton.Name = "thirdPartyButton"; + this.thirdPartyButton.Size = new System.Drawing.Size(156, 26); + this.thirdPartyButton.TabIndex = 1; + this.thirdPartyButton.Text = "View 3rd-party software"; + this.thirdPartyButton.UseVisualStyleBackColor = false; + this.thirdPartyButton.Click += new System.EventHandler(this.thirdPartyButton_Click); + // // AboutPopup // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(42)))), ((int)(((byte)(45))))); - this.ClientSize = new System.Drawing.Size(359, 261); + this.ClientSize = new System.Drawing.Size(372, 264); + this.Controls.Add(this.thirdPartyButton); + this.Controls.Add(this.licenseButton); this.Controls.Add(this.closeButton); this.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(225)))), ((int)(((byte)(225))))); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; @@ -66,5 +104,7 @@ private void InitializeComponent() #endregion private CoolButton closeButton; + private CoolButton licenseButton; + private CoolButton thirdPartyButton; } } \ No newline at end of file diff --git a/AboutPopup.cs b/AboutPopup.cs index 652b59c..a05dbba 100644 --- a/AboutPopup.cs +++ b/AboutPopup.cs @@ -1,11 +1,5 @@ using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Diagnostics; using System.Windows.Forms; namespace AstroModLoader @@ -21,5 +15,15 @@ private void closeButton_Click(object sender, EventArgs e) { this.Close(); } + + private void licenseButton_Click(object sender, EventArgs e) + { + Process.Start("https://github.com/AstroTechies/AstroModLoader/blob/master/LICENSE.md"); + } + + private void thirdPartyButton_Click(object sender, EventArgs e) + { + Process.Start("https://github.com/AstroTechies/AstroModLoader/blob/master/NOTICE.md"); + } } } diff --git a/README.md b/README.md index 831ffb6..26080f3 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ +[![Discord](https://img.shields.io/discord/774729322674126858.svg?style=flat-square)](https://discord.gg/bBqdVYxu4k) +[![Release](https://img.shields.io/github/v/release/AstroTechies/AstroModLoader.svg?style=flat-square)](https://github.com/AstroTechies/AstroModLoader/releases/latest) +[![Downloads](https://img.shields.io/github/downloads/AstroTechies/AstroModLoader/total.svg?style=flat-square)](https://github.com/AstroTechies/AstroModLoader/releases) +[![Stars](https://img.shields.io/github/stars/AstroTechies/AstroModLoader.svg?style=flat-square)](https://github.com/AstroTechies/AstroModLoader/stargazers) +[![Issues](https://img.shields.io/github/issues/AstroTechies/AstroModLoader.svg?style=flat-square)](https://github.com/AstroTechies/AstroModLoader/issues) +[![License](https://img.shields.io/github/license/AstroTechies/AstroModLoader.svg?style=flat-square)](https://github.com/AstroTechies/AstroModLoader/blob/master/LICENSE.md) +