adding credits, fixing frontend labels

This commit is contained in:
Hunter Rafferty
2024-02-05 02:37:51 -05:00
parent d7d6a060dc
commit 1dc01aeb6a
4 changed files with 99 additions and 37 deletions

View File

@@ -40,6 +40,9 @@ namespace AC_e_Reader_Card_Creator
this.editToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.editToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.menu_ClearInputs = new System.Windows.Forms.ToolStripMenuItem(); this.menu_ClearInputs = new System.Windows.Forms.ToolStripMenuItem();
this.menu_OpenFileDir = new System.Windows.Forms.ToolStripMenuItem(); this.menu_OpenFileDir = new System.Windows.Forms.ToolStripMenuItem();
this.menu_Help = new System.Windows.Forms.ToolStripMenuItem();
this.menu_GitRepo = new System.Windows.Forms.ToolStripMenuItem();
this.menu_About = new System.Windows.Forms.ToolStripMenuItem();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -148,7 +151,8 @@ namespace AC_e_Reader_Card_Creator
this.menuStrip1.ImageScalingSize = new System.Drawing.Size(24, 24); this.menuStrip1.ImageScalingSize = new System.Drawing.Size(24, 24);
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem1, this.fileToolStripMenuItem1,
this.editToolStripMenuItem1}); this.editToolStripMenuItem1,
this.menu_Help});
this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(1117, 33); this.menuStrip1.Size = new System.Drawing.Size(1117, 33);
@@ -217,6 +221,29 @@ namespace AC_e_Reader_Card_Creator
this.menu_OpenFileDir.Text = "Open File Directory"; this.menu_OpenFileDir.Text = "Open File Directory";
this.menu_OpenFileDir.Click += new System.EventHandler(this.OpenDecompressedFileDir); this.menu_OpenFileDir.Click += new System.EventHandler(this.OpenDecompressedFileDir);
// //
// menu_Help
//
this.menu_Help.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.menu_GitRepo,
this.menu_About});
this.menu_Help.Name = "menu_Help";
this.menu_Help.Size = new System.Drawing.Size(65, 29);
this.menu_Help.Text = "Help";
//
// menu_GitRepo
//
this.menu_GitRepo.Name = "menu_GitRepo";
this.menu_GitRepo.Size = new System.Drawing.Size(270, 34);
this.menu_GitRepo.Text = "GitHub Repo";
this.menu_GitRepo.Click += new System.EventHandler(this.GitRepoClick);
//
// menu_About
//
this.menu_About.Name = "menu_About";
this.menu_About.Size = new System.Drawing.Size(270, 34);
this.menu_About.Text = "About";
this.menu_About.Click += new System.EventHandler(this.AboutClick);
//
// fileToolStripMenuItem // fileToolStripMenuItem
// //
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
@@ -380,7 +407,7 @@ namespace AC_e_Reader_Card_Creator
this.btn_GenDotCode.TabIndex = 18; this.btn_GenDotCode.TabIndex = 18;
this.btn_GenDotCode.Text = "Generate Dot Code"; this.btn_GenDotCode.Text = "Generate Dot Code";
this.btn_GenDotCode.UseVisualStyleBackColor = true; this.btn_GenDotCode.UseVisualStyleBackColor = true;
this.btn_GenDotCode.Click += new System.EventHandler(this.GenerateDotCode); this.btn_GenDotCode.Click += new System.EventHandler(this.GenerateDotCodeClick);
// //
// header_Greeting // header_Greeting
// //
@@ -640,6 +667,9 @@ namespace AC_e_Reader_Card_Creator
private ToolStripMenuItem menu_ClearInputs; private ToolStripMenuItem menu_ClearInputs;
private ToolStripMenuItem menu_OpenCharCard; private ToolStripMenuItem menu_OpenCharCard;
private ToolStripMenuItem menu_OpenFileDir; private ToolStripMenuItem menu_OpenFileDir;
private ToolStripMenuItem menu_Help;
private ToolStripMenuItem menu_GitRepo;
private ToolStripMenuItem menu_About;
} }
} }

View File

@@ -486,7 +486,7 @@ namespace AC_e_Reader_Card_Creator
} }
} }
private void GenerateDotCode(object sender, EventArgs e) private void GenerateDotCodeClick(object sender, EventArgs e)
{ {
if (ValidInputs()) if (ValidInputs())
{ {
@@ -509,5 +509,29 @@ namespace AC_e_Reader_Card_Creator
printer_form.ShowDialog(); printer_form.ShowDialog();
} }
} }
private void GitRepoClick(object sender, EventArgs e)
{
string URL = "https://github.com/Hunter-Raff/e-ReaderCardCreator";
try
{
Process.Start(
new ProcessStartInfo
{
FileName = URL,
UseShellExecute = true
}
);
}
catch (Exception ex)
{
MessageBox.Show($"Failed to open web browser: {ex.Message}");
}
}
private void AboutClick(object sender, EventArgs e)
{
MessageBox.Show(Common.CREDIT, "e-Reader Character Card Creator");
}
} }
} }

View File

@@ -33,13 +33,13 @@
this.comboBox_DPI = new System.Windows.Forms.ComboBox(); this.comboBox_DPI = new System.Windows.Forms.ComboBox();
this.label_DotCodeDPI = new System.Windows.Forms.Label(); this.label_DotCodeDPI = new System.Windows.Forms.Label();
this.btn_SaveBMP = new System.Windows.Forms.Button(); this.btn_SaveBMP = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label(); this.label_Printer = new System.Windows.Forms.Label();
this.comboBox_Printer = new System.Windows.Forms.ComboBox(); this.comboBox_Printer = new System.Windows.Forms.ComboBox();
this.label4 = new System.Windows.Forms.Label(); this.label_dpiPrinter = new System.Windows.Forms.Label();
this.label_PrinterDPI = new System.Windows.Forms.Label(); this.label_PrinterDPI = new System.Windows.Forms.Label();
this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.picture_DotCode = new System.Windows.Forms.PictureBox();
btn_Print = new System.Windows.Forms.Button(); btn_Print = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.picture_DotCode)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// btn_Print // btn_Print
@@ -87,14 +87,14 @@
this.btn_SaveBMP.UseVisualStyleBackColor = true; this.btn_SaveBMP.UseVisualStyleBackColor = true;
this.btn_SaveBMP.Click += new System.EventHandler(this.SaveBMP); this.btn_SaveBMP.Click += new System.EventHandler(this.SaveBMP);
// //
// label3 // label_Printer
// //
this.label3.AutoSize = true; this.label_Printer.AutoSize = true;
this.label3.Location = new System.Drawing.Point(176, 130); this.label_Printer.Location = new System.Drawing.Point(176, 130);
this.label3.Name = "label3"; this.label_Printer.Name = "label_Printer";
this.label3.Size = new System.Drawing.Size(60, 19); this.label_Printer.Size = new System.Drawing.Size(60, 19);
this.label3.TabIndex = 6; this.label_Printer.TabIndex = 6;
this.label3.Text = "Printer"; this.label_Printer.Text = "Printer";
// //
// comboBox_Printer // comboBox_Printer
// //
@@ -106,14 +106,14 @@
this.comboBox_Printer.TabIndex = 7; this.comboBox_Printer.TabIndex = 7;
this.comboBox_Printer.SelectionChangeCommitted += new System.EventHandler(this.SelectPrinter); this.comboBox_Printer.SelectionChangeCommitted += new System.EventHandler(this.SelectPrinter);
// //
// label4 // label_dpiPrinter
// //
this.label4.AutoSize = true; this.label_dpiPrinter.AutoSize = true;
this.label4.Location = new System.Drawing.Point(471, 130); this.label_dpiPrinter.Location = new System.Drawing.Point(471, 130);
this.label4.Name = "label4"; this.label_dpiPrinter.Name = "label_dpiPrinter";
this.label4.Size = new System.Drawing.Size(143, 19); this.label_dpiPrinter.Size = new System.Drawing.Size(143, 19);
this.label4.TabIndex = 8; this.label_dpiPrinter.TabIndex = 8;
this.label4.Text = "Printer DPI (auto)"; this.label_dpiPrinter.Text = "Printer DPI (auto)";
// //
// label_PrinterDPI // label_PrinterDPI
// //
@@ -126,27 +126,27 @@
this.label_PrinterDPI.TabIndex = 9; this.label_PrinterDPI.TabIndex = 9;
this.label_PrinterDPI.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.label_PrinterDPI.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
// //
// pictureBox2 // picture_DotCode
// //
this.pictureBox2.Image = global::AC_e_Reader_Card_Creator.Properties.Resources.sample_dotcode; this.picture_DotCode.Image = global::AC_e_Reader_Card_Creator.Properties.Resources.sample_dotcode;
this.pictureBox2.InitialImage = global::AC_e_Reader_Card_Creator.Properties.Resources.sample_dotcode; this.picture_DotCode.InitialImage = global::AC_e_Reader_Card_Creator.Properties.Resources.sample_dotcode;
this.pictureBox2.Location = new System.Drawing.Point(31, 28); this.picture_DotCode.Location = new System.Drawing.Point(31, 28);
this.pictureBox2.Name = "pictureBox2"; this.picture_DotCode.Name = "picture_DotCode";
this.pictureBox2.Size = new System.Drawing.Size(991, 63); this.picture_DotCode.Size = new System.Drawing.Size(991, 63);
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.picture_DotCode.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox2.TabIndex = 11; this.picture_DotCode.TabIndex = 11;
this.pictureBox2.TabStop = false; this.picture_DotCode.TabStop = false;
// //
// Print_Frontend // Print_Frontend
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F); this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.ClientSize = new System.Drawing.Size(1061, 205); this.ClientSize = new System.Drawing.Size(1061, 205);
this.Controls.Add(this.pictureBox2); this.Controls.Add(this.picture_DotCode);
this.Controls.Add(this.label_PrinterDPI); this.Controls.Add(this.label_PrinterDPI);
this.Controls.Add(this.label4); this.Controls.Add(this.label_dpiPrinter);
this.Controls.Add(this.comboBox_Printer); this.Controls.Add(this.comboBox_Printer);
this.Controls.Add(this.label3); this.Controls.Add(this.label_Printer);
this.Controls.Add(btn_Print); this.Controls.Add(btn_Print);
this.Controls.Add(this.btn_SaveBMP); this.Controls.Add(this.btn_SaveBMP);
this.Controls.Add(this.label_DotCodeDPI); this.Controls.Add(this.label_DotCodeDPI);
@@ -157,7 +157,7 @@
this.MinimizeBox = false; this.MinimizeBox = false;
this.Name = "Print_Frontend"; this.Name = "Print_Frontend";
this.Text = "Print Dot Code"; this.Text = "Print Dot Code";
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.picture_DotCode)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@@ -168,10 +168,10 @@
private System.Windows.Forms.ComboBox comboBox_DPI; private System.Windows.Forms.ComboBox comboBox_DPI;
private System.Windows.Forms.Label label_DotCodeDPI; private System.Windows.Forms.Label label_DotCodeDPI;
private System.Windows.Forms.Button btn_SaveBMP; private System.Windows.Forms.Button btn_SaveBMP;
private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label_Printer;
private System.Windows.Forms.ComboBox comboBox_Printer; private System.Windows.Forms.ComboBox comboBox_Printer;
private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label_dpiPrinter;
private System.Windows.Forms.Label label_PrinterDPI; private System.Windows.Forms.Label label_PrinterDPI;
private System.Windows.Forms.PictureBox pictureBox2; private System.Windows.Forms.PictureBox picture_DotCode;
} }
} }

View File

@@ -16,6 +16,14 @@ namespace AC_e_Reader_Card_Creator.References
public static string VERSION = "v1.0.0"; public static string VERSION = "v1.0.0";
public static string CREDIT = "AC e-Reader Character Card Creator\n" +
VERSION + "\n" +
"Created by: Hunter R.\n\n" +
"External tools by:\n" +
"CaitSith2\n" +
"Tim Schuerewegen\n" +
"BlackShark";
public static string STATIONERY_LIST = @"Project Files\References\AC_Stationery_List.txt"; public static string STATIONERY_LIST = @"Project Files\References\AC_Stationery_List.txt";
public static string ITEM_LIST = @"Project Files\References\AC_Item_List.txt"; public static string ITEM_LIST = @"Project Files\References\AC_Item_List.txt";
public static string SENDER_LIST = @"Project Files\References\AC_Sender_List.txt"; public static string SENDER_LIST = @"Project Files\References\AC_Sender_List.txt";