Bläddra i källkod

expose Itemlist.is_anything_selected

Alexander Holland 7 år sedan
förälder
incheckning
11e40d3700
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      scene/gui/item_list.cpp

+ 2 - 0
scene/gui/item_list.cpp

@@ -1465,6 +1465,8 @@ void ItemList::_bind_methods() {
 	ClassDB::bind_method(D_METHOD("set_auto_height", "enable"), &ItemList::set_auto_height);
 	ClassDB::bind_method(D_METHOD("has_auto_height"), &ItemList::has_auto_height);
 
+	ClassDB::bind_method(D_METHOD("is_anything_selected"), &ItemList::is_anything_selected);
+
 	ClassDB::bind_method(D_METHOD("get_item_at_position", "position", "exact"), &ItemList::get_item_at_position, DEFVAL(false));
 
 	ClassDB::bind_method(D_METHOD("ensure_current_is_visible"), &ItemList::ensure_current_is_visible);