19 lines
465 B
GDScript3
19 lines
465 B
GDScript3
|
extends Area3D
|
||
|
|
||
|
@onready var mouse_over = false
|
||
|
|
||
|
|
||
|
func _input(event):
|
||
|
if event is InputEventMouseButton and event.pressed:
|
||
|
if mouse_over and event.button_index == MOUSE_BUTTON_LEFT:
|
||
|
$"../..".clickLPslSignal.emit()
|
||
|
|
||
|
func _on_mouse_entered() -> void:
|
||
|
mouse_over = true
|
||
|
Input.set_default_cursor_shape(Input.CursorShape.CURSOR_POINTING_HAND)
|
||
|
|
||
|
|
||
|
func _on_mouse_exited() -> void:
|
||
|
mouse_over = false
|
||
|
Input.set_default_cursor_shape(Input.CursorShape.CURSOR_ARROW)
|