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

Method update_distraction_free_mode

editor/editor_node.cpp:6275–6285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6273}
6274
6275void EditorNode::update_distraction_free_mode() {
6276 if (!EDITOR_GET("interface/editor/separate_distraction_mode")) {
6277 return;
6278 }
6279 int screen = editor_main_screen->get_selected_index();
6280 if (screen == EditorMainScreen::EDITOR_SCRIPT) {
6281 set_distraction_free_mode(script_distraction_free);
6282 } else {
6283 set_distraction_free_mode(scene_distraction_free);
6284 }
6285}
6286
6287void EditorNode::set_distraction_free_mode(bool p_enter) {
6288 distraction_free->set_pressed(p_enter);

Callers 1

selectMethod · 0.80

Calls 1

get_selected_indexMethod · 0.80

Tested by

no test coverage detected