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

Method _notification

editor/script/script_editor_plugin.cpp:436–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436void ScriptEditorQuickOpen::_notification(int p_what) {
437 switch (p_what) {
438 case NOTIFICATION_ENTER_TREE: {
439 connect(SceneStringName(confirmed), callable_mp(this, &ScriptEditorQuickOpen::_confirmed));
440
441 search_box->set_clear_button_enabled(true);
442 [[fallthrough]];
443 }
444 case NOTIFICATION_VISIBILITY_CHANGED: {
445 search_box->set_right_icon(search_options->get_editor_theme_icon(SNAME("Search")));
446 } break;
447
448 case NOTIFICATION_EXIT_TREE: {
449 disconnect(SceneStringName(confirmed), callable_mp(this, &ScriptEditorQuickOpen::_confirmed));
450 } break;
451 }
452}
453
454void ScriptEditorQuickOpen::_bind_methods() {
455 ADD_SIGNAL(MethodInfo("goto_line", PropertyInfo(Variant::INT, "line")));

Callers

nothing calls this directly

Calls 13

TTRFunction · 0.85
vformatFunction · 0.85
set_right_iconMethod · 0.80
set_button_iconMethod · 0.80
set_window_titleMethod · 0.80
connectMethod · 0.65
disconnectMethod · 0.65
get_editor_theme_iconMethod · 0.45
is_disabledMethod · 0.45
set_tooltip_textMethod · 0.45

Tested by

no test coverage detected