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); }
protected override void OnSwatchChanged(SwatchIndex swatchIndex) { _header.SwatchIndex = swatchIndex; if (_newHighscore != null) { _newHighscore.SwatchIndex = swatchIndex; } }
protected override void OnSwatchChanged(SwatchIndex swatchIndex) { _title.SwatchIndex = swatchIndex; if (_newEntry != null) { _newEntry.SwatchIndex = swatchIndex; } }
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 }); }
protected virtual void OnSwatchChanged(SwatchIndex swatchIndex) { }
protected override void OnSwatchChanged(SwatchIndex swatchIndex) { _title.SwatchIndex = swatchIndex; }