实现玩家全部准备的时候顶部文字提醒
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -36,7 +36,7 @@ local roomList=WIDGET.newListBox{name='roomList',x=50,y=50,w=800,h=440,lineH=40,
|
||||
if item.state=='Standby' then
|
||||
gc_setColor(COLOR.Z)
|
||||
elseif item.state=='Ready' then
|
||||
gc_setColor(COLOR.lG)
|
||||
gc_setColor(COLOR.lB)
|
||||
elseif item.state=='Playing' then
|
||||
gc_setColor(COLOR.G)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user