2019-05-07 18:56:26 +00:00
|
|
|
extends Area
|
|
|
|
|
|
|
|
class_name Stack
|
|
|
|
|
|
|
|
signal hover()
|
|
|
|
signal blur()
|
2019-05-06 23:25:08 +00:00
|
|
|
|
|
|
|
export var title: String
|
2019-05-07 18:56:26 +00:00
|
|
|
export var zoneName: String
|
2019-05-06 23:25:08 +00:00
|
|
|
|
|
|
|
func _ready():
|
|
|
|
set_title(title)
|
|
|
|
|
|
|
|
func set_title(title: String):
|
2019-05-07 18:56:26 +00:00
|
|
|
$LabelViewport/Label.text = title
|
|
|
|
|
|
|
|
func _mouse_entered():
|
|
|
|
emit_signal("hover")
|
|
|
|
|
|
|
|
func _mouse_exited():
|
|
|
|
emit_signal("blur")
|