mirror of
https://github.com/4sval/FModel.git
synced 2026-06-23 08:20:17 -05:00
additional image to wrap weapon render
This commit is contained in:
parent
022be0ad04
commit
43eef31959
|
|
@ -1507,6 +1507,23 @@ namespace FModel
|
|||
AppendText("Cosmetics.Source ", Color.SteelBlue);
|
||||
AppendText("found", Color.Black, true);
|
||||
} //COSMETIC SOURCE
|
||||
if (theItem.ExportType == "AthenaItemWrapDefinition" && Checking.WasFeatured && ItemIconPath.Contains("WeaponRenders")) //ONLY TRIGGER IF THE WEAPON RENDER IS TRIGGERED
|
||||
{
|
||||
string wrapAddImg = theItem.LargePreviewImage.AssetPathName.Substring(theItem.LargePreviewImage.AssetPathName.LastIndexOf(".", StringComparison.Ordinal) + 1);
|
||||
|
||||
UpdateConsole("Additional image " + wrapAddImg, Color.FromArgb(255, 244, 132, 66), "Waiting");
|
||||
ItemIconPath = JohnWick.AssetToTexture2D(wrapAddImg);
|
||||
|
||||
if (File.Exists(ItemIconPath))
|
||||
{
|
||||
Image itemIcon;
|
||||
using (var bmpTemp = new Bitmap(ItemIconPath))
|
||||
{
|
||||
itemIcon = new Bitmap(bmpTemp);
|
||||
}
|
||||
g.DrawImage(Forms.Settings.ResizeImage(itemIcon, 122, 122), new Point(395, 282));
|
||||
}
|
||||
}
|
||||
}
|
||||
if (specialMode == "consAndWeap")
|
||||
{
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ namespace FModel
|
|||
|
||||
|
||||
string TexturePath = string.Empty;
|
||||
if (textureFilePath != null && (textureFilePath.Contains("MI_UI_FeaturedRenderSwitch_") || textureFilePath.Contains("M_UI_ChallengeTile_PCB") || textureFilePath.Contains("Wraps\\FeaturedMaterials\\")))
|
||||
if (textureFilePath != null && (textureFilePath.Contains("MI_UI_FeaturedRenderSwitch_") || textureFilePath.Contains("M_UI_ChallengeTile_PCB") || textureFilePath.Contains("Wraps\\FeaturedMaterials\\") || textureFilePath.Contains("M-Wraps-StreetDemon")))
|
||||
{
|
||||
return GetRenderSwitchMaterialTexture(AssetName, textureFilePath);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user