Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FieldControl"/> class.
        /// </summary>
        public FieldControl()
        {
            _bubbles    = new BubbleField(Size, this);
            Bounds.Size = new UniVector(Bubble.Size * Size + 100, Bubble.Size * Size);

            var left = new UniScalar(1.0f, -80);

            _labelScore         = Children.AddLabel("Score: 0", left, new UniScalar(0, 0));
            _labelSelectedScore = Children.AddLabel("Selected: 0", left, new UniScalar(0, 15));
            _rStandart          = Children.AddRadio("Standart", left, new UniScalar(0, 30));
            _rContinuous        = Children.AddRadio("Continuous", left, new UniScalar(0, 45));
            _rShifter           = Children.AddRadio("Shifter", left, new UniScalar(0, 60));
            _rMegaShifter       = Children.AddRadio("Mega Shifter", left, new UniScalar(0, 75));
        }