22 lines
306 B
GDScript
22 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")
|