mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 12:33:12 +00:00
Adjustment to MTXT so it can batch export.
This commit is contained in:
parent
865dd1b545
commit
0f1ff1b45c
1 changed files with 7 additions and 1 deletions
|
@ -8,7 +8,7 @@ using Toolbox.Library.IO;
|
|||
|
||||
namespace FirstPlugin
|
||||
{
|
||||
public class MTXT : TreeNodeFile, IFileFormat
|
||||
public class MTXT : TreeNodeFile, IFileFormat, ITextureContainer
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Image;
|
||||
|
||||
|
@ -40,6 +40,10 @@ namespace FirstPlugin
|
|||
this.TreeView.SelectedNode = Nodes[0];
|
||||
}
|
||||
|
||||
public List<STGenericTexture> TextureList { get; set; }
|
||||
|
||||
public bool DisplayIcons => false;
|
||||
|
||||
public void Load(System.IO.Stream stream)
|
||||
{
|
||||
Text = this.FileName;
|
||||
|
@ -82,6 +86,8 @@ namespace FirstPlugin
|
|||
this.Tag = xtx;
|
||||
foreach (STGenericTexture node in xtx.Nodes)
|
||||
Nodes.Add(node);
|
||||
|
||||
TextureList = xtx.TextureList;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue