Add save file menu so TXTG can be saved inside bfres

This commit is contained in:
KillzXGaming 2023-05-30 20:37:47 -04:00
parent 46162e5379
commit c77ba4cdf7

View file

@ -142,6 +142,17 @@ namespace FirstPlugin
//Image data is properly loaded afterwards
private List<List<byte[]>> ImageList = new List<List<byte[]>>();
public override ToolStripItem[] GetContextMenuItems()
{
List<ToolStripItem> items = new List<ToolStripItem>();
items.Add(new ToolStripMenuItem("Save File", null, (o, e) =>
{
STFileSaver.SaveFileFormat(this, FilePath);
}));
items.AddRange(base.GetContextMenuItems());
return items.ToArray();
}
public void Load(Stream stream)
{
Tag = this;