public bool OverrideTexture(string textureName, byte[] textureBytes) { if (CarNode == null) { return(true); } return(CarNode.OverrideTexture(DeviceContextHolder, textureName, textureBytes)); }
public bool OverrideTexture(string textureName, PaintShopSource source) { if (source?.Custom != true) { return(CarNode == null || CarNode.OverrideTexture(DeviceContextHolder, textureName, GetBytes(source))); } if (source.UseInput) { source = new PaintShopSource(textureName).SetFrom(source); } var original = GetOriginal(ref _override, source, OptionMaxMapSize); return(original != null && OverrideTexture(textureName, OverrideAction(original), OptionMaxMapSize)); }
private bool OverrideTexture(string textureName, Action <EffectSpecialPaintShop> update, Size size) { return(CarNode == null || CarNode.OverrideTexture(DeviceContextHolder, textureName, GetTexture(textureName, update, size).View, false)); }