From 4cfdd4e58b6d9330c72fcbc3f4bf03690dc7af1c Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 17 May 2021 14:57:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dws=E7=8A=B6=E6=80=81=E6=8C=87?= =?UTF-8?q?=E7=A4=BA=E5=99=A8=E5=9C=A8=E5=B1=8F=E5=B9=95=E5=B0=BA=E5=AF=B8?= =?UTF-8?q?=E4=B8=8D=E6=A0=87=E5=87=86=E6=97=B6=E6=98=BE=E7=A4=BA=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index 4769ef40..f6890da0 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -464,11 +464,11 @@ local devColor={ local WS=WS local WSnames={'app','user','play','stream','chat'} local WScolor={ - {1,.5,.5,.7}, - {1,.8,.3,.7}, - {1,1,.4,.7}, - {.4,1,.7,.7}, - {.5,.8,1,.7}, + {1,.6,.6,.7}, + {1,.8,.4,.7}, + {1,1,.5,.7}, + {.5,1,.8,.7}, + {.6,.9,1,.7}, } local ws_deadImg=DOGC{20,20, {'setFT',20}, @@ -626,26 +626,26 @@ function love.run() --Websocket status gc_push('transform') - gc.translate(SCR.w,SCR.h-100) + gc.translate(SCR.w,SCR.h) gc.scale(SCR.k) for i=1,5 do local status=WS.status(WSnames[i]) gc_setColor(WScolor[i]) - gc_rectangle('fill',0,20*i,-80,-20) + gc_rectangle('fill',0,20*i-100,-80,-20) if status=='dead'then gc_setColor(1,1,1) - gc_draw(ws_deadImg,-20,20*i-20) + gc_draw(ws_deadImg,-20,20*i-120) elseif status=='connecting'then gc_setColor(1,1,1,.5+.3*sin(time*6.26)) - gc_draw(ws_connectingImg,-20,20*i-20) + gc_draw(ws_connectingImg,-20,20*i-120) elseif status=='running'then gc_setColor(1,1,1) - gc_draw(ws_runningImg,-20,20*i-20) + gc_draw(ws_runningImg,-20,20*i-120) end local t1,t2,t3=WS.getTimers(WSnames[i]) - gc_setColor(1,1,1,t1)gc_rectangle('fill',-60,20*i,-20,-20) - gc_setColor(0,1,0,t2)gc_rectangle('fill',-40,20*i,-20,-20) - gc_setColor(1,0,0,t3)gc_rectangle('fill',-20,20*i,-20,-20) + gc_setColor(1,1,1,t1)gc_rectangle('fill',-60,20*i-100,-20,-20) + gc_setColor(0,1,0,t2)gc_rectangle('fill',-40,20*i-100,-20,-20) + gc_setColor(1,0,0,t3)gc_rectangle('fill',-20,20*i-100,-20,-20) end gc_pop()