:github_url: hide
Inherits: Container
Inherited By: HAnimatedBar, VAnimatedBar
Class for creating tool bar.
Emits custom siglalls when one of button children is pressed.
See also HAnimatedBar and VAnimatedBar.
.. tabs::
.. code-tab:: gdscript
func Test():
pritn("TEST!")
.. tabs::
.. code-tab:: csharp
private void Test()
{
GD.Print("TEST!");
}
.. tabs::
Text with multiple lines.
Second line of text.
There was a blank line.
[/text]
| bool | fill_remaining_space | true |
| NodePath | navigation_buttons_custom_left | NodePath("") |
| NodePath | navigation_buttons_custom_right | NodePath("") |
| float | navigation_buttons_spacing | 5.0 |
| bool | navigation_buttons_use_custom | false |
| int | navigation_buttons_visibility | 3 |
| float | spacing | 10.0 |
| float | speed | 4.0 |
| bool | are_navigation_buttons_visible( ) |
| void | deactivate_focus( ) |
| int | get_options_quantity( ) const |
| ORIENTATION | get_orientation( ) const |
focus_activated( focused_child_id: int )
Emitted when option changes from nothing to something.
focus_changed( focused_child_id: int )
Emitted when one option changes to another.
Emitted when option changes from something to nothing.
options_quantity_changed( new_quantity: int )
Emitted when quantity of options changes.
ORIENTATION ORIENTATION_HORIZONTAL = 1
Value of HAnimatedBar.
ORIENTATION ORIENTATION_VERTICAL = 2
Value of VAnimatedBar.
ORIENTATION ORIENTATION_UNDEFINED = 0
Default value.
bool fill_remaining_space = true
If true Control children are stretched to fill remaining space.
NodePath navigation_buttons_custom_left = NodePath("")
- void set_custom_left_navigation_button( value: NodePath )
- NodePath get_custom_left_navigation_button( )
If is not set to null pointer and navigation_buttons_use_custom is set to true then child found by this path replaces default left navigation button.
NodePath navigation_buttons_custom_right = NodePath("")
- void set_custom_right_navigation_button( value: NodePath )
- NodePath get_custom_right_navigation_button( )
If is not set to null pointer and navigation_buttons_use_custom is set to true then child found by this path replaces default right navigation button.
float navigation_buttons_spacing = 5.0
Defines space between navigation buttons and other content.
bool navigation_buttons_use_custom = false
Defines if to use custom navigation buttons.
int navigation_buttons_visibility = 3
If set to 0 then navigation buttons are always hidden.
If set to 1 then navigation buttons are always visible.
If set to other number then navigation buttons whill automatically hide and show up.
float spacing = 10.0
Defines space between individual Control Children.
float speed = 4.0
Defines sliding speed of content after pressing one of navigation buttons.
bool are_navigation_buttons_visible( )
Returns true if left and right navigation buttons(by default, those with arrows) are visible.
Does same thing as pressing already chosen butoon(eg. choosing already choosen tool).
int get_options_quantity( ) const
Return number of Control children.
ORIENTATION get_orientation( ) const
Returns orientation of this class.
Note: It is C++ virtual const method and subclasses like HAnimatedBar may overwrite it.