diff options
| author | volzhs | 2016-12-28 22:12:08 +0900 |
|---|---|---|
| committer | volzhs | 2016-12-28 22:12:08 +0900 |
| commit | f33e21e7afc64990bca106e6b349cbe2f7e81c0e (patch) | |
| tree | 893f63a30f7c004ee489ab854cdd9bc08a80969e /scene/gui/tree.h | |
| parent | 792ff11642c0bd0d2c2c647a2cc4d828f47d35d0 (diff) | |
| download | godot-f33e21e7afc64990bca106e6b349cbe2f7e81c0e.tar.gz godot-f33e21e7afc64990bca106e6b349cbe2f7e81c0e.tar.zst godot-f33e21e7afc64990bca106e6b349cbe2f7e81c0e.zip | |
Show visual notice for visibility on Scene Dock
Diffstat (limited to 'scene/gui/tree.h')
| -rw-r--r-- | scene/gui/tree.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/gui/tree.h b/scene/gui/tree.h index 1936f926c..b115d3b9a 100644 --- a/scene/gui/tree.h +++ b/scene/gui/tree.h @@ -93,7 +93,8 @@ friend class Tree; int id; bool disabled; Ref<Texture> texture; - Button() { id=0; disabled=false; } + Color color; + Button() { id=0; disabled=false; color=Color(1,1,1,1); } }; Vector< Button > buttons; @@ -189,6 +190,7 @@ public: int get_button_by_id(int p_column,int p_id) const; bool is_button_disabled(int p_column,int p_idx) const; void set_button(int p_column,int p_idx,const Ref<Texture>& p_button); + void set_button_color(int p_column,int p_idx,const Color& p_color); /* range works for mode number or mode combo */ |
