mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 13:58:26 +00:00
Load txtg texture in material UI
This commit is contained in:
parent
45d20e8f44
commit
357b8b2bc9
1 changed files with 11 additions and 0 deletions
|
@ -289,6 +289,17 @@ namespace FirstPlugin.Forms
|
||||||
Thread.Start();
|
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)
|
foreach (BFRESGroupNode ftexCont in PluginRuntime.ftexContainers)
|
||||||
{
|
{
|
||||||
if (ftexCont.ResourceNodes.ContainsKey(name))
|
if (ftexCont.ResourceNodes.ContainsKey(name))
|
||||||
|
|
Loading…
Add table
Reference in a new issue