玩家个人信息栏下部显示在线玩家数量

This commit is contained in:
MrZ626
2021-05-12 01:44:06 +08:00
parent 99ba68fce8
commit e3b36c8ad1
13 changed files with 57 additions and 9 deletions

View File

@@ -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

View File

@@ -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={

View File

@@ -265,6 +265,9 @@ function scene.draw()
--Profile
drawSelfProfile()
--Player count
drawOnlinePlayerCount()
end
--New message

View File

@@ -12,6 +12,7 @@ end
function scene.draw()
drawSelfProfile()
drawOnlinePlayerCount()
end
scene.widgetList={

View File

@@ -164,6 +164,9 @@ function scene.draw()
--Profile
drawSelfProfile()
--Player count
drawOnlinePlayerCount()
end
scene.widgetList={