mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 11:54:44 -04:00
Additional changes w/ merge from master
This commit is contained in:
parent
4c3b43d350
commit
582ee8e790
2 changed files with 37 additions and 36 deletions
|
@ -76,11 +76,14 @@ func _display_palette(palette) -> void:
|
|||
pass
|
||||
|
||||
func on_color_select(index : int) -> void:
|
||||
var color = Color(Global.palettes[current_palette][index].data)
|
||||
if Input.is_action_just_released("left_mouse"):
|
||||
Global.left_color_picker.color = default_palette[index]
|
||||
print("left")
|
||||
Global.left_color_picker.color = color
|
||||
Global.update_left_custom_brush()
|
||||
elif Input.is_action_just_released("right_mouse"):
|
||||
Global.right_color_picker.color = default_palette[index]
|
||||
print("right")
|
||||
Global.right_color_picker.color = color
|
||||
Global.update_right_custom_brush()
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue