Exemple #1
0
 private void ShowDialogueScreen()
 {
     playControl.Controls.Remove(dialogueControl);
     dialogueControl = new DialogueControl();
     playControl.Controls.Add(dialogueControl);
     dialogueControl.Configure(game);
     dialogueControl.Show();
 }
Exemple #2
0
        public MainForm()
        {
            StartPosition = FormStartPosition.Manual;
            Location      = new Point(5, 5);

            MinimizeBox = false;

            game = new GameState();
            game.StageChanged += Game_OnStageChanged;
            startControl       = new StartControl();
            playControl        = new PlayControl(game);
            finishedControl    = new FinishedControl();
            dialogueControl    = new DialogueControl();
            choiceControl      = new ChoiceCharacterControl();
            Controls.Add(playControl);

            ClientSizeChanged += HandleResize;
            ShowStartScreen();
        }