From 5f609f41a524f851e48f906c6b0c1e2da3b7701b Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 26 Jun 2021 02:07:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=86=E5=A4=87=E9=A2=9C=E8=89=B2=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=A4=A9=E8=93=9D=E8=89=B2=EF=BC=8C=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E7=94=B1=E5=8F=98=E8=89=B2=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=8D=8A=E9=80=8F=E6=98=8E=E5=A1=AB=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/netPlayer.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/parts/netPlayer.lua b/parts/netPlayer.lua index 43f6a0e3..c230fd43 100644 --- a/parts/netPlayer.lua +++ b/parts/netPlayer.lua @@ -191,12 +191,17 @@ function netPLY.draw() gc_translate(p.x,p.y) --Rectangle gc_setColor(COLOR[ - p.mode==0 and'Z'or - p.mode==1 and(p.connected and"N"or"G")or - p.mode==2 and(p.connected and"Y"or"F") + p.mode==0 and'lH'or + p.mode==1 and'N'or + p.mode==2 and'F' ]) gc_setLineWidth(2) gc_rectangle('line',0,0,p.w,p.h) + if p.connected then + local c=COLOR[p.mode==1 and'N'or'F'] + gc_setColor(c[1],c[2],c[3],.26) + gc_rectangle('fill',0,0,p.w,p.h) + end --Stencil stencilW,stencilH=p.w,p.h