public void LoadCampaign() { if (!this.InvokeRequired) { DataTypes.PlayerProfile newPlayer = LegendOfDrongoEngine.MainMenu(0); if (!string.IsNullOrEmpty(newPlayer.name)) { pnlWarning.Visible = false; txtConsoleOutput.TextAlign = HorizontalAlignment.Left; lblSkipIntro.Visible = false; lblOptions.Visible = true; tkbVolume.Visible = true; lblVolume.Visible = true; LegendOfDrongoEngine.StartGame(newPlayer); txtInput.Visible = true; txtInput.Focus(); txtConsoleOutput.TextAlign = HorizontalAlignment.Left; } } else { BeginCampaign d = new BeginCampaign(LoadCampaign); this.Invoke(d); } }
private void MainMenuChoice(int Choice) { if (Choice == 0) { txtConsoleOutput.TextAlign = HorizontalAlignment.Left; lblOptions.Visible = false; tkbVolume.Visible = false; lblVolume.Visible = false; pnlWarning.Visible = true; lblOkay.Visible = false; lblSkipIntro.Visible = true; pnlMainMenu.Visible = false; thr.Start(); } else { DataTypes.PlayerProfile newPlayer = LegendOfDrongoEngine.MainMenu(Choice); if (!string.IsNullOrEmpty(newPlayer.name)) { LegendOfDrongoEngine.StartGame(newPlayer); txtInput.Visible = true; txtInput.Focus(); txtConsoleOutput.TextAlign = HorizontalAlignment.Left; } } }