Example #1
0
 public ColoredItem(Dictionary <string, TintedEntry> replacements, CarPaintColors colors) : base(false)
 {
     Replacements            = replacements;
     Colors                  = colors;
     Colors.PropertyChanged += OnColorsChanged;
     AffectedTextures.AddRange(Replacements.Keys);
 }
Example #2
0
 public Replacement([NotNull] string[] textures, [NotNull] Dictionary <string, PaintShopSource> replacements) : base(false)
 {
     _textures    = textures;
     Replacements = replacements;
     Value        = Replacements.FirstOrDefault();
     AffectedTextures.AddRange(_textures);
 }
Example #3
0
 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);
 }
Example #4
0
 public MultiReplacement(Dictionary <string, Dictionary <string, PaintShopSource> > replacements) : base(false)
 {
     Replacements = replacements;
     Value        = Replacements.FirstOrDefault();
     AffectedTextures.AddRange(Replacements.Values.SelectMany(x => x.Keys));
 }
Example #5
0
 public ReplacedIfFlagged(bool inverse, [NotNull] Dictionary <string, PaintShopSource> replacements) : base(false)
 {
     _inverse      = inverse;
     _replacements = replacements;
     AffectedTextures.AddRange(_replacements.Keys);
 }