Instance Propertymigueldeicaza.swiftgodot 0.45.0SwiftGodot
switchOnHover
If true
, when the cursor hovers above another MenuButton
within the same parent which also has switchOnHover
enabled, it will close the current MenuButton
and open the other one.
final var switchOnHover: Bool { get set }
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.
func getPopup(
) -> PopupMenu? Returns the
PopupMenu
contained in this button.func setDisableShortcuts(disabled: Bool
) If
true
, shortcuts are disabled and cannot be used to trigger the button.func showPopup(
) Adjusts popup position and sizing for the
MenuButton
, then shows thePopupMenu
. Prefer this over usingget_popup().popup()
.