14 lines
370 B
GDScript
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
|