Interface IMenu
- Namespace
- RetroEditor.Plugins
- Assembly
- RetroEditor.dll
Interface for creating menus
public interface IMenu
Methods
AddItem(IMenuItem, string)
Add a menu parented to another menu item. Represents a new submenu.
IMenuItem AddItem(IMenuItem parent, string name)
Parameters
Returns
- IMenuItem
object representing the new item
AddItem(IMenuItem, string, MenuEventHandler)
Add an interactable menu item to the parent menu item
IMenuItem AddItem(IMenuItem parent, string name, MenuEventHandler handler)
Parameters
parentIMenuItemParent to attach new item to
namestringName of the menu item
handlerMenuEventHandlerHandler for the menu item
Returns
- IMenuItem
object representing the new item
AddItem(string)
Add a menu item to the root of the plugins menu. Represents a new submenu.
IMenuItem AddItem(string name)
Parameters
namestringName of the menu item
Returns
- IMenuItem
object representing the new item
AddItem(string, MenuEventHandler)
Add an interactable menu item to the root of the plugins menu.
IMenuItem AddItem(string name, MenuEventHandler handler)
Parameters
namestringName of the menu item
handlerMenuEventHandlerHandler for the menu item
Returns
- IMenuItem
object representing the new item