A horizontal menu bar that creates a menu for each [PopupMenu] child.
A horizontal menu bar that creates a menu for each [PopupMenu] child. New items are created by adding [PopupMenu]s to this node. Item title is determined by [member Window.title], or node name if [member Window.title] is empty. Item title can be overridden using [method set_menu_title].
Returns number of menu items.
Returns [PopupMenu] associated with menu item.
Returns menu item title.
Returns menu item tooltip.
Returns [code]true[/code] if the menu item is disabled.
Returns [code]true[/code] if the menu item is hidden.
Returns [code]true[/code] if the current system's 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, the current locale is used instead.
- If [code]true[/code], [MenuBar] will use system global menu when supported. [b]Note:[/b] If [code]true[/code] and global menu is supported, this node is not displayed, has zero size, and all its child nodes except [PopupMenu]s are inaccessible. [b]Note:[/b] This property overrides the value of the [member PopupMenu.prefer_native_menu] property of the child nodes.
- Position order in the global menu to insert [MenuBar] items at. All menu items in the [MenuBar] are always inserted as a continuous range. Menus with lower [member start_index] are inserted first. Menus with [member start_index] equal to [code]-1[/code] are inserted last.
- 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 disabled (for right-to-left layouts).
[StyleBox] used when the menu item is being hovered.
[StyleBox] used when the menu item is being hovered (for right-to-left layouts).
[StyleBox] used when the menu item is being pressed and hovered at the same time.
[StyleBox] used when the menu item is being pressed and hovered at the same time (for right-to-left layouts).
Default [StyleBox] for the menu item.
Default [StyleBox] for the menu item (for right-to-left layouts).
[StyleBox] used when the menu item is being pressed.
[StyleBox] used when the menu item is being pressed (for right-to-left layouts).