聊天室不会按一次esc就退出
This commit is contained in:
@@ -96,6 +96,7 @@ return{
|
|||||||
-- chatRemain="人数:",
|
-- chatRemain="人数:",
|
||||||
-- chatStart="------消息的开头------",
|
-- chatStart="------消息的开头------",
|
||||||
-- chatHistory="------以上是历史消息------",
|
-- chatHistory="------以上是历史消息------",
|
||||||
|
-- chatQuit="再按一次退出",
|
||||||
|
|
||||||
errorMsg="An error has occurred and Techmino needs to restart.\nError info has been created, and you can send it to the author.",
|
errorMsg="An error has occurred and Techmino needs to restart.\nError info has been created, and you can send it to the author.",
|
||||||
|
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ return{
|
|||||||
-- chatRemain="人数:",
|
-- chatRemain="人数:",
|
||||||
-- chatStart="------消息的开头------",
|
-- chatStart="------消息的开头------",
|
||||||
-- chatHistory="------以上是历史消息------",
|
-- chatHistory="------以上是历史消息------",
|
||||||
|
-- chatQuit="再按一次退出",
|
||||||
|
|
||||||
errorMsg="Une erreur est survenue et Techmino doit redémarrer.\nDes informations concernant l'erreur ont été créées, et vous pouvez les envoyer au créateur.",
|
errorMsg="Une erreur est survenue et Techmino doit redémarrer.\nDes informations concernant l'erreur ont été créées, et vous pouvez les envoyer au créateur.",
|
||||||
|
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ return{
|
|||||||
-- chatRemain="人数:",
|
-- chatRemain="人数:",
|
||||||
-- chatStart="------消息的开头------",
|
-- chatStart="------消息的开头------",
|
||||||
-- chatHistory="------以上是历史消息------",
|
-- chatHistory="------以上是历史消息------",
|
||||||
|
-- chatQuit="再按一次退出",
|
||||||
|
|
||||||
errorMsg="Ha ocurrido un error y Techmino necesita reiniciarse.\nSe creó un registro de error, puedes enviarlo al autor.",
|
errorMsg="Ha ocurrido un error y Techmino necesita reiniciarse.\nSe creó un registro de error, puedes enviarlo al autor.",
|
||||||
|
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ return{
|
|||||||
chatRemain="人数:",
|
chatRemain="人数:",
|
||||||
chatStart="------消息的开头------",
|
chatStart="------消息的开头------",
|
||||||
chatHistory="------以上是历史消息------",
|
chatHistory="------以上是历史消息------",
|
||||||
|
chatQuit="再按一次退出",
|
||||||
|
|
||||||
errorMsg="Techmino遭受了雷击,需要重新启动.\n我们已收集了一些错误信息,你可以向作者进行反馈.",
|
errorMsg="Techmino遭受了雷击,需要重新启动.\n我们已收集了一些错误信息,你可以向作者进行反馈.",
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ local remain--People in chat room
|
|||||||
local scroll--Bottom message no.
|
local scroll--Bottom message no.
|
||||||
local newMessage=false--If there is a new message
|
local newMessage=false--If there is a new message
|
||||||
local heartBeatTimer
|
local heartBeatTimer
|
||||||
|
local escapeTimer=0
|
||||||
|
|
||||||
local function focusAtTextbox()
|
local function focusAtTextbox()
|
||||||
coroutine.yield()
|
coroutine.yield()
|
||||||
@@ -66,7 +67,12 @@ function scene.keyDown(k)
|
|||||||
elseif k=="return"then
|
elseif k=="return"then
|
||||||
sendMessage()
|
sendMessage()
|
||||||
elseif k=="escape"then
|
elseif k=="escape"then
|
||||||
SCN.back()
|
if Timer()-escapeTimer<.6 then
|
||||||
|
SCN.back()
|
||||||
|
else
|
||||||
|
escapeTimer=Timer()
|
||||||
|
LOG.print(text.chatQuit,COLOR.orange)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
WIDGET.keyPressed(k)
|
WIDGET.keyPressed(k)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user