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):
|
2024-05-22 13:12:11 +08:00
|
|
|
if self.visible == false:
|
|
|
|
self.visible = true
|
2024-05-17 17:37:41 +08:00
|
|
|
operationTip = desc
|
|
|
|
$PanelContainer/VBoxContainer/Control2/Label.text = desc
|