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