玩家个人信息栏下部显示在线玩家数量
This commit is contained in:
@@ -180,6 +180,7 @@ local loadingThread=coroutine.wrap(function()
|
||||
TASK.new(NET.updateWS_user)
|
||||
TASK.new(NET.updateWS_play)
|
||||
NET.wsconn_app()
|
||||
TASK.new(NET.freshPlayerCount)
|
||||
|
||||
while true do
|
||||
if math.random()<.126 then
|
||||
|
||||
@@ -22,11 +22,12 @@ local consoleEntryThread=coroutine.wrap(function()
|
||||
end
|
||||
end)
|
||||
function scene.sceneInit()
|
||||
BG.set()
|
||||
|
||||
--Set tip
|
||||
tip:set(text.getTip())
|
||||
scrollX=tipLength
|
||||
|
||||
BG.set()
|
||||
|
||||
--Set quick-play-button text
|
||||
scene.widgetList[2]:setObject(text.WidgetText.main.qplay..": "..text.modes[STAT.lastPlay][1])
|
||||
|
||||
@@ -163,6 +164,9 @@ function scene.draw()
|
||||
|
||||
--Profile
|
||||
drawSelfProfile()
|
||||
|
||||
--Player count
|
||||
drawOnlinePlayerCount()
|
||||
end
|
||||
|
||||
scene.widgetList={
|
||||
|
||||
@@ -265,6 +265,9 @@ function scene.draw()
|
||||
|
||||
--Profile
|
||||
drawSelfProfile()
|
||||
|
||||
--Player count
|
||||
drawOnlinePlayerCount()
|
||||
end
|
||||
|
||||
--New message
|
||||
|
||||
@@ -12,6 +12,7 @@ end
|
||||
|
||||
function scene.draw()
|
||||
drawSelfProfile()
|
||||
drawOnlinePlayerCount()
|
||||
end
|
||||
|
||||
scene.widgetList={
|
||||
|
||||
@@ -164,6 +164,9 @@ function scene.draw()
|
||||
|
||||
--Profile
|
||||
drawSelfProfile()
|
||||
|
||||
--Player count
|
||||
drawOnlinePlayerCount()
|
||||
end
|
||||
|
||||
scene.widgetList={
|
||||
|
||||
Reference in New Issue
Block a user