实现键盘一键准备

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
elseif not _hideReadyUI() then
if key=='space' then
if NETPLY.map[USER.uid].playMode~='Gamer' then
(kb.isDown('lctrl','rctrl','lalt','ralt') and _setSpectate or _setReady)()
else
if NETPLY.map[USER.uid].playMode=='Spectator' or NETPLY.map[USER.uid].readyMode=='Ready' then
_setCancel()
else
(kb.isDown('lctrl','rctrl','lalt','ralt') and _setSpectate or _setReady)()
end
elseif key=='s' then
_gotoSetting()