mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-10 07:04:36 +00:00
Add option to remove them too
This commit is contained in:
parent
b7b00fa26f
commit
e0aab4c0f9
1 changed files with 10 additions and 0 deletions
|
@ -191,6 +191,11 @@ namespace LayoutBXLYT
|
|||
{
|
||||
RenameTextureAction(matNode, i);
|
||||
}));
|
||||
matNode.ContextMenuStrip.Items.Add(new STToolStipMenuItem("Remove", null, (o, e) =>
|
||||
{
|
||||
ActiveLayout.TextureFolder.Nodes.Remove(matNode);
|
||||
ActiveLayout.Textures.Remove(matNode.Text);
|
||||
}));
|
||||
matNode.ImageKey = "texture";
|
||||
matNode.SelectedImageKey = "texture";
|
||||
ActiveLayout.TextureFolder.Nodes.Add(matNode);
|
||||
|
@ -230,6 +235,11 @@ namespace LayoutBXLYT
|
|||
{
|
||||
RenameFont(matNode, i);
|
||||
}));
|
||||
matNode.ContextMenuStrip.Items.Add(new STToolStipMenuItem("Remove", null, (o, e) =>
|
||||
{
|
||||
ActiveLayout.FontFolder.Nodes.Remove(matNode);
|
||||
ActiveLayout.Fonts.Remove(matNode.Text);
|
||||
}));
|
||||
matNode.ImageKey = "font";
|
||||
matNode.SelectedImageKey = "font";
|
||||
ActiveLayout.FontFolder.Nodes.Add(matNode);
|
||||
|
|
Loading…
Reference in a new issue