godot-psd-training/trainings/stepTip/stepTip.gd
joylink_fanyuhong 8c745c9ffb 实训调整
2024-05-22 13:12:11 +08:00

14 lines
370 B
GDScript

extends Node2D
@export var operationTip = "操作步骤描述"
# Called when the node enters the scene tree for the first time.
func _ready():
$PanelContainer/VBoxContainer/Control/Label.text = operationTip
func updateOperationTip(desc):
if self.visible == false:
self.visible = true
operationTip = desc
$PanelContainer/VBoxContainer/Control2/Label.text = desc