| 3932 | } |
| 3933 | |
| 3934 | Vector<Ref<Script>> ScriptEditor::get_open_scripts() const { |
| 3935 | Vector<Ref<Script>> out_scripts = Vector<Ref<Script>>(); |
| 3936 | |
| 3937 | for (int i = 0; i < tab_container->get_tab_count(); i++) { |
| 3938 | ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(tab_container->get_tab_control(i)); |
| 3939 | if (!se) { |
| 3940 | continue; |
| 3941 | } |
| 3942 | |
| 3943 | Ref<Script> scr = se->get_edited_resource(); |
| 3944 | if (scr.is_valid()) { |
| 3945 | out_scripts.push_back(scr); |
| 3946 | } |
| 3947 | } |
| 3948 | |
| 3949 | return out_scripts; |
| 3950 | } |
| 3951 | |
| 3952 | TypedArray<ScriptEditorBase> ScriptEditor::_get_open_script_editors() const { |
| 3953 | TypedArray<ScriptEditorBase> script_editors; |
no test coverage detected