MainToolbar ​
Inherits: HBoxContainer
Adaptive toolbar that changes buttons based on current category
Variables ​
Array[Button] | all_buttons | [] |
Array[VSeparator] | all_separators | [] |
String | current_view | "" |
Variant | toolbar_configs | { ... } |
Methods ​
void | setup_theme_manager() |
void | configure_for_category( category: String, default_view: String = "" ) |
void | set_current_view( view_name: String ) |
String | get_current_view() |
int | get_visible_button_count() |
int | get_visible_separator_count() |
void | add_category_config( category: String, buttons: Array[Dictionary] ) |
Array | get_category_config( category: String ) |
bool | has_category( category: String ) |
void | refresh_current_category() |
Array[String] | get_all_categories() |
int | get_category_view_count( category: String ) |
bool | is_category_valid( category: String ) |
Signals ​
view_changed( view_name: String ) ​
Variable descriptions ​
Array[Button] all_buttons = [] ​
No description yet.
Array[VSeparator] all_separators = [] ​
No description yet.
String current_view = "" ​
No description yet.
toolbar_configs ​
No description yet.
Method descriptions ​
void setup_theme_manager() ​
No description yet.
void configure_for_category( category: String, default_view: String = "" ) ​
No description yet.
void set_current_view( view_name: String ) ​
No description yet.
String get_current_view() ​
No description yet.
int get_visible_button_count() ​
No description yet.
int get_visible_separator_count() ​
No description yet.
void add_category_config( category: String, buttons: Array[Dictionary] ) ​
No description yet.
Array get_category_config( category: String ) ​
No description yet.
bool has_category( category: String ) ​
No description yet.
void refresh_current_category() ​
No description yet.
Array[String] get_all_categories() ​
No description yet.
int get_category_view_count( category: String ) ​
No description yet.
bool is_category_valid( category: String ) ​
No description yet.