升级本地和服务器提供的房间数据格式(警告:和旧版本不兼容),修复“游戏中”标记会被带到别的房间

This commit is contained in:
MrZ626
2021-05-17 00:59:14 +08:00
parent 2f06c1b476
commit 3b82a144ea
4 changed files with 66 additions and 46 deletions

View File

@@ -273,13 +273,13 @@ function scene.draw()
--Ready & Set mark
setFont(50)
if NET.allReady then
if NET.roomInfo.allReady then
gc.setColor(0,1,.5,.9)
mStr(text.ready,640,15)
elseif NET.connectingStream then
elseif NET.roomInfo.connectingStream then
gc.setColor(.1,1,.8,.9)
mStr(text.connStream,640,15)
elseif NET.waitingStream then
elseif NET.roomInfo.waitingStream then
gc.setColor(0,.8,1,.9)
mStr(text.waitStream,640,15)
end
@@ -315,7 +315,7 @@ scene.widgetList={
hideF=function()
return
playing or
NET.serverGaming or
NET.roomInfo.start or
netPLY.getSelfReady()or
NET.getlock('ready')
end},
@@ -323,7 +323,7 @@ scene.widgetList={
hideF=function()
return
playing or
NET.serverGaming or
NET.roomInfo.start or
not netPLY.getSelfReady()or
NET.getlock('ready')
end},