实现键盘一键准备

This commit is contained in:
MrZ_26
2022-10-24 02:52:44 +08:00
parent d074a85fbc
commit 7953cf735b

View File

@@ -157,10 +157,10 @@ function scene.keyDown(key,isRep)
end end
elseif not _hideReadyUI() then elseif not _hideReadyUI() then
if key=='space' then if key=='space' then
if NETPLY.map[USER.uid].playMode~='Gamer' then if NETPLY.map[USER.uid].playMode=='Spectator' or NETPLY.map[USER.uid].readyMode=='Ready' then
(kb.isDown('lctrl','rctrl','lalt','ralt') and _setSpectate or _setReady)()
else
_setCancel() _setCancel()
else
(kb.isDown('lctrl','rctrl','lalt','ralt') and _setSpectate or _setReady)()
end end
elseif key=='s' then elseif key=='s' then
_gotoSetting() _gotoSetting()