From fc15a842af2616ee8a15de7c5f836d965d56e1fd Mon Sep 17 00:00:00 2001 From: Warlaan Date: Thu, 2 Jun 2016 17:36:23 +0200 Subject: [PATCH] Added classes' short descriptions as tooltips in the create dialog. (cherry picked from commit fe3a68c4c2c2608ea1d5d17483771bead501c794) --- tools/editor/create_dialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/editor/create_dialog.cpp b/tools/editor/create_dialog.cpp index 239815f869e..060998c19aa 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& 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")) {