From 6a300263c27d7cc0f7661f373a7f7a9d5203c3ff Mon Sep 17 00:00:00 2001 From: lempamo Date: Tue, 4 Jul 2017 18:24:33 -0400 Subject: A few theming things --- .../Win95Apps/WinClassicThemePanel.Designer.cs | 72 +++++++++++++ .../OS/Win95/Win95Apps/WinClassicThemePanel.cs | 20 ++++ .../OS/Win95/Win95Apps/WinClassicThemePanel.resx | 120 +++++++++++++++++++++ TimeHACK.Main/Properties/Resources.Designer.cs | 10 ++ TimeHACK.Main/Properties/Resources.resx | 3 + .../WinClassic/WinClassicDisplayExample.png | Bin 0 -> 1353 bytes .../SaveDialogs/SaveFileTroubleShooter.cs | 8 +- TimeHACK.Main/TimeHACK.Main.csproj | 11 ++ 8 files changed, 240 insertions(+), 4 deletions(-) create mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.Designer.cs create mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.cs create mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.resx create mode 100644 TimeHACK.Main/Resources/WinClassic/WinClassicDisplayExample.png (limited to 'TimeHACK.Main') diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.Designer.cs new file mode 100644 index 0000000..91ea2c6 --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.Designer.cs @@ -0,0 +1,72 @@ +namespace TimeHACK.OS.Win95.Win95Apps +{ + partial class WinClassicThemePanel + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.SuspendLayout(); + // + // pictureBox1 + // + this.pictureBox1.BackgroundImage = global::TimeHACK.Properties.Resources.WinClassicDisplayExample; + this.pictureBox1.Location = new System.Drawing.Point(58, 15); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(184, 169); + this.pictureBox1.TabIndex = 0; + this.pictureBox1.TabStop = false; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(15, 201); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(269, 21); + this.comboBox1.TabIndex = 1; + // + // WinClassicThemePanel + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.Silver; + this.Controls.Add(this.comboBox1); + this.Controls.Add(this.pictureBox1); + this.Name = "WinClassicThemePanel"; + this.Size = new System.Drawing.Size(301, 314); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.PictureBox pictureBox1; + private System.Windows.Forms.ComboBox comboBox1; + } +} diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.cs new file mode 100644 index 0000000..5fc072e --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace TimeHACK.OS.Win95.Win95Apps +{ + public partial class WinClassicThemePanel : UserControl + { + public WinClassicThemePanel() + { + InitializeComponent(); + } + } +} diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.resx b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/TimeHACK.Main/Properties/Resources.Designer.cs b/TimeHACK.Main/Properties/Resources.Designer.cs index a1e0907..df21304 100644 --- a/TimeHACK.Main/Properties/Resources.Designer.cs +++ b/TimeHACK.Main/Properties/Resources.Designer.cs @@ -731,6 +731,16 @@ namespace TimeHACK.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap WinClassicDisplayExample { + get { + object obj = ResourceManager.GetObject("WinClassicDisplayExample", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/TimeHACK.Main/Properties/Resources.resx b/TimeHACK.Main/Properties/Resources.resx index 3147bc8..b7b5d64 100644 --- a/TimeHACK.Main/Properties/Resources.resx +++ b/TimeHACK.Main/Properties/Resources.resx @@ -567,4 +567,7 @@ ..\Resources\WinClassic\Win98Stop.WAV;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\Resources\WinClassic\WinClassicDisplayExample.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/TimeHACK.Main/Resources/WinClassic/WinClassicDisplayExample.png b/TimeHACK.Main/Resources/WinClassic/WinClassicDisplayExample.png new file mode 100644 index 0000000..63e21df Binary files /dev/null and b/TimeHACK.Main/Resources/WinClassic/WinClassicDisplayExample.png differ diff --git a/TimeHACK.Main/SaveDialogs/SaveFileTroubleShooter.cs b/TimeHACK.Main/SaveDialogs/SaveFileTroubleShooter.cs index eb79543..4ada932 100644 --- a/TimeHACK.Main/SaveDialogs/SaveFileTroubleShooter.cs +++ b/TimeHACK.Main/SaveDialogs/SaveFileTroubleShooter.cs @@ -78,10 +78,10 @@ namespace TimeHACK.SaveDialogs savedata.ExperiencedStories = new List(); } - if (savedata.ExperiencedStories == null) + if (savedata.ThemeName == null || savedata.ThemeName == "") { - WriteToLog("ISSUE FOUND! Data for ExperiencedStories is null! Giving default value..."); - savedata.ExperiencedStories = new List(); + WriteToLog("ISSUE FOUND! Data for ThemeName is null! Giving default value..."); + savedata.ThemeName = "95normal"; } } @@ -95,7 +95,7 @@ namespace TimeHACK.SaveDialogs } - void EndScan(Boolean successful) + void EndScan(bool successful) { pnlResolved.Visible = true; if (successful == true) diff --git a/TimeHACK.Main/TimeHACK.Main.csproj b/TimeHACK.Main/TimeHACK.Main.csproj index 9532c0e..a42cb05 100644 --- a/TimeHACK.Main/TimeHACK.Main.csproj +++ b/TimeHACK.Main/TimeHACK.Main.csproj @@ -146,6 +146,12 @@ WinClassicTerminal.cs + + UserControl + + + WinClassicThemePanel.cs + UserControl @@ -291,6 +297,9 @@ WinClassicTerminal.cs + + WinClassicThemePanel.cs + WinClassicWindowsExplorer.cs Designer @@ -460,6 +469,8 @@ + + -- cgit v1.2.3