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

Method set_edit_state

editor/script/text_editor.cpp:277–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277void TextEditor::set_edit_state(const Variant &p_state) {
278 code_editor->set_edit_state(p_state);
279
280 Dictionary state = p_state;
281 if (state.has("syntax_highlighter")) {
282 int idx = highlighter_menu->get_item_idx_from_text(state["syntax_highlighter"]);
283 if (idx >= 0) {
284 _change_syntax_highlighter(idx);
285 }
286 }
287
288 ensure_focus();
289}
290
291Variant TextEditor::get_navigation_state() {
292 return code_editor->get_navigation_state();

Callers 3

editMethod · 0.45
set_window_layoutMethod · 0.45
_update_history_posMethod · 0.45

Calls 2

hasMethod · 0.45

Tested by

no test coverage detected