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

Method update_settings

editor/script/script_text_editor.cpp:690–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688}
689
690void ScriptTextEditor::update_settings() {
691 code_editor->get_text_editor()->set_gutter_draw(connection_gutter, EDITOR_GET("text_editor/appearance/gutters/show_info_gutter"));
692 if (EDITOR_GET("text_editor/appearance/enable_inline_color_picker")) {
693 code_editor->get_text_editor()->set_inline_object_handlers(
694 callable_mp(this, &ScriptTextEditor::_inline_object_parse),
695 callable_mp(this, &ScriptTextEditor::_inline_object_draw),
696 callable_mp(this, &ScriptTextEditor::_inline_object_handle_click));
697 } else {
698 code_editor->get_text_editor()->set_inline_object_handlers(Callable(), Callable(), Callable());
699 }
700 code_editor->update_editor_settings();
701}
702
703bool ScriptTextEditor::is_unsaved() {
704 const bool unsaved =

Callers

nothing calls this directly

Calls 5

set_gutter_drawMethod · 0.80
get_text_editorMethod · 0.80
CallableClass · 0.50

Tested by

no test coverage detected