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