mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-01 07:59:48 +00:00
11 lines
214 B
GDScript3
11 lines
214 B
GDScript3
|
extends Node2D
|
||
|
|
||
|
func _input(event : InputEvent) -> void:
|
||
|
if Global.has_focus and event is InputEventMouseMotion:
|
||
|
update()
|
||
|
|
||
|
|
||
|
func _draw() -> void:
|
||
|
if Global.has_focus and Global.can_draw:
|
||
|
Tools.draw_preview()
|