From dd8d217dc362b472f8c4690d68fd1102a2af5e61 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:54:59 +0300 Subject: [PATCH] Changes in formatting due to gdtoolkit's new update https://github.com/Scony/godot-gdscript-toolkit/releases/tag/4.3.2 --- .gdlintrc | 1 - src/Classes/ShaderLoader.gd | 11 ++++++----- src/UI/Canvas/Canvas.gd | 6 +++++- src/UI/Dialogs/ManageLayouts.gd | 5 ++--- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.gdlintrc b/.gdlintrc index d0a139df2..1818289c4 100644 --- a/.gdlintrc +++ b/.gdlintrc @@ -2,6 +2,5 @@ disable: - no-elif-return - no-else-return - max-returns - - private-method-call max-file-lines: 2000 diff --git a/src/Classes/ShaderLoader.gd b/src/Classes/ShaderLoader.gd index 1db9d732f..e2f7a8a62 100644 --- a/src/Classes/ShaderLoader.gd +++ b/src/Classes/ShaderLoader.gd @@ -267,11 +267,12 @@ static func create_ui_for_shader_uniforms( var mod_button := Button.new() mod_button.text = "Modify" mod_button.pressed.connect( - func(): _modify_texture_resource( - _get_loaded_texture(params, u_name), - u_name, - _shader_update_texture.bind(value_changed, u_name) - ) + func(): + _modify_texture_resource( + _get_loaded_texture(params, u_name), + u_name, + _shader_update_texture.bind(value_changed, u_name) + ) ) mod_button.size_flags_horizontal = Control.SIZE_EXPAND_FILL mod_button.mouse_default_cursor_shape = Control.CURSOR_POINTING_HAND diff --git a/src/UI/Canvas/Canvas.gd b/src/UI/Canvas/Canvas.gd index 35867c633..cae059c73 100644 --- a/src/UI/Canvas/Canvas.gd +++ b/src/UI/Canvas/Canvas.gd @@ -33,7 +33,11 @@ var layer_metadata_texture := ImageTexture.new() func _ready() -> void: material.set_shader_parameter("layers", layer_texture_array) material.set_shader_parameter("metadata", layer_metadata_texture) - Global.project_switched.connect(func(): project_changed = true ; queue_redraw()) + Global.project_switched.connect( + func(): + project_changed = true + queue_redraw() + ) onion_past.type = onion_past.PAST onion_past.blue_red_color = Global.onion_skinning_past_color onion_future.type = onion_future.FUTURE diff --git a/src/UI/Dialogs/ManageLayouts.gd b/src/UI/Dialogs/ManageLayouts.gd index 27edd6949..30ed0bd83 100644 --- a/src/UI/Dialogs/ManageLayouts.gd +++ b/src/UI/Dialogs/ManageLayouts.gd @@ -97,9 +97,8 @@ func _on_LayoutSettings_confirmed() -> void: Global.control.main_ui.layout = layout layout_list.add_item(layout_name.text) Global.layouts.sort_custom( - func(a: DockableLayout, b: DockableLayout): return ( - a.resource_path.get_file() < b.resource_path.get_file() - ) + func(a: DockableLayout, b: DockableLayout): + return a.resource_path.get_file() < b.resource_path.get_file() ) var layout_index := Global.layouts.find(layout) Global.top_menu_container.populate_layouts_submenu()