aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-07-05 17:25:36 -0400
committerlempamo <[email protected]>2017-07-05 17:25:36 -0400
commitfa18e32a23d001d75afdc550742eeb89e1608328 (patch)
treebb88f8d0ed685f74c98627f1fcbe6811fdbd7586 /TimeHACK.Main/OS/Win95/Win95.cs
parentd968d36f0d7715633185ae948368cc32e3c751ab (diff)
downloadhistacom2-fa18e32a23d001d75afdc550742eeb89e1608328.tar.gz
histacom2-fa18e32a23d001d75afdc550742eeb89e1608328.tar.bz2
histacom2-fa18e32a23d001d75afdc550742eeb89e1608328.zip
Theme sounds work!
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs
index d83d45e..c6db739 100644
--- a/TimeHACK.Main/OS/Win95/Win95.cs
+++ b/TimeHACK.Main/OS/Win95/Win95.cs
@@ -47,6 +47,7 @@ namespace TimeHACK.OS.Win95
SettingsToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
FindToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
SetStyle(ControlStyles.SupportsTransparentBackColor, true);
+ BackgroundImage = currentTheme.defaultWallpaper;
foreach (ToolStripMenuItem item in startmenuitems.Items)
{
item.MouseEnter += new EventHandler(MenuItem_MouseEnter);
@@ -72,6 +73,7 @@ namespace TimeHACK.OS.Win95
// When New Game is clicked in TitleScreen.cs
private void Desktop_Load(object sender, EventArgs e)
{
+ if (currentTheme.defaultWallpaper != null) desktopicons.BackgroundImage = new Bitmap(currentTheme.defaultWallpaper, desktopicons.Width, desktopicons.Height);
//Start Menu Color - Commented until it works reliably
//startmenuitems.Renderer = new MyRenderer();
//ProgramsToolStripMenuItem.DropDown.Renderer = new MyRenderer();
@@ -80,7 +82,7 @@ namespace TimeHACK.OS.Win95
fontLoad();
// Play Windows 95 Start Sound
- Stream audio = Properties.Resources.Win95Start;
+ Stream audio = currentTheme.startSound;
startsound = new SoundPlayer(audio);
startsound.Play();
@@ -153,7 +155,8 @@ namespace TimeHACK.OS.Win95
// Shutdown button
private void ShutdownToolStripMenuItem_Click(object sender, EventArgs e)
{
- Program.ShutdownApplication(Properties.Resources.tada);
+ SaveGame();
+ Program.ShutdownApplication(currentTheme.stopSound);
}
#endregion //Region