1
0
mirror of synced 2024-12-04 20:08:00 +01:00
Switch-Toolbox/Switch_FileFormatsMain/FileFormats/BFRES/Bfres Structs/FBNV.cs

51 lines
1.4 KiB
C#
Raw Normal View History

using System;
using Switch_Toolbox.Library;
2018-11-22 21:54:52 +01:00
using System.Windows.Forms;
using FirstPlugin;
2018-11-22 21:54:52 +01:00
namespace Bfres.Structs
{
public class FbnvFolder : TreeNodeCustom
{
public FbnvFolder()
{
Text = "Bone Visabilty Animations";
Name = "FBNV";
ContextMenu = new ContextMenu();
MenuItem import = new MenuItem("Import");
ContextMenu.MenuItems.Add(import);
import.Click += Import;
MenuItem exportAll = new MenuItem("Export All");
ContextMenu.MenuItems.Add(exportAll);
exportAll.Click += ExportAll;
MenuItem clear = new MenuItem("Clear");
ContextMenu.MenuItems.Add(clear);
clear.Click += Clear;
2018-11-22 21:54:52 +01:00
}
public void Import(object sender, EventArgs args)
{
}
public void ExportAll(object sender, EventArgs args)
{
}
public void Clear(object sender, EventArgs args)
{
DialogResult dialogResult = MessageBox.Show("Are you sure you want to remove all visibility animations? This cannot be undone!", "", MessageBoxButtons.YesNo);
if (dialogResult == DialogResult.Yes)
{
Nodes.Clear();
}
}
2018-11-22 21:54:52 +01:00
public override void OnClick(TreeView treeView)
{
FormLoader.LoadEditor(this, Text);
}
}
}