Exemple #1
0
 public Swatches(PaletteBuilder palette)
 {
     ClearColor = palette.Add(0x111111, 0x111111, 0x111111);
     Player     = palette.Add(0xcccccc, 0x222222, 0xcc0000);
     Bullet     = palette.Add(0xcc4444, 0x992222, 0xff0000);
     White      = palette.Add(0xffffff, 0xffffff, 0xffffff);
 }
Exemple #2
0
        protected override void OnSwatchChanged(SwatchIndex swatchIndex)
        {
            _header.SwatchIndex = swatchIndex;

            if (_newHighscore != null)
            {
                _newHighscore.SwatchIndex = swatchIndex;
            }
        }
Exemple #3
0
        protected override void OnSwatchChanged(SwatchIndex swatchIndex)
        {
            _title.SwatchIndex = swatchIndex;

            if (_newEntry != null)
            {
                _newEntry.SwatchIndex = swatchIndex;
            }
        }
Exemple #4
0
        protected override void OnLoadGraphics(Graphics graphics)
        {
            base.OnLoadGraphics(graphics);

            _end = graphics.GetImage("Resources", "paddle", "end");
            _mid = graphics.GetImage("Resources", "paddle", "mid");

            _swatch = graphics.Palette.FindSwatch(0xffffff, 0xffffff, 0xffffff);

            _leftEndSprite  = Add(new Sprite(_end, _swatch));
            _rightEndSprite = Add(new Sprite(_end, _swatch)
            {
                FlipX = true
            });
        }
Exemple #5
0
 protected virtual void OnSwatchChanged(SwatchIndex swatchIndex)
 {
 }
Exemple #6
0
 protected override void OnSwatchChanged(SwatchIndex swatchIndex)
 {
     _title.SwatchIndex = swatchIndex;
 }