mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-12-02 00:22:09 +00:00
15b2adfe30
Fixed, Texture Browser Form: well, I broke "Tab" key functionality again (in previous commit)... Maintenance: changed curly braces style to match DB2 one (hopefully not breaking anything in the process...). Maintenance: changed private method names casing to match DB2 one.
42 lines
1.2 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|