Instance Methodmigueldeicaza.swiftgodot 0.45.0SwiftGodot
setDisableShortcuts(disabled:)
If true
, shortcuts are disabled and cannot be used to trigger the button.
final func setDisableShortcuts(disabled: Bool)
Other members in extension
Type members
Instance members
var aboutToPopup: SimpleSignal
Emitted when the
PopupMenu
of this MenuButton is about to show.var itemCount: Int32
The number of items currently in the list.
var switchOnHover: Bool
If
true
, when the cursor hovers above anotherMenuButton
within the same parent which also hasswitchOnHover
enabled, it will close the currentMenuButton
and open the other one.func getPopup(
) -> PopupMenu? Returns the
PopupMenu
contained in this button.func showPopup(
) Adjusts popup position and sizing for the
MenuButton
, then shows thePopupMenu
. Prefer this over usingget_popup().popup()
.