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

Method get_unsaved_scripts

editor/script/script_editor_plugin.cpp:2761–2771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2759}
2760
2761PackedStringArray ScriptEditor::get_unsaved_scripts() const {
2762 PackedStringArray unsaved_list;
2763
2764 for (int i = 0; i < tab_container->get_tab_count(); i++) {
2765 ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(tab_container->get_tab_control(i));
2766 if (se && se->is_unsaved()) {
2767 unsaved_list.append(se->get_name());
2768 }
2769 }
2770 return unsaved_list;
2771}
2772
2773void ScriptEditor::save_current_script() {
2774 ScriptEditorBase *current = _get_current_editor();

Callers 1

get_unsaved_statusMethod · 0.80

Calls 5

get_tab_controlMethod · 0.80
get_tab_countMethod · 0.45
is_unsavedMethod · 0.45
appendMethod · 0.45
get_nameMethod · 0.45

Tested by

no test coverage detected