瀏覽代碼

Added classes' short descriptions as tooltips in the create dialog.

Warlaan 9 年之前
父節點
當前提交
fe3a68c4c2
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      tools/editor/create_dialog.cpp

+ 4 - 0
tools/editor/create_dialog.cpp

@@ -36,6 +36,7 @@
 #if 1
 
 #include "os/keyboard.h"
+#include "editor_help.h"
 
 
 void CreateDialog::popup(bool p_dontclear) {
@@ -107,6 +108,9 @@ void CreateDialog::add_type(const String& p_type,HashMap<String,TreeItem*>& p_ty
 
 	}
 
+	const String& description = EditorHelp::get_doc_data()->class_list[p_type].brief_description;
+	item->set_tooltip(0,description);
+
 
 	if (has_icon(p_type,"EditorIcons")) {