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:
OverloadedOrama 2020-01-28 00:19:55 +02:00
parent 2f48547f6c
commit 14900ed5ab
6 changed files with 25 additions and 12 deletions

View file

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