public CarPaintPattern(string name, [NotNull] PaintShopSource source, [CanBeNull] PaintShopSource overlay, CarPaintColors colors) { DisplayName = name; Source = source; Overlay = overlay; Colors = colors; colors.PropertyChanged += OnColorsChanged; }
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); }
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); }
public CarPaintReplacementSource(PaintShopSource source, bool colored) { Source = source; Colored = colored; }
public ComplexCarPaint([Localizable(false)] PaintShopDestination mapsTexture, [NotNull] PaintShopSource mapsSource, [CanBeNull] PaintShopSource mapsMask) { MapsTexture = mapsTexture; MapsMask = mapsMask; MapsDefaultTexture = mapsSource; }
public TintedEntry([NotNull] PaintShopSource source, [CanBeNull] PaintShopSource mask, [CanBeNull] PaintShopSource overlay) { Source = source; Mask = mask; Overlay = overlay; }