Added missing bind_method to TreeItem::get_custom_color().

Fix #32595
This commit is contained in:
dankan1890 2019-10-06 22:07:50 +02:00
parent 7801fdfedb
commit b469ff17e2
2 changed files with 10 additions and 0 deletions

View file

@ -120,6 +120,15 @@
Returns the custom background color of column [code]column[/code]. Returns the custom background color of column [code]column[/code].
</description> </description>
</method> </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"> <method name="get_expand_right" qualifiers="const">
<return type="bool"> <return type="bool">
</return> </return>

View file

@ -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("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("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("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); ClassDB::bind_method(D_METHOD("clear_custom_bg_color", "column"), &TreeItem::clear_custom_bg_color);