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:
OverloadedOrama 2020-05-31 18:40:47 +03:00
parent c538140de2
commit 4cc0ccb97b
9 changed files with 102 additions and 159 deletions

View file

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