Merge pull request #56970 from YeldhamDev/rise_tabbar_rise
This commit is contained in:
+402
-164
File diff suppressed because it is too large
Load Diff
+11
-5
@@ -63,12 +63,11 @@ private:
|
||||
|
||||
Ref<TextLine> text_buf;
|
||||
Ref<Texture2D> icon;
|
||||
int ofs_cache = 0;
|
||||
bool disabled = false;
|
||||
bool hidden = false;
|
||||
int ofs_cache = 0;
|
||||
int size_cache = 0;
|
||||
int size_text = 0;
|
||||
int x_cache = 0;
|
||||
int x_size_cache = 0;
|
||||
|
||||
Ref<Texture2D> right_button;
|
||||
Rect2 rb_rect;
|
||||
@@ -102,6 +101,7 @@ private:
|
||||
int min_width = 0;
|
||||
bool scrolling_enabled = true;
|
||||
bool drag_to_rearrange_enabled = false;
|
||||
bool scroll_to_selected = true;
|
||||
int tabs_rearrange_group = -1;
|
||||
|
||||
int get_tab_width(int p_idx) const;
|
||||
@@ -150,8 +150,11 @@ public:
|
||||
void set_tab_disabled(int p_tab, bool p_disabled);
|
||||
bool is_tab_disabled(int p_tab) const;
|
||||
|
||||
void set_tab_right_button(int p_tab, const Ref<Texture2D> &p_right_button);
|
||||
Ref<Texture2D> get_tab_right_button(int p_tab) const;
|
||||
void set_tab_hidden(int p_tab, bool p_hidden);
|
||||
bool is_tab_hidden(int p_tab) const;
|
||||
|
||||
void set_tab_button_icon(int p_tab, const Ref<Texture2D> &p_icon);
|
||||
Ref<Texture2D> get_tab_button_icon(int p_tab) const;
|
||||
|
||||
void set_tab_alignment(AlignmentMode p_alignment);
|
||||
AlignmentMode get_tab_alignment() const;
|
||||
@@ -187,6 +190,9 @@ public:
|
||||
void set_tabs_rearrange_group(int p_group_id);
|
||||
int get_tabs_rearrange_group() const;
|
||||
|
||||
void set_scroll_to_selected(bool p_enabled);
|
||||
bool get_scroll_to_selected() const;
|
||||
|
||||
void set_select_with_rmb(bool p_enabled);
|
||||
bool get_select_with_rmb() const;
|
||||
|
||||
|
||||
@@ -821,8 +821,8 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, Ref<Te
|
||||
theme->set_stylebox("tab_selected", "TabBar", style_tab_selected);
|
||||
theme->set_stylebox("tab_unselected", "TabBar", style_tab_unselected);
|
||||
theme->set_stylebox("tab_disabled", "TabBar", style_tab_disabled);
|
||||
theme->set_stylebox("close_bg_pressed", "TabBar", button_pressed);
|
||||
theme->set_stylebox("close_bg_highlight", "TabBar", button_normal);
|
||||
theme->set_stylebox("button_pressed", "TabBar", button_pressed);
|
||||
theme->set_stylebox("button_highlight", "TabBar", button_normal);
|
||||
|
||||
theme->set_icon("increment", "TabBar", icons["scroll_button_right"]);
|
||||
theme->set_icon("increment_highlight", "TabBar", icons["scroll_button_right_hl"]);
|
||||
|
||||
Reference in New Issue
Block a user