Ejemplo n.º 1
0
 public CarPaintPattern(string name, [NotNull] PaintShopSource source, [CanBeNull] PaintShopSource overlay, CarPaintColors colors)
 {
     DisplayName             = name;
     Source                  = source;
     Overlay                 = overlay;
     Colors                  = colors;
     colors.PropertyChanged += OnColorsChanged;
 }
Ejemplo n.º 2
0
 public ComplexCarPaint([Localizable(false)] string detailsTexture, int flakesSize, [Localizable(false)] string mapsTexture,
                        [NotNull] PaintShopSource mapsSource, [CanBeNull] PaintShopSource mapsMask, Color?defaultColor = null)
     : base(detailsTexture, flakesSize, defaultColor)
 {
     MapsTexture        = mapsTexture;
     MapsMask           = mapsMask;
     MapsDefaultTexture = mapsSource;
     AffectedTextures.Add(mapsTexture);
 }
Ejemplo n.º 3
0
 public void SetPatterns(string patternTexture, PaintShopSource patternBase, [CanBeNull] PaintShopSource patternOverlay,
                         IEnumerable <CarPaintPattern> patterns)
 {
     PatternTexture = patternTexture;
     PatternBase    = patternBase;
     PatternOverlay = patternOverlay;
     Patterns.ReplaceEverythingBy(patterns.Prepend(new CarPaintPattern("Nothing", PaintShopSource.Transparent, null, new CarPaintColors())));
     CurrentPattern  = Patterns[0];
     _patternChanged = true;
     AffectedTextures.Add(patternTexture);
 }
Ejemplo n.º 4
0
 public CarPaintReplacementSource(PaintShopSource source, bool colored)
 {
     Source  = source;
     Colored = colored;
 }
Ejemplo n.º 5
0
 public ComplexCarPaint([Localizable(false)] PaintShopDestination mapsTexture, [NotNull] PaintShopSource mapsSource, [CanBeNull] PaintShopSource mapsMask)
 {
     MapsTexture        = mapsTexture;
     MapsMask           = mapsMask;
     MapsDefaultTexture = mapsSource;
 }
Ejemplo n.º 6
0
 public TintedEntry([NotNull] PaintShopSource source, [CanBeNull] PaintShopSource mask, [CanBeNull] PaintShopSource overlay)
 {
     Source  = source;
     Mask    = mask;
     Overlay = overlay;
 }