Ejemplo n.º 1
0
 public ColorSelectForm(GameplayForm gameplayForm)
 {
     InitializeComponent();
     this._gameplayForm    = gameplayForm;
     pictureBox2.BackColor = gameplayForm.player1;
     pictureBox3.BackColor = gameplayForm.player2;
     hScrollBar1.Value     = gameplayForm.player1.R;
     hScrollBar2.Value     = gameplayForm.player1.G;
     hScrollBar3.Value     = gameplayForm.player1.B;
     hScrollBar6.Value     = gameplayForm.player2.R;
     hScrollBar5.Value     = gameplayForm.player2.G;
     hScrollBar4.Value     = gameplayForm.player2.B;
 }
Ejemplo n.º 2
0
        public AppleSettingsForm(GameplayForm gameplayForm)
        {
            InitializeComponent();

            _gameplayForm = gameplayForm;

            textBox1.Text     = gameplayForm.appleCount.ToString();
            hScrollBar1.Value = gameplayForm.growAppleChance;
            hScrollBar2.Value = gameplayForm.doubleGrowAppleChance;
            hScrollBar3.Value = gameplayForm.changeControlAppleChance;
            hScrollBar4.Value = gameplayForm.speedBoostAppleChance;
            hScrollBar5.Value = gameplayForm.blackAppleChance;

            refreshLabels();
        }