Added classes' short descriptions as tooltips in the create dialog.
(cherry picked from commit fe3a68c4c2
)
This commit is contained in:
parent
6d45fc0717
commit
fc15a842af
|
@ -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")) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue