private void HandleResize(object sender, EventArgs e) { HideScreens(); switch (game.Stage) { case GameStage.NotStarted: startControl.Show(); break; case GameStage.ChoiceCharacter: choiceControl.Show(); break; case GameStage.Play: playControl.Show(); break; case GameStage.ActivatedDialogue: playControl.Show(); dialogueControl.Show(); break; case GameStage.Finished: finishedControl.Show(); break; } }
private void ShowStartScreen() { HideScreens(); Controls.Remove(startControl); startControl = new StartControl(); Controls.Add(startControl); startControl.Configure(game); startControl.Show(); }