实现玩家全部准备的时候顶部文字提醒

This commit is contained in:
MrZ_26
2022-10-24 00:26:32 +08:00
parent 43b6ff7697
commit 23f43df737
3 changed files with 8 additions and 13 deletions

View File

@@ -274,15 +274,9 @@ function scene.draw()
-- Ready & Set mark
setFont(50)
if NET.roomReadyState=='allReady' then
gc_setColor(1,.85,.6,.9)
mStr(text.ready,640,15)
elseif NET.roomReadyState=='connecting' then
gc_setColor(.6,1,.9,.9)
mStr(text.connStream,640,15)
elseif NET.roomReadyState=='waitConn' then
if NET.roomAllReady then
gc_setColor(.6,.95,1,.9)
mStr(text.waitStream,640,15)
mStr(text.ready,640,15)
end
-- Room info.