summaryrefslogtreecommitdiffstats
path: root/scene/gui/tree.h
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2021-05-02 18:34:29 +0300
committerYuri Sizov <yuris@humnom.net>2021-05-25 18:56:06 +0300
commit9c92e9d849fbba212804e1e98622235eaed7f99f (patch)
tree34a11ad4373509c2b5b1b113f5d276867172ec7c /scene/gui/tree.h
parentf164c00a94793234879dc1824bd657db6df939ec (diff)
downloadredot-engine-9c92e9d849fbba212804e1e98622235eaed7f99f.tar.gz
Add highlight to the relationship lines of selected Tree items
Diffstat (limited to 'scene/gui/tree.h')
-rw-r--r--scene/gui/tree.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/gui/tree.h b/scene/gui/tree.h
index 9dbfd93082..c0948f1b80 100644
--- a/scene/gui/tree.h
+++ b/scene/gui/tree.h
@@ -494,6 +494,8 @@ private:
Color guide_color;
Color drop_position_color;
Color relationship_line_color;
+ Color parent_hl_line_color;
+ Color children_hl_line_color;
Color custom_button_font_highlight;
int hseparation = 0;
@@ -502,6 +504,10 @@ private:
int button_margin = 0;
Point2 offset;
int draw_relationship_lines = 0;
+ int relationship_line_width = 0;
+ int parent_hl_line_width = 0;
+ int children_hl_line_width = 0;
+ int parent_hl_line_margin = 0;
int draw_guides = 0;
int scroll_border = 0;
int scroll_speed = 0;
@@ -574,6 +580,8 @@ private:
bool hide_folding = false;
int _count_selected_items(TreeItem *p_from) const;
+ bool _is_branch_selected(TreeItem *p_from) const;
+ bool _is_sibling_branch_selected(TreeItem *p_from) const;
void _go_left();
void _go_right();
void _go_down();