public ColoredItem(Dictionary <string, TintedEntry> replacements, CarPaintColors colors) : base(false) { Replacements = replacements; Colors = colors; Colors.PropertyChanged += OnColorsChanged; AffectedTextures.AddRange(Replacements.Keys); }
public Replacement([NotNull] string[] textures, [NotNull] Dictionary <string, PaintShopSource> replacements) : base(false) { _textures = textures; Replacements = replacements; Value = Replacements.FirstOrDefault(); AffectedTextures.AddRange(_textures); }
public SolidColorIfFlagged([NotNull] string[] textures, bool inverse, Color color, double opacity = 1d) : base(false) { _textures = textures; _inverse = inverse; _color = color; _opacity = opacity; AffectedTextures.AddRange(textures); }
public MultiReplacement(Dictionary <string, Dictionary <string, PaintShopSource> > replacements) : base(false) { Replacements = replacements; Value = Replacements.FirstOrDefault(); AffectedTextures.AddRange(Replacements.Values.SelectMany(x => x.Keys)); }
public ReplacedIfFlagged(bool inverse, [NotNull] Dictionary <string, PaintShopSource> replacements) : base(false) { _inverse = inverse; _replacements = replacements; AffectedTextures.AddRange(_replacements.Keys); }