mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 09:09: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:
parent
17d56bb432
commit
dd8d217dc3
|
@ -2,6 +2,5 @@ disable:
|
||||||
- no-elif-return
|
- no-elif-return
|
||||||
- no-else-return
|
- no-else-return
|
||||||
- max-returns
|
- max-returns
|
||||||
- private-method-call
|
|
||||||
|
|
||||||
max-file-lines: 2000
|
max-file-lines: 2000
|
||||||
|
|
|
@ -267,7 +267,8 @@ static func create_ui_for_shader_uniforms(
|
||||||
var mod_button := Button.new()
|
var mod_button := Button.new()
|
||||||
mod_button.text = "Modify"
|
mod_button.text = "Modify"
|
||||||
mod_button.pressed.connect(
|
mod_button.pressed.connect(
|
||||||
func(): _modify_texture_resource(
|
func():
|
||||||
|
_modify_texture_resource(
|
||||||
_get_loaded_texture(params, u_name),
|
_get_loaded_texture(params, u_name),
|
||||||
u_name,
|
u_name,
|
||||||
_shader_update_texture.bind(value_changed, u_name)
|
_shader_update_texture.bind(value_changed, u_name)
|
||||||
|
|
|
@ -33,7 +33,11 @@ var layer_metadata_texture := ImageTexture.new()
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
material.set_shader_parameter("layers", layer_texture_array)
|
material.set_shader_parameter("layers", layer_texture_array)
|
||||||
material.set_shader_parameter("metadata", layer_metadata_texture)
|
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.type = onion_past.PAST
|
||||||
onion_past.blue_red_color = Global.onion_skinning_past_color
|
onion_past.blue_red_color = Global.onion_skinning_past_color
|
||||||
onion_future.type = onion_future.FUTURE
|
onion_future.type = onion_future.FUTURE
|
||||||
|
|
|
@ -97,9 +97,8 @@ func _on_LayoutSettings_confirmed() -> void:
|
||||||
Global.control.main_ui.layout = layout
|
Global.control.main_ui.layout = layout
|
||||||
layout_list.add_item(layout_name.text)
|
layout_list.add_item(layout_name.text)
|
||||||
Global.layouts.sort_custom(
|
Global.layouts.sort_custom(
|
||||||
func(a: DockableLayout, b: DockableLayout): return (
|
func(a: DockableLayout, b: DockableLayout):
|
||||||
a.resource_path.get_file() < b.resource_path.get_file()
|
return a.resource_path.get_file() < b.resource_path.get_file()
|
||||||
)
|
|
||||||
)
|
)
|
||||||
var layout_index := Global.layouts.find(layout)
|
var layout_index := Global.layouts.find(layout)
|
||||||
Global.top_menu_container.populate_layouts_submenu()
|
Global.top_menu_container.populate_layouts_submenu()
|
||||||
|
|
Loading…
Reference in a new issue