From 099f74584ab603a0242555f19926078896a3bb6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 17 Aug 2018 13:46:33 +0200 Subject: [PATCH] Bind ItemList's item_custom_fg_color methods Fixes #21086. --- doc/classes/ItemList.xml | 18 ++++++++++++++++++ scene/gui/item_list.cpp | 3 +++ 2 files changed, 21 insertions(+) diff --git a/doc/classes/ItemList.xml b/doc/classes/ItemList.xml index 48ca0ddc011..4723cf8ee4a 100644 --- a/doc/classes/ItemList.xml +++ b/doc/classes/ItemList.xml @@ -77,6 +77,14 @@ + + + + + + + + @@ -227,6 +235,16 @@ + + + + + + + + + + diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index 5c79741682c..d61bd97c2a4 100644 --- a/scene/gui/item_list.cpp +++ b/scene/gui/item_list.cpp @@ -1423,6 +1423,9 @@ void ItemList::_bind_methods() { ClassDB::bind_method(D_METHOD("set_item_custom_bg_color", "idx", "custom_bg_color"), &ItemList::set_item_custom_bg_color); ClassDB::bind_method(D_METHOD("get_item_custom_bg_color", "idx"), &ItemList::get_item_custom_bg_color); + ClassDB::bind_method(D_METHOD("set_item_custom_fg_color", "idx", "custom_fg_color"), &ItemList::set_item_custom_fg_color); + ClassDB::bind_method(D_METHOD("get_item_custom_fg_color", "idx"), &ItemList::get_item_custom_fg_color); + ClassDB::bind_method(D_METHOD("set_item_tooltip_enabled", "idx", "enable"), &ItemList::set_item_tooltip_enabled); ClassDB::bind_method(D_METHOD("is_item_tooltip_enabled", "idx"), &ItemList::is_item_tooltip_enabled);