diff options
| author | AShifter <[email protected]> | 2017-03-27 14:03:48 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-03-27 14:03:48 -0600 |
| commit | b96cf8f3f17a6289c6c9eb2ff8c14e7b1f5df797 (patch) | |
| tree | b58fe5631bd861df849a3c57cfa2e032261bf4dc /TimeHACK/TitleScreen.cs | |
| parent | 5819bf69c300dfaefa427d701b3bef4a7397e0c9 (diff) | |
| parent | b880da82cd6af92ca704c4c1cd96c8d1fa64ad59 (diff) | |
| download | histacom2-b96cf8f3f17a6289c6c9eb2ff8c14e7b1f5df797.tar.gz histacom2-b96cf8f3f17a6289c6c9eb2ff8c14e7b1f5df797.tar.bz2 histacom2-b96cf8f3f17a6289c6c9eb2ff8c14e7b1f5df797.zip | |
Merge pull request #9 from lempamo/master
things 2: electric boogaloo
love it:tm:
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"; - } - } -} |
