房间内显示房间信息
This commit is contained in:
@@ -258,6 +258,14 @@ function scene.draw()
|
||||
mStr(text.ready,640,10)
|
||||
end
|
||||
|
||||
--Room info.
|
||||
gc.setColor(1,1,1)
|
||||
setFont(25)
|
||||
mStr(NET.roomInfo.name,640,685)
|
||||
setFont(40)
|
||||
gc.print(netPLY.getCount().."/"..NET.roomInfo.capacity,70,655)
|
||||
if NET.roomInfo.private then gc.draw(IMG.lock,30,668)end
|
||||
|
||||
--Profile
|
||||
drawSelfProfile()
|
||||
end
|
||||
|
||||
@@ -16,7 +16,7 @@ end
|
||||
|
||||
scene.widgetList={
|
||||
WIDGET.newKey{name="setting",fText=TEXTURE.setting,x=1200,y=160,w=90,h=90,code=goScene"setting_game"},
|
||||
WIDGET.newButton{name="ffa", x=640, y=200,w=350,h=120,font=40,code=function()NET.enterRoom("ffa")end},
|
||||
WIDGET.newButton{name="ffa", x=640, y=200,w=350,h=120,font=40,code=function()NET.enterRoom({name="ffa"})end},
|
||||
WIDGET.newButton{name="rooms", x=640, y=360,w=350,h=120,font=40,code=goScene"net_rooms"},
|
||||
WIDGET.newButton{name="chat", x=640, y=540,w=350,h=120,color='D',font=40,code=NULL},
|
||||
WIDGET.newButton{name="logout", x=880, y=40,w=180,h=60,color='dR',
|
||||
|
||||
@@ -66,7 +66,7 @@ function scene.keyDown(k)
|
||||
LOG.print("Can't enter private room now")
|
||||
return
|
||||
end
|
||||
NET.enterRoom(NET.roomList[selected].rid)--,password
|
||||
NET.enterRoom(NET.roomList[selected])--,password
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user