summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-03-13 20:01:34 +0100
committerGitHub <noreply@github.com>2018-03-13 20:01:34 +0100
commit9b1f03ffece561991b408ea8106d370f810ed9d2 (patch)
tree3bc1e41eae787445801516367730fb49f5c5c86d /scene
parentd6c802f3aeda53634a54fe13f97b94dbcefa9eeb (diff)
parenta3d2f59dbe7b0b0f7bba406b3adec4b5b5c4caf1 (diff)
Merge pull request #17488 from AlexHolly/expose-itemlist-unselect_all
expose itemlist.unselect_all()
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/item_list.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp
index 50041ffd89..2227baf20a 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);