1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 09:39:48 +00:00
Pixelorama/src/UI/ViewportContainer.gd
2022-08-24 14:22:40 +03:00

19 lines
534 B
GDScript

extends ViewportContainer
func _ready() -> void:
material = CanvasItemMaterial.new()
material.blend_mode = CanvasItemMaterial.BLEND_MODE_PREMULT_ALPHA
func _on_ViewportContainer_mouse_entered() -> void:
Global.has_focus = true
Global.control.left_cursor.visible = Global.show_left_tool_icon
Global.control.right_cursor.visible = Global.show_right_tool_icon
func _on_ViewportContainer_mouse_exited() -> void:
Global.has_focus = false
Global.control.left_cursor.visible = false
Global.control.right_cursor.visible = false