diff options
| author | lempamo <[email protected]> | 2017-03-27 15:39:28 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-03-27 15:39:28 -0400 |
| commit | 8cf466d0a3e835cbcd22bf768684141c9b996278 (patch) | |
| tree | 3f968642d59bcf7c62eb9e9c12110d4e925c1cf3 /TimeHACK/TitleScreen.cs | |
| parent | 049491ca1cf569153eb8a5004a8a657292bf8f39 (diff) | |
| download | histacom2-8cf466d0a3e835cbcd22bf768684141c9b996278.tar.gz histacom2-8cf466d0a3e835cbcd22bf768684141c9b996278.tar.bz2 histacom2-8cf466d0a3e835cbcd22bf768684141c9b996278.zip | |
added start menu icons
Diffstat (limited to 'TimeHACK/TitleScreen.cs')
| -rw-r--r-- | TimeHACK/TitleScreen.cs | 148 |
1 files changed, 0 insertions, 148 deletions
diff --git a/TimeHACK/TitleScreen.cs b/TimeHACK/TitleScreen.cs deleted file mode 100644 index afc8dab..0000000 --- a/TimeHACK/TitleScreen.cs +++ /dev/null @@ -1,148 +0,0 @@ -using TimeHACK.Properties; -using System; -using System.Drawing; -using System.Windows.Forms; -using System.Runtime.InteropServices; - -namespace TimeHACK -{ - public partial class TitleScreen : Form - { - public TitleScreen() - { - InitializeComponent(); - - } - - private void closebutton_Click(object sender, EventArgs e) - { - Close(); - } - - // When the TitleScreen Loads - private void TitleScreen_Load(object sender, EventArgs e) - { - // Set GameVersion - gameversion.Text = "TimeHACK " + Program.gameID + " by AShifter"; - - // Start the VM Mode timer - vmModeTimer.Start(); - } - - // The VM Mode timer / checker. Updates every 100ms - private void timer1_Tick(object sender, EventArgs e) - { - // Check for VM mode - if (vm_mode.Checked == true) - { - widthBox.Visible = true; - charX.Visible = true; - heightBox.Visible = true; - } - // If VM Mode is disabled - else - { - widthBox.Visible = false; - charX.Visible = false; - heightBox.Visible = false; - } - } - - #region Menu Buttons - - #region NewGame - - // When NewGame is Clicked - private void NewGame_Click(object sender, EventArgs e) - { - // If VM Mode is not enabled - if (vm_mode.Checked != true) - { - // Generate fullscreen desktop - Windows95 frm = new Windows95(); - frm.TopMost = true; - frm.FormBorderStyle = FormBorderStyle.None; - frm.WindowState = FormWindowState.Maximized; - frm.Show(); - Hide(); - } - // If VM Mode is enabled - else - { - // Check VM Mode Resolutions - int parsedWidth = 0; - int parsedHeight = 0; - if (!int.TryParse(widthBox.Text, out parsedWidth)) - { - MessageBox.Show("'" + widthBox.Text + "' is not a valid value."); - Application.Restart(); - } - if (!int.TryParse(heightBox.Text, out parsedHeight)) - { - MessageBox.Show("'" + heightBox.Text + "' is not a valid value."); - Application.Restart(); - } - // Generate desktop with size entered by user - Windows95 frm = new Windows95(); - frm.FormBorderStyle = FormBorderStyle.None; - frm.Size = new Size(parsedWidth, parsedHeight); - frm.FormBorderStyle = FormBorderStyle.Fixed3D; - frm.Show(); - Hide(); - } - - - } - private void NewGame_MouseEnter(object sender, EventArgs e) - { - NewGame.Image = Resources.MSNewGame; - } - private void NewGame_MouseLeave(object sender, EventArgs e) - { - NewGame.Image = Resources.NewGame; - } - #endregion - - #region LoadGame - private void LoadGame_Click(object sender, EventArgs e) - { - - } - private void LoadGame_Enter(object sender, EventArgs e) - { - LoadGame.Image = Resources.MSLoadGame; - } - private void LoadGame_Leave(object sender, EventArgs e) - { - LoadGame.Image = Resources.LoadGame; - } - #endregion - - #region ExitButton - private void Exit_Click(object sender, EventArgs e) - { - Application.Exit(); - } - private void Exit_Enter(object sender, EventArgs e) - { - Exit.Image = Resources.MSExit; - } - private void Exit_Leave(object sender, EventArgs e) - { - Exit.Image = Resources.Exit; - } - #endregion - - #endregion - - private void gameversion_MouseHover(object sender, EventArgs e) - { - gameversion.Text = "There are no easter eggs here!"; - } - - private void gameversion_MouseLeave(object sender, EventArgs e) - { - gameversion.Text = "TimeHACK " + Program.gameID + " by AShifter"; - } - } -} |
