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

(cherry picked from commit fe3a68c4c2)
This commit is contained in:
Warlaan 2016-06-02 17:36:23 +02:00 committed by Rémi Verschelde
parent 6d45fc0717
commit fc15a842af
1 changed files with 4 additions and 0 deletions

View File

@ -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")) {