From e90515453aa32e36c06d69a82296570035527455 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 12 Mar 2021 00:56:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B8=B8=E6=88=8F=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=97=B6=E7=AB=8B=E5=88=BB=E8=BF=9B=E5=85=A5cmd?= =?UTF-8?q?=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/load.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/parts/scenes/load.lua b/parts/scenes/load.lua index 7847121f..8c083637 100644 --- a/parts/scenes/load.lua +++ b/parts/scenes/load.lua @@ -10,8 +10,7 @@ local shadePhase1,shadePhase2 local progress=0 local studioLogo--Studio logo text object local logoColor1,logoColor2 -local skip -local locked +local skip,locked,cmdLaunchKey local light={} for i=0,26 do @@ -201,6 +200,7 @@ function scene.sceneInit() shadePhase2=6.26*math.random() skip=0--Skip time locked=SETTING.appLock + cmdLaunchKey=0 kb.setKeyRepeat(false) end function scene.sceneBack() @@ -212,6 +212,8 @@ function scene.keyDown(key) SCN.back() elseif key=="s"then skip=999 + elseif key=="r"then + cmdLaunchKey=cmdLaunchKey+1 elseif locked and("12345679"):match(key,nil,false)then key=tonumber(key) light[3*key]=not light[3*key] @@ -268,7 +270,7 @@ function scene.update(dt) skip=skip-1 end if openTime>=3.26 and not SCN.swapping then - if kb.isDown("r")then + if cmdLaunchKey==2 then SCN.push("intro") SCN.swapTo("app_cmd") else