浏览代码

Add icon for root node in Create Dialog

Close #5766
George Marques 9 年之前
父节点
当前提交
0610c77e43
共有 1 个文件被更改,包括 3 次插入0 次删除
  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;