diff --git a/addons/dialogic/Editor/TimelineEditor/TextEditor/CodeCompletionHelper.gd b/addons/dialogic/Editor/TimelineEditor/TextEditor/CodeCompletionHelper.gd index a23382bd3..8a12cd5e3 100644 --- a/addons/dialogic/Editor/TimelineEditor/TextEditor/CodeCompletionHelper.gd +++ b/addons/dialogic/Editor/TimelineEditor/TextEditor/CodeCompletionHelper.gd @@ -275,7 +275,16 @@ func confirm_code_completion(replace:bool, text:CodeEdit) -> void: word = get_code_completion_parameter_value(text) text.remove_text(text.get_caret_line(), text.get_caret_column()-len(word), text.get_caret_line(), text.get_caret_column()) - text.set_caret_column(text.get_caret_column()-len(word)) + + # Something has changed between 4.2 and 4.3 + # Probably about how carets are reset when text is removed or idk. + # To keep compatibility with 4.2 for at least a while this should do the trick: + # TODO: Remove once compatibility for 4.2 is dropped. + if Engine.get_version_info().hex >= 0x040300: + text.set_caret_column(text.get_caret_column()) + else: + text.set_caret_column(text.get_caret_column()-len(word)) + text.insert_text_at_caret(code_completion.insert_text) if code_completion.has('default_value') and typeof(code_completion['default_value']) == TYPE_STRING: diff --git a/addons/dialogic/Modules/Call/event_call.gd b/addons/dialogic/Modules/Call/event_call.gd index 71643b2bb..0f2c05ddc 100644 --- a/addons/dialogic/Modules/Call/event_call.gd +++ b/addons/dialogic/Modules/Call/event_call.gd @@ -165,7 +165,7 @@ func get_method_suggestions(filter:String="", temp_autoload:String = "") -> Dict var suggestions := {} var script: Script - if temp_autoload: + if temp_autoload and ProjectSettings.has_setting('autoload/'+temp_autoload): script = load(ProjectSettings.get_setting('autoload/'+temp_autoload).trim_prefix('*')) elif autoload_name and ProjectSettings.has_setting('autoload/'+autoload_name):