diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-05-20 13:42:23 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-05-20 13:42:23 +0100 |
| commit | 9af6e5bbff5138a4140958968affc79ec3447139 (patch) | |
| tree | 92f79c16d75b779fa20e24844b7739c0fec51568 /TimeHACK.Main/TitleScreen.cs | |
| parent | eafc3296a00d057b3adb4af08b2320d2de1f1d52 (diff) | |
| parent | c322a51694c130f036df17ec3027a5b30eb9472c (diff) | |
| download | histacom2-9af6e5bbff5138a4140958968affc79ec3447139.tar.gz histacom2-9af6e5bbff5138a4140958968affc79ec3447139.tar.bz2 histacom2-9af6e5bbff5138a4140958968affc79ec3447139.zip | |
Merge pull request #74 from Alex-TIMEHACK/master
Added my SaveSystem!
Diffstat (limited to 'TimeHACK.Main/TitleScreen.cs')
| -rw-r--r-- | TimeHACK.Main/TitleScreen.cs | 49 |
1 files changed, 38 insertions, 11 deletions
diff --git a/TimeHACK.Main/TitleScreen.cs b/TimeHACK.Main/TitleScreen.cs index c883a95..05fb7cf 100644 --- a/TimeHACK.Main/TitleScreen.cs +++ b/TimeHACK.Main/TitleScreen.cs @@ -19,17 +19,19 @@ namespace TimeHACK public static DirectoryInfo thfolder; public static DirectoryInfo datafolder; public static DirectoryInfo profilefolder; + public static NewGameDialog newGameBox; + public static LoadGameDialog loadGameBox; public void StartGame() - { + { //TODO: You may want to handle story stuff to decide what OS to boot here. if (Convert.ToInt32(VM_Width.Text) == 1337 && Convert.ToInt32(VM_Height.Text) == 1337) { leet(); } else -// If VM Mode is not enabled -if (vm_mode.Checked != true) + // If VM Mode is not enabled + if (vm_mode.Checked != true) { // Generate fullscreen desktop frm95 = new Windows95(); @@ -50,7 +52,6 @@ if (vm_mode.Checked != true) frm95.Show(); Hide(); } - } @@ -144,8 +145,14 @@ if (vm_mode.Checked != true) // When NewGame is Clicked private void NewGame_Click(object sender, EventArgs e) { - NewGame(); - StartGame(); + newGameBox = new NewGameDialog(); + newGameBox.ShowDialog(); + + if (newGameBox.Successful == true) + { + NewGame(); + StartGame(); + } } public void BSODRewind(object sender, EventArgs e) @@ -193,12 +200,19 @@ if (vm_mode.Checked != true) #region LoadGame private void LoadGame_Click(object sender, EventArgs e) { - var result = LoadSave(); - if(result == false) + loadGameBox = new LoadGameDialog(); + loadGameBox.ShowDialog(); + + //var result = LoadSave(); + //if(result == false) + //{ + // MessageBox.Show(caption: "No save found.", text: "No save was found on your system. However, we have created a new one, and we will start it up for you."); + //} + if (loadGameBox.successful == true) { - MessageBox.Show(caption: "No save found.", text: "No save was found on your system. However, we have created a new one, and we will start it up for you."); - } - StartGame(); + LoadSave(); + StartGame(); + } } private void LoadGame_Enter(object sender, EventArgs e) { @@ -236,5 +250,18 @@ if (vm_mode.Checked != true) { gameversion.Text = "TimeHACK " + Program.gameID; } + + private void startbutton_Click(object sender, EventArgs e) + { + if (DevMode == true) + { + DevMode = false; + gameversion.Text = "Developer Mode Deactivated"; + } else { + DevMode = true; + gameversion.Text = "Developer Mode Activated"; + } + + } } } |
