From 56e19dd91e33fc2e5728dcf505642c5defee87ab Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Sun, 30 Oct 2022 00:17:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=88=BF=E9=97=B4=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E7=95=8C=E9=9D=A2=E5=AF=86=E7=A0=81=E6=A0=8F=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E6=97=B6=E5=88=B7=E6=96=B0=E8=AE=A1=E6=97=B6=E5=99=A8?= =?UTF-8?q?=E4=B8=8D=E5=8A=A8=E5=AF=BC=E8=87=B4=E5=BE=88=E5=A5=87=E6=80=AA?= =?UTF-8?q?=EF=BC=8C=E7=8E=B0=E5=9C=A8=E4=BC=9A=E8=B5=B0=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E4=BD=86=E5=88=B00=E4=B8=8D=E4=BC=9A=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/net_rooms.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/parts/scenes/net_rooms.lua b/parts/scenes/net_rooms.lua index ed195725..12d108b5 100644 --- a/parts/scenes/net_rooms.lua +++ b/parts/scenes/net_rooms.lua @@ -2,7 +2,7 @@ local gc=love.graphics local gc_translate=gc.translate local gc_setColor,gc_setLineWidth=gc.setColor,gc.setLineWidth local gc_draw=gc.draw -local gc_rectangle,gc_arc=gc.rectangle,gc.arc +local gc_rectangle=gc.rectangle local gc_print,gc_printf=gc.print,gc.printf @@ -97,9 +97,9 @@ function scene.keyDown(key) end function scene.update(dt) - if not TASK.getLock('fetchRoom') and _hidePW() then + if not TASK.getLock('fetchRoom') then fetchTimer=fetchTimer-dt - if fetchTimer<=0 then + if fetchTimer<=0 and _hidePW() then _fetchRoom() end end @@ -107,8 +107,10 @@ end function scene.draw() -- Fetching timer - gc_setColor(1,1,1,.12) - gc_arc('fill','pie',250,630,40,-1.5708,-1.5708-.6283*fetchTimer) + if fetchTimer>0 then + gc_setColor(1,1,1,.12) + GC.arc('fill','pie',250,630,40,-1.5708,-1.5708-.6283*fetchTimer) + end -- Room list local R=roomList:getSel()