few UX improvements
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 9s
Create tag and build when new code gets to main / Export (push) Successful in 1m44s

This commit is contained in:
2026-02-02 16:58:09 +01:00
parent effb8769d8
commit a37aeb620d
11 changed files with 128 additions and 114 deletions

19
utils/clickable.gd Normal file
View File

@@ -0,0 +1,19 @@
extends Area2D
class_name Clickable
signal on_clicked
func _on_mouse_entered() -> void:
Input.set_default_cursor_shape(Input.CursorShape.CURSOR_POINTING_HAND)
func _on_mouse_exited() -> void:
Input.set_default_cursor_shape(Input.CursorShape.CURSOR_ARROW)
func _on_input_event(viewport: Node, event: InputEvent, shape_idx: int) -> void:
if event is InputEventMouseButton and event.is_pressed():
Input.set_default_cursor_shape(Input.CursorShape.CURSOR_ARROW)
on_clicked.emit()

1
utils/clickable.gd.uid Normal file
View File

@@ -0,0 +1 @@
uid://d3f721y4183yy