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

Method _notification

editor/debugger/editor_debugger_node.cpp:332–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332void EditorDebuggerNode::_notification(int p_what) {
333 switch (p_what) {
334 case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
335 if (!EditorThemeManager::is_generated_theme_outdated()) {
336 return;
337 }
338
339 if (tabs->get_tab_count() > 1) {
340 tabs->add_theme_style_override(SceneStringName(panel), EditorNode::get_singleton()->get_editor_theme()->get_stylebox(SNAME("DebuggerPanel"), EditorStringName(EditorStyles)));
341 }
342
343 add_theme_constant_override("margin_left", -EditorNode::get_singleton()->get_editor_theme()->get_stylebox(SNAME("BottomPanelDebuggerOverride"), EditorStringName(EditorStyles))->get_margin(SIDE_LEFT));
344 add_theme_constant_override("margin_right", -EditorNode::get_singleton()->get_editor_theme()->get_stylebox(SNAME("BottomPanelDebuggerOverride"), EditorStringName(EditorStyles))->get_margin(SIDE_RIGHT));
345 add_theme_constant_override("margin_bottom", -EditorNode::get_singleton()->get_editor_theme()->get_stylebox(SNAME("BottomPanelDebuggerOverride"), EditorStringName(EditorStyles))->get_margin(SIDE_BOTTOM));
346
347 remote_scene_tree->update_icon_max_width();
348 } break;
349
350 case NOTIFICATION_READY: {
351 _update_debug_options();
352 initializing = false;
353 } break;
354
355 case NOTIFICATION_PROCESS: {
356 if (server.is_null()) {
357 return;
358 }
359
360 if (!server->is_active()) {
361 stop();
362 return;
363 }
364 server->poll();
365
366 _update_errors();
367
368 // Remote scene tree update.
369 if (!remote_scene_tree_wait) {
370 remote_scene_tree_timeout -= get_process_delta_time();
371 if (remote_scene_tree_timeout < 0) {
372 remote_scene_tree_timeout = EDITOR_GET("debugger/remote_scene_tree_refresh_interval");
373
374 if (remote_scene_tree->is_visible_in_tree()) {
375 remote_scene_tree_wait = true;
376 get_current_debugger()->request_remote_tree();
377 }
378 }
379 }
380
381 // Remote inspector update.
382 if (!inspect_edited_object_wait) {
383 inspect_edited_object_timeout -= get_process_delta_time();
384 if (inspect_edited_object_timeout < 0) {
385 inspect_edited_object_timeout = EDITOR_GET("debugger/remote_inspect_refresh_interval");
386
387 if (EditorDebuggerRemoteObjects *robjs = Object::cast_to<EditorDebuggerRemoteObjects>(InspectorDock::get_inspector_singleton()->get_edited_object())) {
388 inspect_edited_object_wait = true;
389 get_current_debugger()->request_remote_objects(robjs->remote_object_ids, false);

Callers

nothing calls this directly

Calls 15

_for_allFunction · 0.85
update_icon_max_widthMethod · 0.80
get_edited_objectMethod · 0.80
is_session_activeMethod · 0.80
get_pause_buttonMethod · 0.80
show_remote_treeMethod · 0.80
show_tab_buttonsMethod · 0.80
closeMethod · 0.65
get_tab_countMethod · 0.45

Tested by

no test coverage detected