aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/create_dialog.cpp
diff options
context:
space:
mode:
authorWarlaan2016-06-02 17:36:23 +0200
committerRémi Verschelde2016-06-04 22:20:33 +0200
commitfc15a842af2616ee8a15de7c5f836d965d56e1fd (patch)
tree56bb249ea0853c7e3c799340bbc983328c4d9da9 /tools/editor/create_dialog.cpp
parent6d45fc07179d88fe8347eff9475273d3e9bbb0b6 (diff)
downloadgodot-fc15a842af2616ee8a15de7c5f836d965d56e1fd.tar.gz
godot-fc15a842af2616ee8a15de7c5f836d965d56e1fd.tar.zst
godot-fc15a842af2616ee8a15de7c5f836d965d56e1fd.zip
Added classes' short descriptions as tooltips in the create dialog.
(cherry picked from commit fe3a68c4c2c2608ea1d5d17483771bead501c794)
Diffstat (limited to '')
-rw-r--r--tools/editor/create_dialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/editor/create_dialog.cpp b/tools/editor/create_dialog.cpp
index 239815f86..060998c19 100644
--- a/tools/editor/create_dialog.cpp
+++ b/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")) {