1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-01 07:59:48 +00:00
Pixelorama/src/UI/Canvas/Previews.gd

11 lines
208 B
GDScript3
Raw Normal View History

extends Node2D
func _input(event : InputEvent) -> void:
2021-06-14 16:21:58 +00:00
if Global.has_focus and event is InputEventMouse:
update()
func _draw() -> void:
if Global.has_focus and Global.can_draw:
Tools.draw_preview()