public SingleVehicleDecal Clone() { SingleVehicleDecal clone = new SingleVehicleDecal(this.TaggedVehicle, this.Graffiti, this.Location, this.Location_ForDirectionPurpose, this.RotationAngle, this.DisplayWidth, this.DisplayHeight); clone.Graffiti = this.Graffiti; clone.MirrorFlip = this.MirrorFlip; clone.RGB_Red = this.RGB_Red; clone.RGB_Green = this.RGB_Green; clone.RGB_Blue = this.RGB_Blue; clone.RGB_Alpha = this.RGB_Alpha; return(clone); }
public static void DisplaySingleVehicleDecalInfo(DecaledVehicleOutfit savedOutfit, SingleVehicleDecal specificDecal) { if (LoadedVehicleOutfits != null) { foreach (var loadedOutfit in LoadedVehicleOutfits.ToList().Where(lo => savedOutfit.OutfitName.Equals(lo.OutfitName) && savedOutfit.VehicleModelHash == lo.VehicleModelHash)) { foreach (var decal in loadedOutfit.DecalList.ToList().Where(ld => specificDecal.Graffiti.TextureName.Equals(ld.Graffiti.TextureName) && specificDecal.Location == ld.Location)) { if (loadedOutfit.CurrentVehicle == null || !loadedOutfit.CurrentVehicle.Exists()) { return; } decal.ShowInfo3D(); } } } }