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

Method apply_scripts

editor/script/script_editor_plugin.cpp:2886–2895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2884}
2885
2886void ScriptEditor::apply_scripts() const {
2887 for (int i = 0; i < tab_container->get_tab_count(); i++) {
2888 ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(tab_container->get_tab_control(i));
2889 if (!se) {
2890 continue;
2891 }
2892 se->insert_final_newline();
2893 se->apply_code();
2894 }
2895}
2896
2897void ScriptEditor::reload_scripts(bool p_refresh_only) {
2898 // Call deferred to make sure it runs on the main thread.

Callers 1

apply_changesMethod · 0.80

Calls 4

get_tab_controlMethod · 0.80
get_tab_countMethod · 0.45
insert_final_newlineMethod · 0.45
apply_codeMethod · 0.45

Tested by

no test coverage detected