2024-04-26 18:29:21 +08:00
|
|
|
extends Window
|
|
|
|
|
|
|
|
## 开始实训信号
|
|
|
|
signal StartTraining
|
|
|
|
## 退出信号
|
|
|
|
signal QuitTraining
|
|
|
|
|
|
|
|
## 场景说明
|
|
|
|
@export var sceneDesc: String = "场景描述"
|
|
|
|
|
|
|
|
func _ready():
|
|
|
|
update()
|
|
|
|
|
|
|
|
func updateSceneDesc(desc):
|
|
|
|
sceneDesc = desc
|
|
|
|
update()
|
|
|
|
|
|
|
|
func update():
|
2024-04-28 17:51:10 +08:00
|
|
|
%SceneDescription.text = sceneDesc
|
2024-04-26 18:29:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_start_pressed():
|
|
|
|
StartTraining.emit()
|
|
|
|
hide()
|
|
|
|
|
|
|
|
func _on_quit_pressed():
|
|
|
|
QuitTraining.emit()
|
|
|
|
hide()
|
2024-05-11 17:13:41 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_teach_mode_pressed():
|
2024-05-12 17:08:52 +08:00
|
|
|
$"../total".trainingMode = TotalScene.Training_Mode.Teach
|
2024-05-11 17:13:41 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_practice_mode_pressed():
|
2024-05-12 17:08:52 +08:00
|
|
|
$"../total".trainingMode = TotalScene.Training_Mode.Practice
|
2024-05-11 17:13:41 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_exam_mode_pressed():
|
2024-05-12 17:08:52 +08:00
|
|
|
$"../total".trainingMode = TotalScene.Training_Mode.Exam
|