Add option to remove them too

This commit is contained in:
KillzXGaming 2022-02-28 18:33:46 -05:00
parent b7b00fa26f
commit e0aab4c0f9

View file

@ -191,6 +191,11 @@ namespace LayoutBXLYT
{ {
RenameTextureAction(matNode, i); 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.ImageKey = "texture";
matNode.SelectedImageKey = "texture"; matNode.SelectedImageKey = "texture";
ActiveLayout.TextureFolder.Nodes.Add(matNode); ActiveLayout.TextureFolder.Nodes.Add(matNode);
@ -230,6 +235,11 @@ namespace LayoutBXLYT
{ {
RenameFont(matNode, i); 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.ImageKey = "font";
matNode.SelectedImageKey = "font"; matNode.SelectedImageKey = "font";
ActiveLayout.FontFolder.Nodes.Add(matNode); ActiveLayout.FontFolder.Nodes.Add(matNode);