From c48d8f9a45f733b006c6ea6397868f9695aadf7f Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 13 Aug 2021 19:51:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E7=95=8C=E9=9D=A2=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E5=B8=A7=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=BA=95=E9=83=A8?= =?UTF-8?q?=E6=96=87=E6=9C=AC=EF=BC=8C=E8=A7=A3=E5=86=B3=E6=96=87=E5=AD=97?= =?UTF-8?q?=E5=B0=BA=E5=AF=B8=E9=94=99=E8=AF=AF=E7=9A=84=E4=B8=8D=E6=98=8E?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= 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 342b1832..d85a3748 100644 --- a/parts/scenes/load.lua +++ b/parts/scenes/load.lua @@ -5,7 +5,8 @@ local rnd=math.random local scene={} -local loading,progress,maxProgress +local loading +local progress,maxProgress local t1,t2,animeType local studioLogo--Studio logo text object local logoColor1,logoColor2 @@ -20,6 +21,7 @@ local loadingThread=coroutine.wrap(function() logoColor1={COLOR.rainbow(r)} logoColor2={COLOR.rainbow_light(r)} end + YIELD() YIELD('loadSFX')SFX.loadAll() YIELD('loadVoice')VOC.loadAll() YIELD('loadFont')for i=1,17 do getFont(15+5*i)end @@ -163,7 +165,7 @@ end function scene.update() if not LOADED then - loading=loadingThread()or loading + loading=loadingThread() progress=progress+1 else t1,t2=t1+1,t2+1 @@ -214,7 +216,7 @@ function scene.draw() gc.setColor(COLOR.Z) setFont(30) - mStr(text.loadText[loading],640,530) + mStr(text.loadText[loading]or"",640,530) end return scene \ No newline at end of file