服务器认定全员准备三秒后取消准备按钮消失,整理代码

This commit is contained in:
MrZ626
2021-04-24 16:11:53 +08:00
parent 311dc3b644
commit 9de9048a78
2 changed files with 13 additions and 10 deletions

View File

@@ -1,10 +1,6 @@
local gc=love.graphics
local tc=love.touch
local gc,tc=love.graphics,love.touch
local ins=table.insert
local SCR=SCR
local VK=VK
local SCR,VK,NET=SCR,VK,NET
local textBox=WIDGET.newTextBox{name="texts",x=340,y=80,w=600,h=550,hide=false}
@@ -275,6 +271,7 @@ scene.widgetList={
hide=function()
return
playing or
NET.serverGaming or
not textBox.hide or
PLY_NET[1].ready or
NET.getlock("ready")
@@ -283,6 +280,7 @@ scene.widgetList={
hide=function()
return
playing or
NET.serverGaming or
not textBox.hide or
not PLY_NET[1].ready or
NET.getlock("ready")