diff options
author | Alexander Holland <alexander.holland@live.de> | 2018-03-13 16:46:25 +0100 |
---|---|---|
committer | Alexander Holland <alexander.holland@live.de> | 2018-03-13 16:46:25 +0100 |
commit | a3d2f59dbe7b0b0f7bba406b3adec4b5b5c4caf1 (patch) | |
tree | 88b4b0dd5c05235d75f4494e72df56f8489aae98 | |
parent | 30d690ecfcbd9bbf0fdf49c688c92a851dd9289e (diff) |
expose itemlist.unselect_all()
-rw-r--r-- | scene/gui/item_list.cpp | 2 |
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); |