godot-psd-training/trainings/stepTip/stepTip.gd

12 lines
321 B
GDScript3
Raw Normal View History

2024-05-17 17:37:41 +08:00
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):
operationTip = desc
$PanelContainer/VBoxContainer/Control2/Label.text = desc