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
|
2024-06-04 09:55:17 +08:00
|
|
|
$PanelContainer/VBoxContainer/ScrollContainer/Control2/Label.text = desc
|
2024-05-22 15:03:03 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_restart_button_down():
|
|
|
|
$"../ConfirmDialog".show_confirm('此操作将重新开始实训,是否确认?')
|
|
|
|
get_tree().paused = true
|
|
|
|
|
|
|
|
|
|
|
|
func _on_restart_mouse_entered():
|
|
|
|
$PanelContainer/VBoxContainer/Control3/Restart.set_default_cursor_shape(Control.CursorShape.CURSOR_POINTING_HAND)
|
|
|
|
|
|
|
|
|
|
|
|
func _on_restart_mouse_exited():
|
|
|
|
$PanelContainer/VBoxContainer/Control3/Restart.set_default_cursor_shape(Control.CursorShape.CURSOR_ARROW)
|