整理代码

This commit is contained in:
MrZ626
2021-04-14 14:53:42 +08:00
parent 41d85e1f36
commit baf97a90a1
5 changed files with 103 additions and 96 deletions

View File

@@ -271,19 +271,21 @@ function scene.draw()
end
scene.widgetList={
textBox,
WIDGET.newKey{name="ready",x=900,y=560,w=400,h=100,color="lB",font=40,code=pressKey"space",hide=function()
return
playing or
not textBox.hide or
PLY_NET[1].ready or
NET.getlock("ready")
WIDGET.newKey{name="ready",x=900,y=560,w=400,h=100,color="lB",font=40,code=pressKey"space",
hide=function()
return
playing or
not textBox.hide or
PLY_NET[1].ready or
NET.getlock("ready")
end},
WIDGET.newKey{name="cancel",x=900,y=560,w=400,h=100,color="grey",font=40,code=pressKey"space",hide=function()
return
playing or
not textBox.hide or
not PLY_NET[1].ready or
NET.getlock("ready")
WIDGET.newKey{name="cancel",x=900,y=560,w=400,h=100,color="grey",font=40,code=pressKey"space",
hide=function()
return
playing or
not textBox.hide or
not PLY_NET[1].ready or
NET.getlock("ready")
end},
WIDGET.newKey{name="hideChat",fText="...",x=380,y=35,w=60,font=35,code=pressKey"\\"},
WIDGET.newKey{name="quit",fText="X",x=900,y=35,w=60,font=40,code=pressKey"escape"},