From 8874f8e644012b7dde04b4af67dd8fdf1e408028 Mon Sep 17 00:00:00 2001 From: Venomalia <87765258+Venomalia@users.noreply.github.com> Date: Mon, 9 Dec 2024 00:50:28 +0100 Subject: [PATCH] add wiki and source code MenuItem Update README.md and Version --- EFSAdvent/Form1.Designer.cs | 24 ++++++++++++++++++++++-- EFSAdvent/Form1.cs | 20 +++++++++++++++++--- EFSAdvent/Properties/AssemblyInfo.cs | 8 ++++---- README.md | 3 ++- 4 files changed, 45 insertions(+), 10 deletions(-) diff --git a/EFSAdvent/Form1.Designer.cs b/EFSAdvent/Form1.Designer.cs index 19338ce..0bca8de 100644 --- a/EFSAdvent/Form1.Designer.cs +++ b/EFSAdvent/Form1.Designer.cs @@ -70,6 +70,7 @@ private void InitializeComponent() this.nearestNeighborToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.wikiToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.rightSideGroupBox = new System.Windows.Forms.GroupBox(); this.updateLayersButton = new System.Windows.Forms.Button(); this.buttonSaveLayers = new System.Windows.Forms.Button(); @@ -189,6 +190,7 @@ private void InitializeComponent() this.RootFolderPathTextBox = new System.Windows.Forms.TextBox(); this.ActorAttributesTip = new System.Windows.Forms.ToolTip(this.components); this.BottomGroupBox = new System.Windows.Forms.GroupBox(); + this.sourceCodeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.tileSheetPanel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tileSheetPictureBox)).BeginInit(); this.layersPanel.SuspendLayout(); @@ -593,7 +595,9 @@ private void InitializeComponent() // helpToolStripMenuItem // this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.aboutToolStripMenuItem}); + this.aboutToolStripMenuItem, + this.wikiToolStripMenuItem, + this.sourceCodeToolStripMenuItem}); this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20); this.helpToolStripMenuItem.Text = "Help"; @@ -601,10 +605,17 @@ private void InitializeComponent() // aboutToolStripMenuItem // this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; - this.aboutToolStripMenuItem.Size = new System.Drawing.Size(107, 22); + this.aboutToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.aboutToolStripMenuItem.Text = "About"; this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click); // + // wikiToolStripMenuItem + // + this.wikiToolStripMenuItem.Name = "wikiToolStripMenuItem"; + this.wikiToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.wikiToolStripMenuItem.Text = "Wiki"; + this.wikiToolStripMenuItem.Click += new System.EventHandler(this.wikiToolStripMenuItem_Click); + // // rightSideGroupBox // this.rightSideGroupBox.BackColor = System.Drawing.SystemColors.ControlLight; @@ -2077,6 +2088,13 @@ private void InitializeComponent() this.BottomGroupBox.TabIndex = 24; this.BottomGroupBox.TabStop = false; // + // sourceCodeToolStripMenuItem + // + this.sourceCodeToolStripMenuItem.Name = "sourceCodeToolStripMenuItem"; + this.sourceCodeToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.sourceCodeToolStripMenuItem.Text = "Source code"; + this.sourceCodeToolStripMenuItem.Click += new System.EventHandler(this.sourceCodeToolStripMenuItem_Click); + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -2333,6 +2351,8 @@ private void InitializeComponent() private ToolStripMenuItem mapAspngToolStripMenuItem; private ToolStripMenuItem levelAsArcToolStripMenuItem; private CheckBox ActorVariable4FlagCheckBox; + private ToolStripMenuItem wikiToolStripMenuItem; + private ToolStripMenuItem sourceCodeToolStripMenuItem; } } diff --git a/EFSAdvent/Form1.cs b/EFSAdvent/Form1.cs index f5bb97e..3baa6d1 100644 --- a/EFSAdvent/Form1.cs +++ b/EFSAdvent/Form1.cs @@ -14,8 +14,10 @@ namespace EFSAdvent { public partial class Form1 : Form { - const string VERSION = "1.4 [Venomalia]"; - private string BaseTitel = $"EFSAdvent {VERSION}"; + private const string VERSION = "1.5"; + private const string BaseTitel = "EFSAdvent " + VERSION + " [Venomalia]"; + private const string WikiUrl = "https://github.com/Venomalia/EFSAdvent/wiki"; + private const string SourceCodeUrl = "https://github.com/Venomalia/EFSAdvent"; const int ACTOR_PIXELS_PER_COORDINATE = 8; const string DEFAULT_SPRITE = "ActorDefault"; @@ -1109,11 +1111,23 @@ private void EnsureAllLayersAreEncoded(string path) private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { - MessageBox.Show($"Editor for Four Swords Adventures by JaytheHam. v{VERSION}" + MessageBox.Show($"Editor for Four Swords Adventures by JaytheHam & Venomalia. v{VERSION}" + "\nwww.jaytheham.com" + "\nSend comments, bug reports etc to: jaytheham@gmail.com", $"EFSAdvent version {VERSION}"); } + private void wikiToolStripMenuItem_Click(object sender, EventArgs e) + { + // Open the Wiki page in the default web browser + System.Diagnostics.Process.Start(WikiUrl); + } + + private void sourceCodeToolStripMenuItem_Click(object sender, EventArgs e) + { + // Open the Source code page in the default web browser + System.Diagnostics.Process.Start(SourceCodeUrl); + } + private void saveChangesToolStripMenuItem_Click(object sender, EventArgs e) { ShowSaveChangesDialog(); diff --git a/EFSAdvent/Properties/AssemblyInfo.cs b/EFSAdvent/Properties/AssemblyInfo.cs index 4c009bd..656e92e 100644 --- a/EFSAdvent/Properties/AssemblyInfo.cs +++ b/EFSAdvent/Properties/AssemblyInfo.cs @@ -5,11 +5,11 @@ // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("EFSAdvent")] -[assembly: AssemblyDescription("")] +[assembly: AssemblyDescription("A level editor for the Nintendo GameCube game Four Swords Adventures.")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Tsuri")] [assembly: AssemblyProduct("EFSAdvent")] -[assembly: AssemblyCopyright("Copyright © Tsuri 2009")] +[assembly: AssemblyCopyright("Copyright © Tsuri 2009 & Venomalia 2024")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("1.5.0.0")] +[assembly: AssemblyFileVersion("1.5.0.0")] diff --git a/README.md b/README.md index 25de13c..4f284c8 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,10 @@ This branch is an unoficial update based on the [source code](https://bitbucket. - Detailed documentation for a significant number of actors. - Shadow Battle Map vaules will be loaded and can be edited. - Highlights used layers. +- Export Level as .png. ## Goals Fully document all actor variables and their behavior. ## Preview -![grafik](https://github.com/user-attachments/assets/a5c24ac9-2eb2-49de-888c-218d9402205b) +![grafik](https://github.com/user-attachments/assets/b8545f2f-d7f2-4e26-95db-4a959b618be9)