| 500 | } |
| 501 | |
| 502 | void ScriptEditor::_breaked(bool p_breaked, bool p_can_debug) { |
| 503 | if (external_editor_active) { |
| 504 | return; |
| 505 | } |
| 506 | |
| 507 | for (int i = 0; i < tab_container->get_tab_count(); i++) { |
| 508 | ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(tab_container->get_tab_control(i)); |
| 509 | if (!se) { |
| 510 | continue; |
| 511 | } |
| 512 | |
| 513 | se->set_debugger_active(p_breaked); |
| 514 | } |
| 515 | } |
| 516 | |
| 517 | void ScriptEditor::_script_created(Ref<Script> p_script) { |
| 518 | EditorNode::get_singleton()->push_item(p_script.operator->()); |
nothing calls this directly
no test coverage detected