From f7fa8d075870f63d97b68c66e13a6810b1527e26 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 9 Apr 2021 16:14:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=81=94=E7=BD=91=E5=AF=B9?= =?UTF-8?q?=E6=88=98=E6=9C=AA=E5=BC=80=E5=B1=80=E6=97=B6=E7=9A=84ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/net_game.lua | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/parts/scenes/net_game.lua b/parts/scenes/net_game.lua index 0a3b916d..f4aa9d74 100644 --- a/parts/scenes/net_game.lua +++ b/parts/scenes/net_game.lua @@ -244,9 +244,21 @@ function scene.draw() --Warning drawWarning() else - setFont(40) for i=1,#PLY_NET do local p=PLY_NET[i] + gc.setColor(1,1,1) + + --Rectangle + gc.setLineWidth(4) + gc.rectangle("line",40,65+50*i,1200,50) + + --Username + setFont(40) + gc.print(p.username,230,60+50*i) + + --UID + gc.setColor(.5,.5,.5) + gc.print("#"..p.uid,90,60+50*i) if p.ready then gc.setColor(.4,1,.4) @@ -254,11 +266,6 @@ function scene.draw() gc.setColor(1,1,1) end gc.rectangle("fill",50,60+50*i+14,30,30) - - gc.setColor(.5,.5,.5) - gc.print("#"..p.uid,90,60+50*i) - gc.setColor(1,1,1) - gc.print(p.username,230,60+50*i) end end --New message @@ -270,7 +277,7 @@ function scene.draw() end scene.widgetList={ textBox, - WIDGET.newKey{name="ready",x=900,y=560,w=400,h=100,color="yellow",font=40,code=pressKey"space",hide=function() + WIDGET.newKey{name="ready",x=900,y=560,w=400,h=100,color="lG",font=40,code=pressKey"space",hide=function() return playing or not textBox.hide or