Add in credits via the [?] form button.

This commit is contained in:
Kurt
2015-09-20 04:01:08 -07:00
parent 6ac1c05f6b
commit c37641cde5
2 changed files with 18 additions and 4 deletions

2
Main.Designer.cs generated
View File

@@ -97,12 +97,14 @@ private void InitializeComponent()
this.Controls.Add(this.CB_Friend);
this.Controls.Add(this.B_Friend);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.HelpButton = true;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Main";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "AC:NL Save Editor";
this.HelpButtonClicked += new System.ComponentModel.CancelEventHandler(this.clickHelp);
this.ResumeLayout(false);
}

20
Main.cs
View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Threading;
@@ -48,7 +49,6 @@ private void tabMain_DragDrop(object sender, DragEventArgs e)
return;
}
string path = files[0]; // open first D&D
long len = new FileInfo(files[0]).Length;
if (len == 0x80000 || len == 0xC0000 || len == 0x121000 || len == 0x130000) // RAM
{
@@ -152,7 +152,7 @@ private void clickExhibition(object sender, EventArgs e)
catch (Exception ex)
{
// Error
MessageBox.Show("Error:" + Environment.NewLine + ex);
Util.Error("Error:" + Environment.NewLine + ex);
}
}
private void clickGarden(object sender, EventArgs e)
@@ -175,7 +175,7 @@ private void clickGarden(object sender, EventArgs e)
catch (Exception ex)
{
// Error
MessageBox.Show("Error:" + Environment.NewLine + ex);
Util.Error("Error:" + Environment.NewLine + ex);
}
}
private void clickFriend(object sender, EventArgs e)
@@ -198,8 +198,20 @@ private void clickFriend(object sender, EventArgs e)
catch (Exception ex)
{
// Error
MessageBox.Show("Error:" + Environment.NewLine + ex);
Util.Error("Error:" + Environment.NewLine + ex);
}
}
private void clickHelp(object sender, CancelEventArgs e)
{
Util.Alert(String.Format("NLSE - By Kaphotics{0}" +
"{0}" +
"To begin, drag the folder that contains your exported save file (garden.dat) onto the program window.{0}" +
"{0}" +
"Credits:{0}" +
"Big thanks to marc_max (ACNL Save Editor), NeoKamek (LeafTools), and the many other contributors to the scene!",
Environment.NewLine));
e.Cancel = true; // remove ? cursor
}
}
}