/// When the "Play Game" button is pressed, close the menu and open the game private void NewGameButton_Click(object sender, EventArgs e) { this.Hide(); FrmMap gameMap = new FrmMap(); gameMap.ShowDialog(); }
private void Respawn() { this.Close(); Game.GetGame().ChangeState(GameState.ON_MAP); FrmMap frmMap = new FrmMap("Resources/titleScreen.txt"); frmMap.ShowDialog(); // shows title screen }