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
|
@ -11,9 +11,9 @@ func _ready() -> void:
|
|||
func _input(event : InputEvent) -> void:
|
||||
var mouse_pos := viewport_container.get_local_mouse_position()
|
||||
var viewport_size := viewport_container.rect_size
|
||||
if event.is_action_pressed("camera_drag") || event.is_action_pressed("space"):
|
||||
if event.is_action_pressed("middle_mouse") || event.is_action_pressed("space"):
|
||||
drag = true
|
||||
elif event.is_action_released("camera_drag") || event.is_action_released("space"):
|
||||
elif event.is_action_released("middle_mouse") || event.is_action_released("space"):
|
||||
drag = false
|
||||
|
||||
if Global.can_draw && Rect2(Vector2.ZERO, viewport_size).has_point(mouse_pos):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue