mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
Merge pull request #67578 from KoBeWi/GEDITOR
Unify usage of GLOBAL/EDITOR_GET
This commit is contained in:
commit
5947f22be9
113 changed files with 528 additions and 528 deletions
|
|
@ -325,7 +325,7 @@ bool ScriptTextEditor::show_members_overview() {
|
|||
}
|
||||
|
||||
void ScriptTextEditor::update_settings() {
|
||||
code_editor->get_text_editor()->set_gutter_draw(connection_gutter, EditorSettings::get_singleton()->get("text_editor/appearance/gutters/show_info_gutter"));
|
||||
code_editor->get_text_editor()->set_gutter_draw(connection_gutter, EDITOR_GET("text_editor/appearance/gutters/show_info_gutter"));
|
||||
code_editor->update_editor_settings();
|
||||
}
|
||||
|
||||
|
|
@ -698,7 +698,7 @@ static void _find_changed_scripts_for_external_editor(Node *p_base, Node *p_curr
|
|||
}
|
||||
|
||||
void ScriptEditor::_update_modified_scripts_for_external_editor(Ref<Script> p_for_script) {
|
||||
if (!bool(EditorSettings::get_singleton()->get("text_editor/external/use_external_editor"))) {
|
||||
if (!bool(EDITOR_GET("text_editor/external/use_external_editor"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -1793,7 +1793,7 @@ void ScriptTextEditor::_text_edit_gui_input(const Ref<InputEvent> &ev) {
|
|||
int row = pos.y;
|
||||
int col = pos.x;
|
||||
|
||||
tx->set_move_caret_on_right_click_enabled(EditorSettings::get_singleton()->get("text_editor/behavior/navigation/move_caret_on_right_click"));
|
||||
tx->set_move_caret_on_right_click_enabled(EDITOR_GET("text_editor/behavior/navigation/move_caret_on_right_click"));
|
||||
if (tx->is_move_caret_on_right_click_enabled()) {
|
||||
tx->remove_secondary_carets();
|
||||
if (tx->has_selection()) {
|
||||
|
|
@ -2139,7 +2139,7 @@ ScriptTextEditor::ScriptTextEditor() {
|
|||
|
||||
update_settings();
|
||||
|
||||
code_editor->get_text_editor()->set_code_hint_draw_below(EditorSettings::get_singleton()->get("text_editor/completion/put_callhint_tooltip_below_current_line"));
|
||||
code_editor->get_text_editor()->set_code_hint_draw_below(EDITOR_GET("text_editor/completion/put_callhint_tooltip_below_current_line"));
|
||||
|
||||
code_editor->get_text_editor()->set_symbol_lookup_on_click_enabled(true);
|
||||
code_editor->get_text_editor()->set_context_menu_enabled(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue