UltimateZoneBuilder/Source/Plugins/BuilderEffects/Interface/MenusForm.cs
MaxED 3a35b7603a Fixed, Map Analysis mode, "Check stuck things" check: rewritten parts of the flags checking logic to allow more accurate flag checks.
Fixed, Map Analysis mode: fixed a crash when trying to dissolve an invalid sector when one of it's linedefs referenced it on the both sides.
Fixed, Sectors mode: fixed incorrect undo description when deleting sectors.
Internal: joined declaration and assignment of some more variables.
2015-12-28 15:01:53 +00:00

42 lines
1.2 KiB
C#

using System;
using System.Windows.Forms;
using CodeImp.DoomBuilder.Windows;
namespace CodeImp.DoomBuilder.BuilderEffects
{
public partial class MenusForm : Form
{
public MenusForm()
{
InitializeComponent();
}
// This invokes an action from control event
private void InvokeTaggedAction(object sender, EventArgs e)
{
General.Interface.InvokeTaggedAction(sender, e);
}
// This registers with the core
public void Register()
{
// Add the menus to the core
General.Interface.AddModesMenu(jitterItem, "002_modify");
General.Interface.AddModesButton(jitterButton, "002_modify");
for(int i = 0; i < importStripMenuItem.DropDownItems.Count; i++)
General.Interface.AddMenu(importStripMenuItem.DropDownItems[i] as ToolStripMenuItem, MenuSection.FileImport);
}
// This unregisters from the core
public void Unregister()
{
// Remove the menus from the core
General.Interface.RemoveMenu(jitterItem);
General.Interface.RemoveButton(jitterButton);
for(int i = 0; i < importStripMenuItem.DropDownItems.Count; i++)
General.Interface.RemoveMenu(importStripMenuItem.DropDownItems[i] as ToolStripMenuItem);
}
}
}