开场动画界面鼠标右键不退出

This commit is contained in:
MrZ626
2020-11-20 19:30:53 +08:00
parent c91a79488d
commit 3876169ce3

View File

@@ -19,10 +19,8 @@ function sceneInit.intro()
end end
function mouseDown.intro(_,_,k) function mouseDown.intro(_,_,k)
if k==2 then if k~=2 then
VOC.play("bye") if NOGAME=="delSetting"then
SCN.back()
elseif NOGAME=="delSetting"then
LOG.print("检测到过老版本无效设置数据,设置已经全部重置,请重启游戏完成",600,COLOR.yellow) LOG.print("检测到过老版本无效设置数据,设置已经全部重置,请重启游戏完成",600,COLOR.yellow)
LOG.print("Old version detected & setting file deleted, please restart the game",600,COLOR.yellow) LOG.print("Old version detected & setting file deleted, please restart the game",600,COLOR.yellow)
else else
@@ -35,12 +33,14 @@ function mouseDown.intro(_,_,k)
end end
end end
end end
end
function touchDown.intro() function touchDown.intro()
mouseDown.intro() mouseDown.intro()
end end
function keyDown.intro(key) function keyDown.intro(key)
if key=="escape"then if key=="escape"then
mouseDown.intro(nil,nil,2) VOC.play("bye")
SCN.back()
else else
mouseDown.intro() mouseDown.intro()
end end