summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-06-02 21:43:37 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-06-02 21:43:37 +0200
commitda950fcc3fed87ece8bbeda3c521d4337d317c09 (patch)
treedcb4fcfda4a614954741745d987e261689d27b99
parent182ee80b7d0e187053150add897931363e5caab4 (diff)
parentfe3a68c4c2c2608ea1d5d17483771bead501c794 (diff)
Merge pull request #4995 from Warlaan/tooltips_in_create_dialog
Added classes' short descriptions as tooltips in the create dialog.
-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 8bce415fb8..cd34b5aeb9 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")) {