站台门故障完成步骤后提示置空(与大客流一致)

This commit is contained in:
joylink_zhaoerwei 2024-08-13 17:37:28 +08:00
parent ca6056e881
commit 9cd8f115dd
9 changed files with 47 additions and 15 deletions

View File

@ -158,6 +158,7 @@ func nextStep():
$StepTimer.start()
if step.checkVoice: ## 如果步骤有需检查语音
await voiceCommunication.speech_record_check(step.checkVoice)
$StepTip.updateOperationTip('')
nextStep()
if step.play: ## 如果步骤有需播放语音
var sound = load(step.playPath)
@ -188,6 +189,7 @@ func _on_total_current_click_check_signal(isCorrect):
if stepOperationIndex < stepOperation.size():
setOperationNodeAndTip()
else:
$StepTip.updateOperationTip('')
$TrainTip.setTrainingTip('')
nextStep()
else:
@ -212,4 +214,5 @@ func _on_step_tip_click_next_step() -> void:
var step = handleStep[stepIndex-1]
if step.checkVoice:
voiceCommunication._reset_record_state()
$StepTip.updateOperationTip('')
nextStep()

View File

@ -239,6 +239,7 @@ func nextStep():
$StepTimer.start()
if step.checkVoice:
await voiceCommunication.speech_record_check(step.checkVoice)
$StepTip.updateOperationTip('')
nextStep()
if step.play:
var sound = load(step.playPath)
@ -269,6 +270,7 @@ func _on_total_current_click_check_signal(isCorrect):
else :
setOperationNodeAndTip()
else:
$StepTip.updateOperationTip('')
$TrainTip.setTrainingTip('')
if handleStepIndex != 7 and handleStepIndex != 14:
nextStep()
@ -300,4 +302,5 @@ func _on_step_tip_click_next_step() -> void:
var step = handleStep[handleStepIndex-1]
if step.checkVoice:
voiceCommunication._reset_record_state()
$StepTip.updateOperationTip('')
nextStep()

View File

@ -197,6 +197,7 @@ func nextStep():
$StepTimer.start()
if step.checkVoice:
await voiceCommunication.speech_record_check(step.checkVoice)
$StepTip.updateOperationTip('')
if step.stepName != "步骤八:确认故障门关闭。站务员口呼:关门成功。":
nextStep()
else :
@ -229,9 +230,11 @@ func _on_total_current_click_check_signal(isCorrect):
if stepOperationIndex < stepOperation.size():
setOperationNodeAndTip()
elif $total.currentClickNode != 'LCB3RightRotate' :
$StepTip.updateOperationTip('')
$TrainTip.setTrainingTip('')
nextStep()
else :
$StepTip.updateOperationTip('')
$TrainTip.setTrainingTip('')
else:
if $total.trainingMode != TotalScene.Training_Mode.Exam:
@ -275,6 +278,7 @@ func _on_step_tip_click_next_step() -> void:
var step = handleStep[handleStepIndex-1]
if step.checkVoice:
voiceCommunication._reset_record_state()
$StepTip.updateOperationTip('')
if step.stepName != "步骤八:确认故障门关闭。站务员口呼:关门成功。":
nextStep()
else :

View File

@ -197,6 +197,7 @@ func nextStep():
$StepTimer.start()
if step.checkVoice:
await voiceCommunication.speech_record_check(step.checkVoice)
$StepTip.updateOperationTip('')
if step.stepName != "步骤四:站务员回复:收到。":
nextStep()
else :
@ -232,9 +233,11 @@ func _on_total_current_click_check_signal(isCorrect):
if stepOperationIndex < stepOperation.size():
setOperationNodeAndTip()
elif $total.currentClickNode != 'removeHSJCKeyOfWindowPsl' :
$StepTip.updateOperationTip('')
$TrainTip.setTrainingTip('')
nextStep()
else :
$StepTip.updateOperationTip('')
$TrainTip.setTrainingTip('')
else:
if $total.trainingMode != TotalScene.Training_Mode.Exam:
@ -283,6 +286,7 @@ func _on_step_tip_click_next_step() -> void:
var step = handleStep[handleStepIndex-1]
if step.checkVoice:
voiceCommunication._reset_record_state()
$StepTip.updateOperationTip('')
if step.stepName != "步骤四:站务员回复:收到。":
nextStep()
else :

View File

@ -144,6 +144,7 @@ func nextStep():
$StepTimer.start()
if step.checkVoice:
await voiceCommunication.speech_record_check(step.checkVoice)
$StepTip.updateOperationTip('')
if step.stepName != "步骤四:站台门打开后,站务员口呼:请有序下车。":
nextStep()
if step.play:
@ -164,14 +165,16 @@ func initStepOperation():
##与站台交互点击信号
func _on_total_current_click_check_signal(isCorrect):
if isCorrect:
if $total.currentClickNode == 'removeKeyOfWindowLCB3' :
nextStep()
stepOperationIndex = stepOperationIndex + 1
$StepJudgment.hideError()
if stepOperationIndex < stepOperation.size():
setOperationNodeAndTip()
else:
$StepTip.updateOperationTip('')
$TrainTip.setTrainingTip('')
if $total.currentClickNode == 'removeKeyOfWindowLCB3' :
nextStep()
else:
if $total.trainingMode != TotalScene.Training_Mode.Exam:
$StepJudgment.showError()
@ -225,5 +228,6 @@ func _on_step_tip_click_next_step() -> void:
var step = handleStep[handleStepIndex-1]
if step.checkVoice:
voiceCommunication._reset_record_state()
$StepTip.updateOperationTip('')
if step.stepName != "步骤四:站台门打开后,站务员口呼:请有序下车。":
nextStep()

View File

@ -170,6 +170,7 @@ func nextStep():
$StepTimer.start()
if step.checkVoice:
await voiceCommunication.speech_record_check(step.checkVoice)
$StepTip.updateOperationTip('')
nextStep()
if step.play:
var sound = load(step.playPath)
@ -191,9 +192,7 @@ func initStepOperation():
##与站台交互点击信号
func _on_total_current_click_check_signal(isCorrect):
if isCorrect:
if $total.currentClickNode == 'JJTCLeftRotate' :
nextStep()
elif $total.currentClickNode == 'interconnectedOpenButton' :
if $total.currentClickNode == 'interconnectedOpenButton' :
$total.removeAssignScreenDoorsFault([TotalScene.ScreenDoor_name.screenDoor2])
screenDoor2.peopleWalkToPlatform()
clickInterconnectedOpenButton = true
@ -206,7 +205,10 @@ func _on_total_current_click_check_signal(isCorrect):
if stepOperationIndex < stepOperation.size():
setOperationNodeAndTip()
else:
$StepTip.updateOperationTip('')
$TrainTip.setTrainingTip('')
if $total.currentClickNode == 'JJTCLeftRotate' :
nextStep()
else:
if $total.trainingMode != TotalScene.Training_Mode.Exam:
$StepJudgment.showError()
@ -253,4 +255,5 @@ func _on_step_tip_click_next_step() -> void:
var step = handleStep[handleStepIndex-1]
if step.checkVoice:
voiceCommunication._reset_record_state()
$StepTip.updateOperationTip('')
nextStep()

View File

@ -207,6 +207,7 @@ func nextStep():
$StepTimer.start()
if step.checkVoice:
await voiceCommunication.speech_record_check(step.checkVoice)
$StepTip.updateOperationTip('')
nextStep()
if step.stepName == "步骤十二:口呼:故障门处置完毕。" :
$total.removeAssignScreenDoorsFault(allScreenDoor)
@ -231,6 +232,13 @@ func initStepOperation():
##与站台交互点击信号
func _on_total_current_click_check_signal(isCorrect):
if isCorrect:
stepOperationIndex = stepOperationIndex + 1
$StepJudgment.hideError()
if stepOperationIndex < stepOperation.size():
setOperationNodeAndTip()
else :
$StepTip.updateOperationTip('')
$TrainTip.setTrainingTip('')
if $total.currentClickNode == 'InterlockReleaseSwitchRightRotate' and handleStepIndex<9 :
$total.trainLeave(true)
nextStep()
@ -241,12 +249,6 @@ func _on_total_current_click_check_signal(isCorrect):
nextStep()
elif $total.currentClickNode == 'removeHSJCKeyOfWindowPsl' :
$maintainerTimer.start()
stepOperationIndex = stepOperationIndex + 1
$StepJudgment.hideError()
if stepOperationIndex < stepOperation.size():
setOperationNodeAndTip()
else :
$TrainTip.setTrainingTip('')
else:
if $total.trainingMode != TotalScene.Training_Mode.Exam:
$StepJudgment.showError()
@ -301,6 +303,7 @@ func _on_step_tip_click_next_step() -> void:
var step = handleStep[handleStepIndex-1]
if step.checkVoice:
voiceCommunication._reset_record_state()
$StepTip.updateOperationTip('')
nextStep()
if step.stepName == "步骤十二:口呼:故障门处置完毕。" :
$total.removeAssignScreenDoorsFault(allScreenDoor)

View File

@ -190,6 +190,7 @@ func nextStep():
$StepTimer.start()
if step.checkVoice:
await voiceCommunication.speech_record_check(step.checkVoice)
$StepTip.updateOperationTip('')
if step.stepName != "步骤四:站台门打开后,口呼:请您抓紧在此门上下车。" :
nextStep()
elif step.stepName == "步骤四:站台门打开后,口呼:请您抓紧在此门上下车。" :
@ -222,9 +223,11 @@ func _on_total_current_click_check_signal(isCorrect):
if stepOperationIndex < stepOperation.size():
setOperationNodeAndTip()
elif $total.currentClickNode != 'LCB2RightRotate' and $total.currentClickNode != 'LCB2LeftRotate':
$StepTip.updateOperationTip('')
$TrainTip.setTrainingTip('')
nextStep()
else :
$StepTip.updateOperationTip('')
$TrainTip.setTrainingTip('')
else:
if $total.trainingMode != TotalScene.Training_Mode.Exam:
@ -285,6 +288,7 @@ func _on_step_tip_click_next_step() -> void:
var step = handleStep[handleStepIndex-1]
if step.checkVoice:
voiceCommunication._reset_record_state()
$StepTip.updateOperationTip('')
if step.stepName != "步骤四:站台门打开后,口呼:请您抓紧在此门上下车。" :
nextStep()
elif step.stepName == "步骤四:站台门打开后,口呼:请您抓紧在此门上下车。" :

View File

@ -245,6 +245,7 @@ func nextStep():
canCloseScreenDoor = true
if step.checkVoice:
await voiceCommunication.speech_record_check(step.checkVoice)
$StepTip.updateOperationTip('')
nextStep()
if step.play:
var sound = load(step.playPath)
@ -279,9 +280,11 @@ func _on_total_current_click_check_signal(isCorrect):
if stepOperationIndex < stepOperation.size():
setOperationNodeAndTip()
elif $total.currentClickNode != 'interconnectedCloseButton' and $total.currentClickNode != 'removeHSJCKeyOfWindowPsl' :
$StepTip.updateOperationTip('')
$TrainTip.setTrainingTip('')
nextStep()
else :
$StepTip.updateOperationTip('')
$TrainTip.setTrainingTip('')
else:
if $total.trainingMode != TotalScene.Training_Mode.Exam:
@ -332,4 +335,5 @@ func _on_step_tip_click_next_step() -> void:
var step = handleStep[handleStepIndex-1]
if step.checkVoice:
voiceCommunication._reset_record_state()
$StepTip.updateOperationTip('')
nextStep()