Menu
Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.
Up and coming
Right-click menus, dropdowns and a window's menu bar, built from items and asked with one call that waits for the pick.
A Menu's children are MenuItems, MenuSeparators and other Menus, which become submenus labelled by their Name. ShowAsync and ShowUnderAsync return the picked item, or nil. Menus fade and slide in and out, items answer hover and press, Up, Down and Enter work, and a submenu opens on hover. Set one as a UIObject's ContextMenu or a Window's MenuBar and it shows with no code.
Made with Instance.new("Menu") or Clone().
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| ShowAsync yields | (position: Vector2?) | MenuItem? | Opens at the pointer or a window position and waits for a pick: the item, or nil on a click-off or Escape. |
| ShowUnderAsync yields | (anchor: UIObject) | MenuItem? | Opens as a dropdown under the anchor, at least as wide as it, and waits for a pick. |
| Close | () | () |
Events
| Name | Passes | Description |
|---|---|---|
| Opened | () | |
| Closed | () |
From ShotInstance 33
ClassNameNameParentAncestryChangedAttributeChangedChangedChildAddedChildRemovedDestroyingAddTagClearAllChildrenCloneDestroyFindFirstAncestorFindFirstAncestorOfClassFindFirstAncestorWhichIsAFindFirstChildFindFirstChildOfClassFindFirstChildWhichIsAGetAttributeGetAttributeChangedSignalGetAttributesGetChildrenGetDescendantsGetFullNameGetPropertyChangedSignalGetTagsHasTagIsAIsAncestorOfIsDescendantOfRemoveTagSetAttribute
