玻璃破碎和夹人调整

This commit is contained in:
joylink_zhaoerwei 2024-05-28 17:50:24 +08:00
parent bf094d5d1a
commit 919501acb8
15 changed files with 143 additions and 12 deletions

View File

@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://bqwn5287cqff0"
path="res://.godot/imported/sdhfsxjjtc.mp3-131ad58e983fc2b46861d214b74d4cc3.mp3str"
[deps]
source_file="res://Assets/training_speech/trainingGlassBreakageFault/sdhfsxjjtc.mp3"
dest_files=["res://.godot/imported/sdhfsxjjtc.mp3-131ad58e983fc2b46861d214b74d4cc3.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

View File

@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://cj177vdvfp0sa"
path="res://.godot/imported/sxgqblqlwb.mp3-cb4935a0710615ad4acc69f6b4fb7737.mp3str"
[deps]
source_file="res://Assets/training_speech/trainingGlassBreakageFault/sxgqblqlwb.mp3"
dest_files=["res://.godot/imported/sxgqblqlwb.mp3-cb4935a0710615ad4acc69f6b4fb7737.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

View File

@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://bgbh8li0vn4hi"
path="res://.godot/imported/sxgqblqlwbsd.mp3-a4d1e752d8c2008ceb7d3962a432ee1c.mp3str"
[deps]
source_file="res://Assets/training_speech/trainingGlassBreakageFault/sxgqblqlwbsd.mp3"
dest_files=["res://.godot/imported/sxgqblqlwbsd.mp3-a4d1e752d8c2008ceb7d3962a432ee1c.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

View File

@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://da6trs8hj2a1a"
path="res://.godot/imported/sdhfsxjttcjkc.mp3-db7f9c90a9a89f24a3a1894d7965e284.mp3str"
[deps]
source_file="res://Assets/training_speech/trainingPinchPeopleFault/sdhfsxjttcjkc.mp3"
dest_files=["res://.godot/imported/sdhfsxjttcjkc.mp3-db7f9c90a9a89f24a3a1894d7965e284.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

View File

@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://b5lsg544hc5vn"
path="res://.godot/imported/sxjjtcyhfqxzfc.mp3-76d51702a29d4310d2b4beb6b8ff3e91.mp3str"
[deps]
source_file="res://Assets/training_speech/trainingPinchPeopleFault/sxjjtcyhfqxzfc.mp3"
dest_files=["res://.godot/imported/sxjjtcyhfqxzfc.mp3-76d51702a29d4310d2b4beb6b8ff3e91.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

View File

@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://daul2linwaab0"
path="res://.godot/imported/sxztykc.mp3-b834f340d4fd6707e5295230d0b279c4.mp3str"
[deps]
source_file="res://Assets/training_speech/trainingPinchPeopleFault/sxztykc.mp3"
dest_files=["res://.godot/imported/sxztykc.mp3-b834f340d4fd6707e5295230d0b279c4.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

View File

@ -193,8 +193,8 @@ func allClickEquipmentPostion(equipmentName: String) -> Vector2:
var InterlockReleaseSwitch=NodeUtils.find_child_by_name(pslWindow,'InterlockReleaseSwitch') var InterlockReleaseSwitch=NodeUtils.find_child_by_name(pslWindow,'InterlockReleaseSwitch')
var removeKeyPos = NodeUtils.find_child_by_name(InterlockReleaseSwitch,'Keyhole').get_global_position() var removeKeyPos = NodeUtils.find_child_by_name(InterlockReleaseSwitch,'Keyhole').get_global_position()
return Vector2(pslWindowPos.x+removeKeyPos.x,pslWindowPos.y+removeKeyPos.y) return Vector2(pslWindowPos.x+removeKeyPos.x,pslWindowPos.y+removeKeyPos.y)
var LCB_KeyPos=NodeUtils.find_child_by_name(pslWindow,equipmentName).get_global_position() var Psl_KeyPos=NodeUtils.find_child_by_name(pslWindow,equipmentName).get_global_position()
return Vector2(pslWindowPos.x+LCB_KeyPos.x,pslWindowPos.y+LCB_KeyPos.y) return Vector2(pslWindowPos.x+Psl_KeyPos.x+50,pslWindowPos.y+Psl_KeyPos.y+20)
elif equipmentName == 'JJTC' : ##JJTC以及JJTC面板 elif equipmentName == 'JJTC' : ##JJTC以及JJTC面板
return getScreenPosition($platform.get_node('JJTC').get_node('JJTC_body')) return getScreenPosition($platform.get_node('JJTC').get_node('JJTC_body'))
elif equipmentName in ['JJTCLeftRotate','JJTCRightRotate','JJTCButton','JJTCCloseBox'] : elif equipmentName in ['JJTCLeftRotate','JJTCRightRotate','JJTCButton','JJTCCloseBox'] :

View File

@ -158,7 +158,7 @@ var handleStep = [
"next": false, "next": false,
"checkVoice": "", "checkVoice": "",
"play": true, "play": true,
"playPath": "res://Assets/training_speech/sd.mp3", "playPath": "res://Assets/training_speech/trainingGlassBreakageFault/sxgqblqlwb.mp3",
"stepTip": false, "stepTip": false,
}, },
{ {
@ -167,7 +167,7 @@ var handleStep = [
"next": false, "next": false,
"checkVoice": "", "checkVoice": "",
"play": true, "play": true,
"playPath": "res://Assets/training_speech/sd.mp3", "playPath": "res://Assets/training_speech/trainingGlassBreakageFault/sxgqblqlwbsd.mp3",
"stepTip": false, "stepTip": false,
}, },
{ {
@ -185,7 +185,7 @@ var handleStep = [
"next": false, "next": false,
"checkVoice": "", "checkVoice": "",
"play": true, "play": true,
"playPath": "res://Assets/training_speech/sd.mp3", "playPath": "res://Assets/training_speech/trainingGlassBreakageFault/sdhfsxjjtc.mp3",
"stepTip": false, "stepTip": false,
}, },
{ {

View File

@ -59,7 +59,7 @@ var handleStep = [
"next": false, "next": false,
"checkVoice": "", "checkVoice": "",
"play": true, "play": true,
"playPath": "res://Assets/training_speech/sd.mp3", "playPath": "res://Assets/training_speech/trainingPinchPeopleFault/sxztykc.mp3",
"stepTip": false, "stepTip": false,
}, },
{ {
@ -99,13 +99,31 @@ var handleStep = [
"checkVoice": "值班员,现场处置完毕,请恢复上行紧急停车及扣车。" "checkVoice": "值班员,现场处置完毕,请恢复上行紧急停车及扣车。"
}, },
{ {
"stepName": "联系并恢复 步骤十二:值班员对讲机联系站务员:上行紧急停车已恢复,请协助发车。步骤十三:站务员对讲机回复:收到", "stepName": "步骤二:值班员对讲机回复站务员:收到,恢复上行紧急停车及扣车。",
"stepOperation": [],
"next": false,
"play": true,
"playPath": "res://Assets/training_speech/trainingPinchPeopleFault/sdhfsxjttcjkc.mp3",
"stepTip": true,
"checkVoice": ""
},
{
"stepName": "步骤十二:值班员对讲机联系站务员:上行紧急停车已恢复,请协助发车。",
"stepOperation": [],
"next": false,
"play": true,
"playPath": "res://Assets/training_speech/trainingPinchPeopleFault/sxjjtcyhfqxzfc.mp3",
"stepTip": true,
"checkVoice": ""
},
{
"stepName": "步骤十三:站务员对讲机回复:收到",
"stepOperation": [], "stepOperation": [],
"next": false, "next": false,
"play": false, "play": false,
"playPath": "", "playPath": "",
"stepTip": true, "stepTip": true,
"checkVoice": "收到" "checkVoice": "收到"
}, },
{ {
"stepName": "实训已完成!", "stepName": "实训已完成!",
@ -150,14 +168,13 @@ func nextStep():
$StepTimer.start() $StepTimer.start()
if step.checkVoice: if step.checkVoice:
await $VoiceCommunication.speech_record_check(step.checkVoice) await $VoiceCommunication.speech_record_check(step.checkVoice)
if step.stepName == "联系并恢复 步骤十二:值班员对讲机联系站务员:上行紧急停车已恢复,请协助发车。步骤十三:站务员对讲机回复:收到":
$total.trainLeave()
else :
nextStep() nextStep()
if step.play: if step.play:
var sound = load(step.playPath) var sound = load(step.playPath)
await $VoiceCommunication.play_reply(sound) await $VoiceCommunication.play_reply(sound)
nextStep() nextStep()
if step.stepName == "实训已完成!":
$total.trainLeave()
func setOperationNodeAndTip(): func setOperationNodeAndTip():
$total.currenNeedClickNode = stepOperation[stepOperationIndex] $total.currenNeedClickNode = stepOperation[stepOperationIndex]