点击联网游戏时无网络的提示更加清晰
This commit is contained in:
@@ -924,7 +924,7 @@ return{
|
||||
{"gggf",
|
||||
"gggf kissne",
|
||||
"name",
|
||||
"Tetris Research community member.\nPersonal bests: Sprint 22.831 seconds (25.483 seconds on mobile), MPH Sprint 56 seconds, U rank on Tetr.io\nOne of the top players of 20G in China, achieved almost every achievement in TGM3.",
|
||||
"Tetris Research community member.\nPersonal bests: Sprint 22.831 seconds (25.483 seconds on mobile), MPH Sprint 56 seconds, X rank on Tetr.io\nOne of the top players of 20G in China, achieved almost every achievement in TGM3.",
|
||||
"https://space.bilibili.com/287769888",
|
||||
},
|
||||
{"xb",
|
||||
|
||||
@@ -934,7 +934,7 @@ return{
|
||||
{"gggf",
|
||||
"gggf kissne t127",
|
||||
"name",
|
||||
"【研究群】「T127」\n40行22.831秒(手机25.483),MPH40行56秒,tetr.io段位U,top数据约60L85A\n20G规则国内一流玩家,拿到了TGM3几乎全部的最终成就(全世界都没几个)\n其他名称:小柒 kissne 127\n还是车车人,几个正作成绩:永EX NM 1B FS 风L NM",
|
||||
"【研究群】「T127」\n40行22.831秒(手机25.483),MPH40行56秒,tetr.io段位X,数据约60L95A\n20G规则国内一流玩家,拿到了TGM3几乎全部的最终成就(全世界都没几个)\n其他名称:小柒 kissne 127\n还是车车人,几个正作成绩:永EX NM 1B FS 风L NM",
|
||||
"https://space.bilibili.com/287769888",
|
||||
},
|
||||
{"xb",
|
||||
|
||||
@@ -73,6 +73,7 @@ return{
|
||||
getVersionFail="Update detection failed",
|
||||
oldVersion="Version $1 is now available!",
|
||||
needUpdate="Newer version required!",
|
||||
noInternet="Not connected to the network",
|
||||
notFinished="Coming soon!",
|
||||
|
||||
jsonError="JSON error",
|
||||
|
||||
@@ -74,6 +74,7 @@ return{
|
||||
getVersionFail="Echec d'obtention de la dernière version",
|
||||
oldVersion="La version $1 est disponible !",
|
||||
-- needUpdate="Newer version required!",
|
||||
-- noInternet="Not connected to the network",
|
||||
-- notFinished="Coming soon!",
|
||||
|
||||
jsonError="Erreur json",
|
||||
|
||||
@@ -73,6 +73,7 @@ return{
|
||||
getVersionFail="Falha ao detectar uma versão nova",
|
||||
oldVersion="Versão $1 esta disponível agora!",
|
||||
-- needUpdate="Newer version required!",
|
||||
-- noInternet="Not connected to the network",
|
||||
-- notFinished="Coming soon!",
|
||||
|
||||
jsonError="Json error",
|
||||
|
||||
@@ -74,6 +74,7 @@ return{
|
||||
getVersionFail="Error al buscar nuevas versiones.",
|
||||
oldVersion="¡Está disponible la nueva versión $1!",
|
||||
needUpdate="¡Nueva versión requerida!",
|
||||
-- noInternet="Not connected to the network",
|
||||
notFinished="Próximamente",
|
||||
|
||||
jsonError="Error en Json",
|
||||
|
||||
@@ -72,7 +72,8 @@ return{
|
||||
getNoticeFail="拉取公告失败",
|
||||
getVersionFail="检测新版本失败",
|
||||
oldVersion="最新版本$1可以下载了!",
|
||||
needUpdate="此功能需要更新游戏!",
|
||||
needUpdate="请更新游戏!",
|
||||
noInternet="还未连接到网络",
|
||||
notFinished="暂未完成,敬请期待!",
|
||||
|
||||
jsonError="json错误",
|
||||
|
||||
@@ -2,6 +2,7 @@ local data=love.data
|
||||
local ins,rem=table.insert,table.remove
|
||||
local WS,TIME=WS,TIME
|
||||
local NET={
|
||||
connected=false,
|
||||
allow_online=false,
|
||||
roomList={},
|
||||
accessToken=false,
|
||||
@@ -245,9 +246,8 @@ function NET.updateWS_app()
|
||||
else
|
||||
local res=_parse(message)
|
||||
if res then
|
||||
if VERSION_CODE>=res.lowest then
|
||||
NET.allow_online=true
|
||||
end
|
||||
NET.connected=true
|
||||
NET.allow_online=VERSION_CODE>=res.lowest
|
||||
if VERSION_CODE<res.newestCode then
|
||||
LOG.print(text.oldVersion:gsub("$1",res.newestName),180,COLOR.sky)
|
||||
end
|
||||
|
||||
@@ -72,7 +72,10 @@ function scene.keyDown(key)
|
||||
elseif key=="a"then
|
||||
if testButton(3)then
|
||||
if WS.status("user")=="running"then
|
||||
if not NET.allow_online then
|
||||
if not NET.connected then
|
||||
TEXT.show(text.noInternet,640,450,60,"flicker")
|
||||
SFX.play("finesseError")
|
||||
elseif not NET.allow_online then
|
||||
TEXT.show(text.needUpdate,640,450,60,"flicker")
|
||||
SFX.play("finesseError")
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user