diff options
Diffstat (limited to 'Project Ports')
| -rw-r--r-- | Project Ports/AboutPorts.Designer.cs | 1 | ||||
| -rw-r--r-- | Project Ports/App.config | 3 | ||||
| -rw-r--r-- | Project Ports/Desktop.Designer.cs | 20 | ||||
| -rw-r--r-- | Project Ports/Desktop.cs | 1 | ||||
| -rw-r--r-- | Project Ports/Desktop.resx | 3 | ||||
| -rw-r--r-- | Project Ports/MainMenu.Designer.cs | 26 | ||||
| -rw-r--r-- | Project Ports/MainMenu.cs | 2 | ||||
| -rw-r--r-- | Project Ports/Properties/Settings.Designer.cs | 14 | ||||
| -rw-r--r-- | Project Ports/Properties/Settings.settings | 3 |
9 files changed, 56 insertions, 17 deletions
diff --git a/Project Ports/AboutPorts.Designer.cs b/Project Ports/AboutPorts.Designer.cs index b086c0a..046ca5a 100644 --- a/Project Ports/AboutPorts.Designer.cs +++ b/Project Ports/AboutPorts.Designer.cs @@ -48,6 +48,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.richTextBox1); this.Name = "AboutPorts"; this.Size = new System.Drawing.Size(432, 244); diff --git a/Project Ports/App.config b/Project Ports/App.config index 34061dd..97c0438 100644 --- a/Project Ports/App.config +++ b/Project Ports/App.config @@ -16,6 +16,9 @@ <setting name="chatterStoryline" serializeAs="String"> <value>True</value> </setting> + <setting name="version" serializeAs="String"> + <value>Alpha 0.2</value> + </setting> </Project_Ports.Properties.Settings> </userSettings> </configuration>
\ No newline at end of file diff --git a/Project Ports/Desktop.Designer.cs b/Project Ports/Desktop.Designer.cs index a3c538d..8e0beeb 100644 --- a/Project Ports/Desktop.Designer.cs +++ b/Project Ports/Desktop.Designer.cs @@ -45,6 +45,7 @@ this.playerName = new System.Windows.Forms.Label(); this.taskBar = new System.Windows.Forms.Panel(); this.appButton = new System.Windows.Forms.Button(); + this.desktopWatermark = new System.Windows.Forms.Label(); this.appMenu.SuspendLayout(); this.programStrip.SuspendLayout(); this.panel1.SuspendLayout(); @@ -88,7 +89,7 @@ this.programStrip.Location = new System.Drawing.Point(9, 349); this.programStrip.Name = "programStrip"; this.programStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; - this.programStrip.Size = new System.Drawing.Size(79, 25); + this.programStrip.Size = new System.Drawing.Size(77, 25); this.programStrip.TabIndex = 2; this.programStrip.Text = "toolStrip1"; // @@ -213,12 +214,25 @@ this.appButton.UseVisualStyleBackColor = true; this.appButton.Click += new System.EventHandler(this.appButton_Click); // + // desktopWatermark + // + this.desktopWatermark.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.desktopWatermark.AutoSize = true; + this.desktopWatermark.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.desktopWatermark.ForeColor = System.Drawing.Color.Black; + this.desktopWatermark.Location = new System.Drawing.Point(854, 515); + this.desktopWatermark.Name = "desktopWatermark"; + this.desktopWatermark.Size = new System.Drawing.Size(136, 18); + this.desktopWatermark.TabIndex = 5; + this.desktopWatermark.Text = "desktopWatermark"; + // // Desktop // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.SystemColors.WindowFrame; + this.BackColor = System.Drawing.Color.Silver; this.ClientSize = new System.Drawing.Size(1066, 560); + this.Controls.Add(this.desktopWatermark); this.Controls.Add(this.taskBar); this.Controls.Add(this.appMenu); this.ForeColor = System.Drawing.Color.White; @@ -237,6 +251,7 @@ this.taskBar.ResumeLayout(false); this.taskBar.PerformLayout(); this.ResumeLayout(false); + this.PerformLayout(); } @@ -257,5 +272,6 @@ private System.Windows.Forms.ToolStripMenuItem chatterToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem settingsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem quantumNetBrowserToolStripMenuItem; + private System.Windows.Forms.Label desktopWatermark; } }
\ No newline at end of file diff --git a/Project Ports/Desktop.cs b/Project Ports/Desktop.cs index 8f37a51..2697ee6 100644 --- a/Project Ports/Desktop.cs +++ b/Project Ports/Desktop.cs @@ -54,6 +54,7 @@ namespace Project_Ports MessageBox.Show("You have set the build to \"Debug\" there are some features that is disabled in this build."); #endif dclock.Start(); + desktopWatermark.Text = "Project: Ports " + Properties.Settings.Default.version + Environment.NewLine + "Working Progress"; appMenu.Hide(); //TODO: Display player name in app menu //playerName.Text = PortEngine.Properties.Settings. diff --git a/Project Ports/Desktop.resx b/Project Ports/Desktop.resx index c218578..d77d5fb 100644 --- a/Project Ports/Desktop.resx +++ b/Project Ports/Desktop.resx @@ -123,6 +123,9 @@ <metadata name="programStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>21, 15</value> </metadata> + <metadata name="programStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>21, 15</value> + </metadata> <metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>True</value> </metadata> diff --git a/Project Ports/MainMenu.Designer.cs b/Project Ports/MainMenu.Designer.cs index 70478ca..c56d105 100644 --- a/Project Ports/MainMenu.Designer.cs +++ b/Project Ports/MainMenu.Designer.cs @@ -32,7 +32,7 @@ this.label2 = new System.Windows.Forms.Label(); this.btnAbout = new System.Windows.Forms.Button(); this.wbPortsNews = new System.Windows.Forms.WebBrowser(); - this.label3 = new System.Windows.Forms.Label(); + this.portsVersion = new System.Windows.Forms.Label(); this.btnExit = new System.Windows.Forms.Button(); this.panel1 = new System.Windows.Forms.Panel(); this.panel1.SuspendLayout(); @@ -93,17 +93,17 @@ this.wbPortsNews.TabIndex = 5; this.wbPortsNews.Url = new System.Uri("https://portsupdate.tumblr.com/", System.UriKind.Absolute); // - // label3 + // portsVersion // - this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); - this.label3.AutoSize = true; - this.label3.Font = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label3.ForeColor = System.Drawing.Color.White; - this.label3.Location = new System.Drawing.Point(13, 66); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(79, 13); - this.label3.TabIndex = 6; - this.label3.Text = "Alpha 0.2"; + this.portsVersion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); + this.portsVersion.AutoSize = true; + this.portsVersion.Font = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.portsVersion.ForeColor = System.Drawing.Color.White; + this.portsVersion.Location = new System.Drawing.Point(13, 66); + this.portsVersion.Name = "portsVersion"; + this.portsVersion.Size = new System.Drawing.Size(103, 13); + this.portsVersion.TabIndex = 6; + this.portsVersion.Text = "portsVersion"; // // btnExit // @@ -123,7 +123,7 @@ this.panel1.Controls.Add(this.btnPlay); this.panel1.Controls.Add(this.btnExit); this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label3); + this.panel1.Controls.Add(this.portsVersion); this.panel1.Controls.Add(this.btnAbout); this.panel1.Location = new System.Drawing.Point(-1, 451); this.panel1.Name = "panel1"; @@ -155,7 +155,7 @@ private System.Windows.Forms.Label label2; private System.Windows.Forms.Button btnAbout; private System.Windows.Forms.WebBrowser wbPortsNews; - private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label portsVersion; private System.Windows.Forms.Button btnExit; private System.Windows.Forms.Panel panel1; } diff --git a/Project Ports/MainMenu.cs b/Project Ports/MainMenu.cs index 225e2cf..c2cfbec 100644 --- a/Project Ports/MainMenu.cs +++ b/Project Ports/MainMenu.cs @@ -70,7 +70,7 @@ namespace Project_Ports private void MainMenu_Load(object sender, EventArgs e) { - + portsVersion.Text = Properties.Settings.Default.version; } private void btnDebugMode_Click(object sender, EventArgs e) diff --git a/Project Ports/Properties/Settings.Designer.cs b/Project Ports/Properties/Settings.Designer.cs index b141875..c9730c8 100644 --- a/Project Ports/Properties/Settings.Designer.cs +++ b/Project Ports/Properties/Settings.Designer.cs @@ -12,7 +12,7 @@ namespace Project_Ports.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.6.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.8.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); @@ -46,5 +46,17 @@ namespace Project_Ports.Properties { this["chatterStoryline"] = value; } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("Alpha 0.2")] + public string version { + get { + return ((string)(this["version"])); + } + set { + this["version"] = value; + } + } } } diff --git a/Project Ports/Properties/Settings.settings b/Project Ports/Properties/Settings.settings index 9ed20d1..0d54ca1 100644 --- a/Project Ports/Properties/Settings.settings +++ b/Project Ports/Properties/Settings.settings @@ -8,5 +8,8 @@ <Setting Name="chatterStoryline" Type="System.Boolean" Scope="User"> <Value Profile="(Default)">True</Value> </Setting> + <Setting Name="version" Type="System.String" Scope="User"> + <Value Profile="(Default)">Alpha 0.2</Value> + </Setting> </Settings> </SettingsFile>
\ No newline at end of file |
