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
parent
IMenuItemParent to attach new item to
name
stringName of the menu item
handler
MenuEventHandlerHandler 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
name
stringName 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
name
stringName of the menu item
handler
MenuEventHandlerHandler for the menu item
Returns
- IMenuItem
object representing the new item