MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _notification

Method _notification

editor/doc/editor_help.cpp:3296–3359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3294}
3295
3296void EditorHelp::_notification(int p_what) {
3297 switch (p_what) {
3298 case NOTIFICATION_POSTINITIALIZE: {
3299 // Requires theme to be up to date.
3300 _class_desc_resized(false);
3301 } break;
3302
3303 case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
3304 bool need_update = false;
3305 if (EditorSettings::get_singleton()->check_changed_settings_in_group("text_editor/help")) {
3306 need_update = true;
3307 }
3308#if defined(MODULE_GDSCRIPT_ENABLED) || defined(MODULE_MONO_ENABLED)
3309 if (!need_update && EditorSettings::get_singleton()->check_changed_settings_in_group("text_editor/theme/highlighting")) {
3310 need_update = true;
3311 }
3312#endif
3313 if (!need_update) {
3314 break;
3315 }
3316 [[fallthrough]];
3317 }
3318 case NOTIFICATION_READY: {
3319 _wait_for_thread();
3320 _update_doc();
3321 } break;
3322
3323 case NOTIFICATION_THEME_CHANGED: {
3324 if (is_inside_tree()) {
3325 if (is_visible_in_tree()) {
3326 _update_doc();
3327 } else {
3328 update_pending = true;
3329 }
3330
3331 _class_desc_resized(true);
3332 }
3333 update_toggle_files_button();
3334 } break;
3335
3336 case NOTIFICATION_VISIBILITY_CHANGED: {
3337 if (update_pending && is_visible_in_tree()) {
3338 _update_doc();
3339 }
3340 update_toggle_files_button();
3341 } break;
3342
3343 case NOTIFICATION_TRANSLATION_CHANGED: {
3344 if (!is_ready()) {
3345 break;
3346 }
3347
3348 if (is_visible_in_tree()) {
3349 _update_doc();
3350 } else {
3351 update_pending = true;
3352 }
3353 [[fallthrough]];

Callers

nothing calls this directly

Calls 12

set_input_as_handledMethod · 0.80
get_mouse_button_maskMethod · 0.80
set_button_iconMethod · 0.80
get_ticks_msecMethod · 0.45
stopMethod · 0.45
is_emptyMethod · 0.45
is_zero_approxMethod · 0.45

Tested by

no test coverage detected