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

This commit is contained in:
Warlaan 2016-06-02 17:36:23 +02:00
parent 182ee80b7d
commit fe3a68c4c2

View file

@ -36,6 +36,7 @@
#if 1 #if 1
#include "os/keyboard.h" #include "os/keyboard.h"
#include "editor_help.h"
void CreateDialog::popup(bool p_dontclear) { 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")) { if (has_icon(p_type,"EditorIcons")) {