mlpcardgame/Scenes/Components/Stack.gd
2019-05-07 20:56:26 +02:00

21 lines
306 B
GDScript

extends Area
class_name Stack
signal hover()
signal blur()
export var title: String
export var zoneName: String
func _ready():
set_title(title)
func set_title(title: String):
$LabelViewport/Label.text = title
func _mouse_entered():
emit_signal("hover")
func _mouse_exited():
emit_signal("blur")