mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 16:04:43 -04:00
Remove custom brushes with the middle mouse button
And made the "X" button on the custom brushes a little smaller. Partially addresses #132
This commit is contained in:
parent
2f48547f6c
commit
14900ed5ab
6 changed files with 25 additions and 12 deletions
|
@ -6,6 +6,10 @@ export var custom_brush_index := -3
|
|||
var random_brushes := []
|
||||
|
||||
func _on_BrushButton_pressed() -> void:
|
||||
# Delete the brush on middle mouse press
|
||||
if Input.is_action_just_released("middle_mouse"):
|
||||
_on_DeleteButton_pressed()
|
||||
return
|
||||
# Change left brush
|
||||
if Global.brush_type_window_position == "left":
|
||||
Global.current_left_brush_type = brush_type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue