lcb钥匙共用,点击都是正确
This commit is contained in:
parent
5bc8cb2749
commit
8eb8e032c2
@ -8,11 +8,11 @@ var allowHandle :bool = true
|
||||
|
||||
var currenScreenDoor:ScreenDoor=null
|
||||
func _on_screen_door_click_lcb_signal(screenDoor: Variant) -> void:
|
||||
var screenDoorName=String(screenDoor.name)
|
||||
self.title='LCB'+screenDoorName[screenDoorName.length() - 1]
|
||||
allClickLCBSignal.emit(self.title,$".")
|
||||
if !allowHandle :
|
||||
return
|
||||
var screenDoorName=String(screenDoor.name)
|
||||
self.title='LCB'+screenDoorName[screenDoorName.length() - 1]
|
||||
self.show()
|
||||
$"../stationKeys".onShowWindow(StationKeyWindow.WindowType.LCB,screenDoor.lcbKey.keyName)
|
||||
currenScreenDoor=screenDoor
|
||||
|
@ -90,7 +90,7 @@ func checkCurrentClick() -> bool:
|
||||
if trainingMode == Training_Mode.Exam:
|
||||
return true
|
||||
else :
|
||||
if currentClickNode == currenNeedClickNode:
|
||||
if currentClickNode == currenNeedClickNode or currentClickNode in ['LCB_Key1','LCB_Key2','LCB_Key3','LCB_Key4']:
|
||||
return true
|
||||
else :
|
||||
return false
|
||||
@ -101,6 +101,7 @@ func _on_platform_all_click_platform_signal(equipmentName: String,equipmentInfo=
|
||||
currentClickNode = equipmentName
|
||||
var isClickCorrect = checkCurrentClick()
|
||||
currentClickCheckSignal.emit(isClickCorrect)
|
||||
equipmentInfo.allowHandle = isClickCorrect
|
||||
if isClickCorrect:
|
||||
print('操作正确')
|
||||
else :
|
||||
@ -108,10 +109,10 @@ func _on_platform_all_click_platform_signal(equipmentName: String,equipmentInfo=
|
||||
|
||||
##所有交互操作汇总
|
||||
const allClickEquipmentInfo = {
|
||||
"LCB_Key1": "请选择钥匙LCB1", ##钥匙面板
|
||||
"LCB_Key2": "请选择钥匙LCB2",
|
||||
"LCB_Key3": "请选择钥匙LCB3",
|
||||
"LCB_Key4": "请选择钥匙LCB4",
|
||||
"LCB_Key1": "请选择LCB钥匙", ##钥匙面板
|
||||
"LCB_Key2": "请选择LCB钥匙",
|
||||
"LCB_Key3": "请选择LCB钥匙",
|
||||
"LCB_Key4": "请选择LCB钥匙",
|
||||
"JJTC_Key": "请选择钥匙JJTC",
|
||||
"PSL_Key": "请选择钥匙PSL",
|
||||
"HSJC_Key": "请选择钥匙HSJC",
|
||||
|
Loading…
Reference in New Issue
Block a user