aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-07-05 14:41:23 -0400
committerlempamo <[email protected]>2017-07-05 14:41:23 -0400
commit038e1edf03e8ea802c70f9f5f60c4b420fbb9dd8 (patch)
treeecc913a6b8a0cadc8d7ed7d8417df6c15de3bae2
parent1babfac033b8add0dee2a8c9a4b34fd6f90ac222 (diff)
downloadhistacom2-038e1edf03e8ea802c70f9f5f60c4b420fbb9dd8.tar.gz
histacom2-038e1edf03e8ea802c70f9f5f60c4b420fbb9dd8.tar.bz2
histacom2-038e1edf03e8ea802c70f9f5f60c4b420fbb9dd8.zip
theme things
-rw-r--r--TimeHACK.Engine/Properties/Resources.Designer.cs10
-rw-r--r--TimeHACK.Engine/Properties/Resources.resx3
-rw-r--r--TimeHACK.Engine/Resources/Win95PlusDangerousCreaturesWallpaper.JPGbin0 -> 99357 bytes
-rw-r--r--TimeHACK.Engine/SaveSystem.cs17
-rw-r--r--TimeHACK.Engine/Theme.cs16
-rw-r--r--TimeHACK.Engine/TimeHACK.Engine.csproj1
6 files changed, 39 insertions, 8 deletions
diff --git a/TimeHACK.Engine/Properties/Resources.Designer.cs b/TimeHACK.Engine/Properties/Resources.Designer.cs
index e8b970e..b0186e9 100644
--- a/TimeHACK.Engine/Properties/Resources.Designer.cs
+++ b/TimeHACK.Engine/Properties/Resources.Designer.cs
@@ -209,6 +209,16 @@ namespace TimeHACK.Engine.Properties {
}
/// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
+ internal static System.Drawing.Bitmap Win95PlusDangerousCreaturesWallpaper {
+ get {
+ object obj = ResourceManager.GetObject("Win95PlusDangerousCreaturesWallpaper", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
/// Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream.
/// </summary>
internal static System.IO.UnmanagedMemoryStream Win95Start {
diff --git a/TimeHACK.Engine/Properties/Resources.resx b/TimeHACK.Engine/Properties/Resources.resx
index 4009cc9..aeb1500 100644
--- a/TimeHACK.Engine/Properties/Resources.resx
+++ b/TimeHACK.Engine/Properties/Resources.resx
@@ -184,6 +184,9 @@
<data name="Win95PlusDangerousCreaturesStart" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Win95PlusDangerousCreaturesStart.WAV;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
+ <data name="Win95PlusDangerousCreaturesWallpaper" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\Win95PlusDangerousCreaturesWallpaper.JPG;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
<data name="Win95Start" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Win95Start.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
diff --git a/TimeHACK.Engine/Resources/Win95PlusDangerousCreaturesWallpaper.JPG b/TimeHACK.Engine/Resources/Win95PlusDangerousCreaturesWallpaper.JPG
new file mode 100644
index 0000000..eb31a05
--- /dev/null
+++ b/TimeHACK.Engine/Resources/Win95PlusDangerousCreaturesWallpaper.JPG
Binary files differ
diff --git a/TimeHACK.Engine/SaveSystem.cs b/TimeHACK.Engine/SaveSystem.cs
index be3aeb7..078bbee 100644
--- a/TimeHACK.Engine/SaveSystem.cs
+++ b/TimeHACK.Engine/SaveSystem.cs
@@ -13,10 +13,12 @@ namespace TimeHACK.Engine
{
public static Save CurrentSave { get; set; }
public static FileSystemFolderInfo filesystemflinfo { get; set; }
- public static Boolean DevMode = false;
+ public static bool DevMode = false;
public static FileAssociation IconChanger = new FileAssociation();
+ public static Theme currentTheme { get; set; }
+
public static string GameDirectory
{
get
@@ -114,7 +116,6 @@ namespace TimeHACK.Engine
public static void NewGame()
{
-
//TODO: User must set a username....somehow
var save = new Save();
@@ -124,18 +125,20 @@ namespace TimeHACK.Engine
if (ProfileName == "98")
{
save.CurrentOS = "98";
- save.ThemeName = "98normal";
+ save.ThemeName = "default98";
}
else
{
save.CurrentOS = "95";
- save.ThemeName = "95normal";
+ save.ThemeName = "default95";
+ currentTheme = new Default95Theme();
}
}
else
{
save.CurrentOS = "95";
- save.ThemeName = "95normal";
+ save.ThemeName = "default95";
+ currentTheme = new Default95Theme();
}
CurrentSave = save;
@@ -180,12 +183,12 @@ namespace TimeHACK.Engine
CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "explorer.exe"), "windowsexplorer");
}
- public static void CreateWindowsFile(String filepath, String contents)
+ public static void CreateWindowsFile(string filepath, string contents)
{
File.WriteAllText(filepath, contents);
}
- public static void SaveDirectoryInfo(String directory, Boolean isProtected, String label, Boolean allowback)
+ public static void SaveDirectoryInfo(string directory, bool isProtected, string label, bool allowback)
{
if (!Directory.Exists(directory))
Directory.CreateDirectory(directory);
diff --git a/TimeHACK.Engine/Theme.cs b/TimeHACK.Engine/Theme.cs
index 645e714..cd82fac 100644
--- a/TimeHACK.Engine/Theme.cs
+++ b/TimeHACK.Engine/Theme.cs
@@ -18,7 +18,9 @@ namespace TimeHACK.Engine
public Stream progErrorSound { get; set; }
public Stream questionSound { get; set; }
- public Image defaultWallpaper;
+ public Image defaultWallpaper { get; set; }
+
+ public string themeName { get; set; }
}
public class Default95Theme: Theme
@@ -34,6 +36,18 @@ namespace TimeHACK.Engine
questionSound = Properties.Resources.CHORD;
defaultWallpaper = null;
+ themeName = "default95";
+ }
+ }
+
+ public class DangerousCreaturesTheme: Theme
+ {
+ public DangerousCreaturesTheme()
+ {
+ startSound = Properties.Resources.Win95PlusDangerousCreaturesStart;
+
+ defaultWallpaper = Properties.Resources.Win95PlusDangerousCreaturesWallpaper;
+ themeName = "dangeranimals";
}
}
}
diff --git a/TimeHACK.Engine/TimeHACK.Engine.csproj b/TimeHACK.Engine/TimeHACK.Engine.csproj
index a158eb7..0a9a4fa 100644
--- a/TimeHACK.Engine/TimeHACK.Engine.csproj
+++ b/TimeHACK.Engine/TimeHACK.Engine.csproj
@@ -114,6 +114,7 @@
<None Include="Resources\Win95Stop.wav" />
<None Include="Resources\Win98Start.wav" />
<None Include="Resources\Win98Stop.WAV" />
+ <None Include="Resources\Win95PlusDangerousCreaturesWallpaper.JPG" />
<Content Include="Resources\WinClassic\Window\BottomLeft.png" />
<Content Include="Resources\WinClassic\Window\BottomRight.png" />
<Content Include="Resources\WinClassic\Window\BottomSide.png" />