A horizontal menu bar that creates a [MenuButton] for each [PopupMenu] child.
A horizontal menu bar that creates a [MenuButton] for each [PopupMenu] child. New items are created by adding [PopupMenu]s to this node.
Returns number of menu items.
Returns [PopupMenu] associated with menu item.
Returns menu item title.
Returns menu item tooltip.
Returns [code]true[/code], if menu item is disabled.
Returns [code]true[/code], if menu item is hidden.
Returns [code]true[/code], if system global menu is supported and used by this [MenuBar].
If [code]true[/code], shortcuts are disabled and cannot be used to trigger the button.
If [code]true[/code], menu item is disabled.
If [code]true[/code], menu item is hidden.
Sets menu item title.
Sets menu item tooltip.
Flat [MenuBar] don't display item decoration.
Language code used for line-breaking and text shaping algorithms, if left empty current locale is used instead.
If [code]true[/code], [MenuBar] will use system global menu when supported.
Position in the global menu to insert first [MenuBar] item at.
If [code]true[/code], when the cursor hovers above menu item, it will close the current [PopupMenu] and open the other one.
Base text writing direction.
Default text [Color] of the menu item.
Text [Color] used when the menu item is disabled.
Text [Color] used when the menu item is focused. Only replaces the normal text color of the menu item. Disabled, hovered, and pressed states take precedence over this color.
Text [Color] used when the menu item is being hovered.
Text [Color] used when the menu item is being hovered and pressed.
The tint of text outline of the menu item.
Text [Color] used when the menu item is being pressed.
The horizontal space between menu items.
The size of the text outline.
[b]Note:[/b] If using a font with [member FontFile.multichannel_signed_distance_field] enabled, its [member FontFile.msdf_pixel_range] must be set to at least [i]twice[/i] the value of [theme_item outline_size] for outline rendering to look correct. Otherwise, the outline may appear to be cut off earlier than intended.
[Font] of the menu item's text.
Font size of the menu item's text.
[StyleBox] used when the menu item is disabled.
[StyleBox] used when the menu item is focused. The [code]focus[/code] [StyleBox] is displayed [i]over[/i] the base [StyleBox], so a partially transparent [StyleBox] should be used to ensure the base [StyleBox] remains visible. A [StyleBox] that represents an outline or an underline works well for this purpose. To disable the focus visual effect, assign a [StyleBoxEmpty] resource. Note that disabling the focus visual effect will harm keyboard/controller navigation usability, so this is not recommended for accessibility reasons.
[StyleBox] used when the menu item is being hovered.
Default [StyleBox] for the menu item.
[StyleBox] used when the menu item is being pressed.