Explorar el Código

Add icon for root node in Create Dialog

Close #5766
George Marques hace 9 años
padre
commit
0610c77e43
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      tools/editor/create_dialog.cpp

+ 3 - 0
tools/editor/create_dialog.cpp

@@ -154,6 +154,9 @@ void CreateDialog::_update_search() {
 	TreeItem *root = search_options->create_item();
 
 	root->set_text(0,base_type);
+	if (has_icon(base_type,"EditorIcons")) {
+		root->set_icon(0,get_icon(base_type,"EditorIcons"));
+	}
 
 	List<StringName>::Element *I=type_list.front();
 	TreeItem *to_select=NULL;