- Added Settings for storing various Toolkit settings.
This commit is contained in:
parent
7005b869e4
commit
d96a175372
5 changed files with 47 additions and 4 deletions
|
@ -19,7 +19,9 @@ namespace MudDesigner.Editors
|
||||||
public ToolkitLauncher()
|
public ToolkitLauncher()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
this.Text = "Mud Designer Preview Release " + version;
|
this.Text = "Mud Designer Toolkit " + Settings.GetVersion();
|
||||||
|
|
||||||
|
Settings settings = new Settings();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btnProjectSettings_Click(object sender, EventArgs e)
|
private void btnProjectSettings_Click(object sender, EventArgs e)
|
||||||
|
|
4
Mud Designer/Editors/ToolkitLauncher.designer.cs
generated
4
Mud Designer/Editors/ToolkitLauncher.designer.cs
generated
|
@ -99,7 +99,7 @@
|
||||||
this.btnLogo.Name = "btnLogo";
|
this.btnLogo.Name = "btnLogo";
|
||||||
this.btnLogo.Size = new System.Drawing.Size(627, 154);
|
this.btnLogo.Size = new System.Drawing.Size(627, 154);
|
||||||
this.btnLogo.TabIndex = 0;
|
this.btnLogo.TabIndex = 0;
|
||||||
this.btnLogo.Text = "MUD Designer HUB \r\nPreview Release 1\r\n";
|
this.btnLogo.Text = "MUD Designer Toolkit\r\n";
|
||||||
this.btnLogo.UseVisualStyleBackColor = false;
|
this.btnLogo.UseVisualStyleBackColor = false;
|
||||||
//
|
//
|
||||||
// tabEditors
|
// tabEditors
|
||||||
|
@ -345,7 +345,7 @@
|
||||||
this.MinimizeBox = false;
|
this.MinimizeBox = false;
|
||||||
this.Name = "ToolkitLauncher";
|
this.Name = "ToolkitLauncher";
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||||
this.Text = "Mud Designer Beta";
|
this.Text = "Mud Designer Toolkit";
|
||||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||||
this.splitContainer1.ResumeLayout(false);
|
this.splitContainer1.ResumeLayout(false);
|
||||||
|
|
|
@ -152,6 +152,7 @@
|
||||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="MudEngine\FileSystem\XmlSerialization.cs" />
|
<Compile Include="MudEngine\FileSystem\XmlSerialization.cs" />
|
||||||
|
<Compile Include="Settings.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
|
|
@ -32,5 +32,6 @@ using System.Runtime.InteropServices;
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
//[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
|
|
39
Mud Designer/Settings.cs
Normal file
39
Mud Designer/Settings.cs
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace MudDesigner
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Toolkit settings, not related to the MUD engine or project.
|
||||||
|
/// Saved using the Engines Filesystem.
|
||||||
|
/// </summary>
|
||||||
|
public sealed class Settings
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Various development stages that the kit can be in.
|
||||||
|
/// </summary>
|
||||||
|
public enum KitStages
|
||||||
|
{
|
||||||
|
Preview_Release,
|
||||||
|
Development_Source_Only,
|
||||||
|
Alpha,
|
||||||
|
Beta,
|
||||||
|
Final,
|
||||||
|
}
|
||||||
|
#warning Reminder: Change Settings.VersionStage to KitStages.Preview upon release.
|
||||||
|
|
||||||
|
public static KitStages VersionStage = KitStages.Development_Source_Only;
|
||||||
|
|
||||||
|
public static string GetVersion()
|
||||||
|
{
|
||||||
|
string stage = VersionStage.ToString().Replace("_", " ");
|
||||||
|
Version version = new Version(Application.ProductVersion);
|
||||||
|
string versionID = version.Major + "." + version.Minor + "." + version.Revision + ":" + version.Build;
|
||||||
|
|
||||||
|
return stage + " " + versionID;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue