显示房间的开始状态,客户端也不允许加入已经开始游戏的房间
This commit is contained in:
@@ -57,6 +57,9 @@ function scene.keyDown(k)
|
||||
LOG.print("Can't enter private room now")
|
||||
return
|
||||
end
|
||||
if NET.roomList[selected].start then
|
||||
LOG.print("Can't enter room after start")
|
||||
end
|
||||
NET.enterRoom(NET.roomList[selected].rid)--,password
|
||||
end
|
||||
end
|
||||
@@ -90,6 +93,10 @@ function scene.draw()
|
||||
gc.setColor(1,1,1)
|
||||
gc.draw(IMG.lock,59,75+40*i)
|
||||
end
|
||||
if R.start then
|
||||
gc.setColor(0,1,0)
|
||||
gc.print("S",800,66+40*i)
|
||||
end
|
||||
gc.setColor(.9,.9,1)
|
||||
gc.print(scrollPos+i,95,66+40*i)
|
||||
gc.setColor(1,1,.7)
|
||||
|
||||
Reference in New Issue
Block a user