Adjustment to MTXT so it can batch export.

This commit is contained in:
KillzXGaming 2021-10-09 16:46:21 -04:00
parent 865dd1b545
commit 0f1ff1b45c

View file

@ -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;
}
}