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 6
- 731
Change Default of Icon
from
to
- 726
Change Default of Icon
from
to
- 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 6
Tags: [NotReplicated]
This property determines whether a PluginMenu is shown when it is
displayed as a submenu of another menu, that is, when it has been added to
a parent menu through PluginMenu:AddMenu(). It defaults to true;
setting it to false hides the submenu's entry in its parent menu.
History 3