15 lines
471 B
GDScript
15 lines
471 B
GDScript
extends ColorRect
|
|
|
|
@export var choice: Globals.SkinChoices = Globals.SkinChoices.HEAD
|
|
|
|
func _on_mouse_entered() -> void:
|
|
Input.set_custom_mouse_cursor(load("res://assets/spine/out/cursor.png"))
|
|
func _on_mouse_exited() -> void:
|
|
Input.set_custom_mouse_cursor(null)
|
|
|
|
func _input(event: InputEvent) -> void:
|
|
if event is InputEventMouseButton and event.pressed:
|
|
var ec: EvilCoco = Globals.evil_coco
|
|
$"../AudioStreamPlayer2D2".play()
|
|
ec.set_skin(self.choice)
|