mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 22:54:44 -04:00
More Global left/right variables became Arrays
Global.update_left_custom_brush() and its right counterpart have also now become Global.update_custom_brush(mouse_button : int)
This commit is contained in:
parent
c538140de2
commit
4cc0ccb97b
9 changed files with 102 additions and 159 deletions
|
@ -166,10 +166,10 @@ func on_color_select(index : int) -> void:
|
|||
|
||||
if Input.is_action_just_pressed("left_mouse"):
|
||||
Global.color_pickers[0].color = color
|
||||
Global.update_left_custom_brush()
|
||||
Global.update_custom_brush(0)
|
||||
elif Input.is_action_just_pressed("right_mouse"):
|
||||
Global.color_pickers[1].color = color
|
||||
Global.update_right_custom_brush()
|
||||
Global.update_custom_brush(1)
|
||||
|
||||
|
||||
func _load_palettes() -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue