mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-25 14:00:21 +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();
|
||||
}
|
||||
}
|
||||
|
||||
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))
|
||||
|
|
Loading…
Reference in a new issue