修改联网对战未开局时的ui

This commit is contained in:
MrZ626
2021-04-09 16:14:57 +08:00
parent 2d1094a8aa
commit f7fa8d0758

View File

@@ -244,9 +244,21 @@ function scene.draw()
--Warning --Warning
drawWarning() drawWarning()
else else
setFont(40)
for i=1,#PLY_NET do for i=1,#PLY_NET do
local p=PLY_NET[i] 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 if p.ready then
gc.setColor(.4,1,.4) gc.setColor(.4,1,.4)
@@ -254,11 +266,6 @@ function scene.draw()
gc.setColor(1,1,1) gc.setColor(1,1,1)
end end
gc.rectangle("fill",50,60+50*i+14,30,30) 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
end end
--New message --New message
@@ -270,7 +277,7 @@ function scene.draw()
end end
scene.widgetList={ scene.widgetList={
textBox, 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 return
playing or playing or
not textBox.hide or not textBox.hide or