Esempio n. 1
0
 private void ShowChoiceCharacterScreen()
 {
     HideScreens();
     Controls.Remove(choiceControl);
     choiceControl = new ChoiceCharacterControl();
     Controls.Add(choiceControl);
     choiceControl.Configure(game);
     choiceControl.Show();
 }
Esempio n. 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();
        }