aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95.cs
diff options
context:
space:
mode:
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95.cs28
1 files changed, 26 insertions, 2 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs
index a24932d..c6db739 100644
--- a/TimeHACK.Main/OS/Win95/Win95.cs
+++ b/TimeHACK.Main/OS/Win95/Win95.cs
@@ -36,6 +36,18 @@ namespace TimeHACK.OS.Win95
{
InitializeComponent();
startmenu.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
+ ProgramsToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
+ AccessoriesToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
+ CommunicationsToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
+ MultimediaToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
+ SystemToolsToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
+ StartUpToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
+ MSDOSPromptToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
+ DocumentsToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
+ 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);
@@ -61,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();
@@ -69,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();
@@ -142,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
@@ -405,6 +419,16 @@ namespace TimeHACK.OS.Win95
app.BringToFront();
startmenu.Hide();
}
+
+ private void PropertiesToolStripMenuItem1_Click(object sender, EventArgs e)
+ {
+ WinClassicThemePanel theme = new WinClassicThemePanel();
+ WinClassic app = wm.StartWin95(theme, "Themes", null, false, true, false);
+
+ AddTaskBarItem(app, app.Tag.ToString(), "Themes", null);
+ app.BringToFront();
+ startmenu.Hide();
+ }
}
public class MyRenderer : ToolStripProfessionalRenderer
{