godot-psd-training/trainings/faultTip/fault_tip_dialog.gd

23 lines
302 B
GDScript

extends Window
## 确认信号
signal comfirmSignal
## 提示描述
@export var tipDesc: String = "提示描述"
func _ready():
update()
func updateSceneDesc(desc):
tipDesc = desc
update()
func update():
%TipDescription.text = tipDesc
func _on_start_pressed():
comfirmSignal.emit()
hide()