From a3d2f59dbe7b0b0f7bba406b3adec4b5b5c4caf1 Mon Sep 17 00:00:00 2001 From: Alexander Holland Date: Tue, 13 Mar 2018 16:46:25 +0100 Subject: [PATCH] expose itemlist.unselect_all() --- scene/gui/item_list.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index 50041ffd899..2227baf20a4 100644 --- a/scene/gui/item_list.cpp +++ b/scene/gui/item_list.cpp @@ -1423,6 +1423,8 @@ void ItemList::_bind_methods() { ClassDB::bind_method(D_METHOD("select", "idx", "single"), &ItemList::select, DEFVAL(true)); ClassDB::bind_method(D_METHOD("unselect", "idx"), &ItemList::unselect); + ClassDB::bind_method(D_METHOD("unselect_all"), &ItemList::unselect_all); + ClassDB::bind_method(D_METHOD("is_selected", "idx"), &ItemList::is_selected); ClassDB::bind_method(D_METHOD("get_selected_items"), &ItemList::get_selected_items);