getMenuAction
getMenuAction: (OverlayMenuEntry) -> MenuActionThe entry's MenuAction.
OverlayMenuEntry.new(…)
Overlay.new(…):addMenuEntry(…)| Method | Returns | Description |
|---|---|---|
getMenuAction() | MenuAction | The entry's MenuAction. |
getOption() | string | The option text. |
getTarget() | string | The target text. |
equals(any) | boolean | Whether other is an entry with the same action, option and target (the callback is not compared). |
toString() | string | The text form: OverlayMenuEntry(menuAction=..., option=..., target=...). |
new(MenuAction, string, string) | OverlayMenuEntry | An entry with no callback: picking it posts OverlayMenuClicked. |
| Method | Returns | Description |
|---|---|---|
InfoBox.getMenuEntries | {OverlayMenuEntry} | The live list of the box's shift-right-click entries (the manager adds Detach, Flip and, outside the default group, Delete). |
Overlay.addMenuEntry | OverlayMenuEntry | (Overlay, MenuAction, string, string) -> OverlayMenuEntry: Adds a shift-right-click entry; picking it posts OverlayMenuClicked. |
Overlay.getMenuEntries | {OverlayMenuEntry} | The live list of entries: table.insert adds. |
OverlayMenuClicked.getEntry | OverlayMenuEntry | The entry picked: the overlay's plugin's own object there, an equal copy in another plugin. |
OverlayMenuEntryClass.new | OverlayMenuEntry | An entry with no callback: picking it posts OverlayMenuClicked. |
getMenuActiongetMenuAction: (OverlayMenuEntry) -> MenuActionThe entry's MenuAction.
getOptiongetOption: (OverlayMenuEntry) -> stringThe option text.
getTargetgetTarget: (OverlayMenuEntry) -> stringThe target text.
equalsequals: (OverlayMenuEntry, any) -> booleanWhether other is an entry with the same action, option and target (the callback is not compared).
toStringtoString: (OverlayMenuEntry) -> stringThe text form: OverlayMenuEntry(menuAction=..., option=..., target=...).
newnew: (MenuAction, string, string) -> OverlayMenuEntryAn entry with no callback: picking it posts OverlayMenuClicked.