Load txtg texture in material UI

This commit is contained in:
KillzXGaming 2023-05-28 17:01:52 -04:00
parent 45d20e8f44
commit 357b8b2bc9

View file

@ -289,6 +289,17 @@ namespace FirstPlugin.Forms
Thread.Start();
}
}
if (PluginRuntime.TextureCache.ContainsKey(name))
{
Thread = new Thread((ThreadStart)(() =>
{
textureBP.Image = Toolbox.Library.Imaging.GetLoadingImage();
textureBP.Image = PluginRuntime.TextureCache[name].GetBitmap();
}));
Thread.Start();
}
foreach (BFRESGroupNode ftexCont in PluginRuntime.ftexContainers)
{
if (ftexCont.ResourceNodes.ContainsKey(name))