diff options
Diffstat (limited to 'editor/editor_help.h')
-rw-r--r-- | editor/editor_help.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/editor/editor_help.h b/editor/editor_help.h index f74c64bb7c..377ae05a08 100644 --- a/editor/editor_help.h +++ b/editor/editor_help.h @@ -31,6 +31,7 @@ #ifndef EDITOR_HELP_H #define EDITOR_HELP_H +#include "core/os/thread.h" #include "editor/code_editor.h" #include "editor/doc_tools.h" #include "editor/editor_plugin.h" @@ -125,17 +126,21 @@ class EditorHelp : public VBoxContainer { String base_path; - Color title_color; Color text_color; + Color title_color; Color headline_color; - Color base_type_color; - Color type_color; Color comment_color; Color symbol_color; Color value_color; Color qualifier_color; + Color type_color; - void _init_colors(); + Ref<Font> doc_font; + Ref<Font> doc_bold_font; + Ref<Font> doc_title_font; + Ref<Font> doc_code_font; + + void _update_theme(); void _help_callback(const String &p_topic); void _add_text(const String &p_bbcode); @@ -164,13 +169,19 @@ class EditorHelp : public VBoxContainer { String _fix_constant(const String &p_constant) const; void _toggle_scripts_pressed(); + static Thread thread; + + static void _wait_for_thread(); + static void _gen_doc_thread(void *p_udata); + protected: void _notification(int p_what); static void _bind_methods(); public: static void generate_doc(); - static DocTools *get_doc_data() { return doc; } + static DocTools *get_doc_data(); + static void cleanup_doc(); void go_to_help(const String &p_help); void go_to_class(const String &p_class, int p_scroll = 0); |