1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 00:59:47 +00:00

Changes in formatting due to gdtoolkit's new update

https://github.com/Scony/godot-gdscript-toolkit/releases/tag/4.3.2
This commit is contained in:
Emmanouil Papadeas 2024-10-22 15:54:59 +03:00
parent 17d56bb432
commit dd8d217dc3
4 changed files with 13 additions and 10 deletions

View file

@ -2,6 +2,5 @@ disable:
- no-elif-return
- no-else-return
- max-returns
- private-method-call
max-file-lines: 2000

View file

@ -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

View file

@ -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

View file

@ -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()