网战显示胜者id

This commit is contained in:
MrZ626
2021-02-10 21:59:42 +08:00
parent 1c77c88b12
commit 7222f4d079
7 changed files with 12 additions and 1 deletions

View File

@@ -99,6 +99,7 @@ return{
leaveRoom="left the room.", leaveRoom="left the room.",
notReady="Waiting", notReady="Waiting",
beReady="Ready", beReady="Ready",
champion="$1 won",
chatRemain="Online: ", chatRemain="Online: ",
chatStart="------Beginning of log------", chatStart="------Beginning of log------",
chatHistory="------New messages below------", chatHistory="------New messages below------",

View File

@@ -101,6 +101,7 @@ return{
-- leaveRoom="left the room.", -- leaveRoom="left the room.",
-- notReady="Waiting", -- notReady="Waiting",
-- beReady="Ready", -- beReady="Ready",
-- champion="$1 won",
-- chatRemain="Online: ", -- chatRemain="Online: ",
-- chatStart="------Beginning of log------", -- chatStart="------Beginning of log------",
-- chatHistory="------New messages below------", -- chatHistory="------New messages below------",

View File

@@ -99,6 +99,7 @@ return{
leaveRoom="Saiu da sala.", leaveRoom="Saiu da sala.",
-- notReady="Waiting", -- notReady="Waiting",
-- beReady="Ready", -- beReady="Ready",
-- champion="$1 won",
chatRemain="Online: ", chatRemain="Online: ",
chatStart="------Começo do log------", chatStart="------Começo do log------",
chatHistory="------Novas mensagens abaixo------", chatHistory="------Novas mensagens abaixo------",

View File

@@ -102,6 +102,7 @@ return{
-- leaveRoom="left the room.", -- leaveRoom="left the room.",
-- notReady="Waiting", -- notReady="Waiting",
-- beReady="Ready", -- beReady="Ready",
-- champion="$1 won",
-- chatRemain="Online: ", -- chatRemain="Online: ",
-- chatStart="------Beginning of log------", -- chatStart="------Beginning of log------",
-- chatHistory="------New messages below------", -- chatHistory="------New messages below------",

View File

@@ -45,6 +45,7 @@ return{
createRoomSuccessed="创好了", createRoomSuccessed="创好了",
notReady="没有准备好", notReady="没有准备好",
beReady="准备好了", beReady="准备好了",
champion="爷爷是 $1",
stat={ stat={
"开了几次:", "开了几次:",

View File

@@ -100,6 +100,7 @@ return{
leaveRoom="离开房间", leaveRoom="离开房间",
notReady="等待中", notReady="等待中",
beReady="准备", beReady="准备",
champion="$1 获胜",
chatRemain="人数:", chatRemain="人数:",
chatStart="------消息的开头------", chatStart="------消息的开头------",
chatHistory="------以上是历史消息------", chatHistory="------以上是历史消息------",

View File

@@ -244,8 +244,13 @@ function scene.socketRead(mes)
end end
elseif cmd=="F"then elseif cmd=="F"then
playing=false playing=false
LOG.print(text.gameover,30,COLOR.green)
resetGameData("n",playerData) resetGameData("n",playerData)
for i=1,#playerData do
if playerData[i].sid==args[1]then
TEXT.show(text.champion:gsub("$1",playerData[i].name.."#"..playerData[i].id),640,260,80,"zoomout",.26)
break
end
end
else else
LOG.print("Illegal message: ["..mes.."]",30,COLOR.green) LOG.print("Illegal message: ["..mes.."]",30,COLOR.green)
end end