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

Method enable_editor

editor/script/text_editor.cpp:130–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void TextEditor::enable_editor(Control *p_shortcut_context) {
131 if (editor_enabled) {
132 return;
133 }
134
135 editor_enabled = true;
136
137 _load_theme_settings();
138
139 _validate_script();
140
141 if (p_shortcut_context) {
142 for (int i = 0; i < edit_hb->get_child_count(); ++i) {
143 Control *c = cast_to<Control>(edit_hb->get_child(i));
144 if (c) {
145 c->set_shortcut_context(p_shortcut_context);
146 }
147 }
148 }
149}
150
151void TextEditor::add_callback(const String &p_function, const PackedStringArray &p_args) {
152}

Callers 3

ensure_select_currentMethod · 0.45
_update_script_namesMethod · 0.45
editMethod · 0.45

Calls 3

get_child_countMethod · 0.45
get_childMethod · 0.45
set_shortcut_contextMethod · 0.45

Tested by

no test coverage detected