- Added Settings for storing various Toolkit settings.

This commit is contained in:
Scionwest_cp 2009-12-08 16:44:24 -08:00
parent 7005b869e4
commit d96a175372
5 changed files with 47 additions and 4 deletions

View file

@ -19,7 +19,9 @@ namespace MudDesigner.Editors
public ToolkitLauncher()
{
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)

View file

@ -99,7 +99,7 @@
this.btnLogo.Name = "btnLogo";
this.btnLogo.Size = new System.Drawing.Size(627, 154);
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;
//
// tabEditors
@ -345,7 +345,7 @@
this.MinimizeBox = false;
this.Name = "ToolkitLauncher";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Mud Designer Beta";
this.Text = "Mud Designer Toolkit";
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
this.splitContainer1.ResumeLayout(false);

View file

@ -152,6 +152,7 @@
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<Compile Include="MudEngine\FileSystem\XmlSerialization.cs" />
<Compile Include="Settings.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

View file

@ -32,5 +32,6 @@ using System.Runtime.InteropServices;
// 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: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]

39
Mud Designer/Settings.cs Normal file
View 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;
}
}
}