mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-25 05:50:22 +00:00
Add save file menu so TXTG can be saved inside bfres
This commit is contained in:
parent
46162e5379
commit
c77ba4cdf7
1 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue