mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-20 10:09:48 +00:00
25 lines
569 B
GDScript3
25 lines
569 B
GDScript3
|
extends BaseTool
|
||
|
|
||
|
|
||
|
var _add := false # Shift + Mouse Click
|
||
|
var _subtract := false # Ctrl + Mouse Click
|
||
|
var _intersect := false # Shift + Ctrl + Mouse Click
|
||
|
|
||
|
var undo_data : Dictionary
|
||
|
|
||
|
|
||
|
func draw_start(_position : Vector2) -> void:
|
||
|
Global.canvas.selection.transform_content_confirm()
|
||
|
undo_data = Global.canvas.selection._get_undo_data(false)
|
||
|
_intersect = Tools.shift && Tools.control
|
||
|
_add = Tools.shift && !_intersect
|
||
|
_subtract = Tools.control && !_intersect
|
||
|
|
||
|
|
||
|
func draw_move(_position : Vector2) -> void:
|
||
|
pass
|
||
|
|
||
|
|
||
|
func draw_end(_position : Vector2) -> void:
|
||
|
pass
|