diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-10-07 07:21:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-07 07:21:03 +0200 |
commit | 41aac7c2df920fe5c5c272b30ccd623875a36a91 (patch) | |
tree | 9ae6244655b6a9c4e2cb95ed9bcc2e9c596ebfac | |
parent | aece1fee8b0ad3b106f80d34572fc61c7316f0d3 (diff) | |
parent | b469ff17e2e1171f50a279198a768857192c7d1a (diff) |
Merge pull request #32605 from dankan1890/get_custom_color
Added missing bind_method to TreeItem::get_custom_color().
-rw-r--r-- | doc/classes/TreeItem.xml | 9 | ||||
-rw-r--r-- | scene/gui/tree.cpp | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/doc/classes/TreeItem.xml b/doc/classes/TreeItem.xml index 01d690589b..a4c976591f 100644 --- a/doc/classes/TreeItem.xml +++ b/doc/classes/TreeItem.xml @@ -120,6 +120,15 @@ Returns the custom background color of column [code]column[/code]. </description> </method> + <method name="get_custom_color" qualifiers="const"> + <return type="Color"> + </return> + <argument index="0" name="column" type="int"> + </argument> + <description> + Returns the custom color of column [code]column[/code]. + </description> + </method> <method name="get_expand_right" qualifiers="const"> <return type="bool"> </return> diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 1b52796dc7..c9d1295557 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -827,6 +827,7 @@ void TreeItem::_bind_methods() { ClassDB::bind_method(D_METHOD("set_custom_color", "column", "color"), &TreeItem::set_custom_color); ClassDB::bind_method(D_METHOD("clear_custom_color", "column"), &TreeItem::clear_custom_color); + ClassDB::bind_method(D_METHOD("get_custom_color", "column"), &TreeItem::get_custom_color); ClassDB::bind_method(D_METHOD("set_custom_bg_color", "column", "color", "just_outline"), &TreeItem::set_custom_bg_color, DEFVAL(false)); ClassDB::bind_method(D_METHOD("clear_custom_bg_color", "column"), &TreeItem::clear_custom_bg_color); |