开场动画界面鼠标右键不退出
This commit is contained in:
@@ -19,19 +19,18 @@ 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()
|
LOG.print("检测到过老版本无效设置数据,设置已经全部重置,请重启游戏完成",600,COLOR.yellow)
|
||||||
elseif NOGAME=="delSetting"then
|
LOG.print("Old version detected & setting file deleted, please restart the game",600,COLOR.yellow)
|
||||||
LOG.print("检测到过老版本无效设置数据,设置已经全部重置,请重启游戏完成",600,COLOR.yellow)
|
|
||||||
LOG.print("Old version detected & setting file deleted, please restart the game",600,COLOR.yellow)
|
|
||||||
else
|
|
||||||
if newVersionLaunch then
|
|
||||||
SCN.push("main","fade")
|
|
||||||
SCN.swapTo("history","fade")
|
|
||||||
LOG.print(text.newVersion,"warn",COLOR.lBlue)
|
|
||||||
else
|
else
|
||||||
SCN.go("main")
|
if newVersionLaunch then
|
||||||
|
SCN.push("main","fade")
|
||||||
|
SCN.swapTo("history","fade")
|
||||||
|
LOG.print(text.newVersion,"warn",COLOR.lBlue)
|
||||||
|
else
|
||||||
|
SCN.go("main")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -40,7 +39,8 @@ function touchDown.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
|
||||||
|
|||||||
Reference in New Issue
Block a user