Add option to remove them too
This commit is contained in:
parent
b7b00fa26f
commit
e0aab4c0f9
@ -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…
x
Reference in New Issue
Block a user