mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 13:58:26 +00:00
Support loading txtg into gui and exporting them
This commit is contained in:
parent
357b8b2bc9
commit
46162e5379
2 changed files with 10 additions and 0 deletions
|
@ -835,7 +835,15 @@ namespace FirstPlugin
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isMeshCodec)
|
if (isMeshCodec)
|
||||||
|
{
|
||||||
MeshCodec.PrepareTexToGo(resFile);
|
MeshCodec.PrepareTexToGo(resFile);
|
||||||
|
STTextureFolder texfolder = new STTextureFolder("TexToGo");
|
||||||
|
this.Nodes.Add(texfolder);
|
||||||
|
foreach (var tex in MeshCodec.TextureList)
|
||||||
|
{
|
||||||
|
texfolder.Nodes.Add(tex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
DrawableContainer.Drawables.Add(BFRESRender);
|
DrawableContainer.Drawables.Add(BFRESRender);
|
||||||
|
|
||||||
|
|
|
@ -588,6 +588,8 @@ namespace Bfres.Structs
|
||||||
if (ftexCont.ResourceNodes.ContainsKey(texref))
|
if (ftexCont.ResourceNodes.ContainsKey(texref))
|
||||||
textures.Add((FTEX)ftexCont.ResourceNodes[texref]);
|
textures.Add((FTEX)ftexCont.ResourceNodes[texref]);
|
||||||
}
|
}
|
||||||
|
if (PluginRuntime.TextureCache.ContainsKey(texref))
|
||||||
|
textures.Add(PluginRuntime.TextureCache[texref]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return textures;
|
return textures;
|
||||||
|
|
Loading…
Add table
Reference in a new issue