A context menu that can be shown in Studio. Displays a list of
PluginActions and supports submenus.
Its interface does not cross the network boundary.
Instances of this class cannot be created with Instance.new.
Tags: [NotCreatable, NotReplicated]
PluginMenu represents a context menu which can be shown in Studio to display
a list of PluginActions and which also supports submenus.
A PluginMenu must be created using the Plugin:CreatePluginMenu()
method in order to work as expected.
Adds the given action to the menu.
History 3
Creates a temporary action that is hidden from Studio's File ⟩
Customize Shortcuts window.
History 2
| Parameters (0) |
|---|
| No parameters. |
| Returns (1) |
|---|
| null |
Adds a separator between items in the menu.
History 3
| Parameters (0) |
|---|
| No parameters. |
| Returns (1) |
|---|
| null |
History 3
This property determines the icon to be displayed when used as a submenu.
It defaults to an empty string "".
Its interface does not cross the network boundary.
History 4
- 553
Change Default of Icon
from
to
- 486
Change ThreadSafety of Icon
from
ReadOnly
to
ReadSafe
- 462
Change ThreadSafety of Icon
from
to
ReadOnly
- 364
Add Icon
Tags: [NotReplicated]
| Parameters (0) |
|---|
| No parameters. |
| Returns (1) |
|---|
| Instance |
Shows the menu at the mouse cursor. It yields until either an item is
selected or the menu is closed. The selected action fires its
PluginAction.Triggered event.
It will block the calling thread until completion.
History 2
Tags: [Yields]
This property determines the text to be displayed when a
PluginMenu is used as a submenu. It defaults to an empty string
"".
Its interface does not cross the network boundary.
History 4
Tags: [NotReplicated]