更新后跳转

This commit is contained in:
MrZ_26
2020-07-30 01:07:45 +08:00
parent 61277c60dd
commit 1545d30edd
3 changed files with 18 additions and 7 deletions

View File

@@ -150,14 +150,13 @@ function mouseDown.intro(x,y,k)
end
end
function touchDown.intro(id,x,y)
SCN.goto("main")
mouseDown.intro()
end
function keyDown.intro(key)
if key=="escape"then
VOC.play("bye")
SCN.back()
mouseDown.intro(nil,nil,2)
else
SCN.goto("main")
mouseDown.intro()
end
end

View File

@@ -266,7 +266,14 @@ function sceneInit.stat()
end
function sceneInit.history()
BG.set("game3")
sceneTemp={require("parts/updateLog"),1}--scroll pos
sceneTemp={
require("parts/updateLog"),
1--scroll pos
}
if newVersionLaunch then
newVersionLaunch=nil
sceneTemp[2]=4
end
end
function sceneInit.debug()
sceneTemp={
@@ -342,7 +349,7 @@ function SCN.push(tar,style)
end
function SCN.pop()
local _=SCN.seq
_[#_-1]=nil
_[#_],_[#_-1]=nil
end
function SCN.swapTo(tar,style)
local S=SCN.swap

View File

@@ -38,7 +38,12 @@ function Tmr.load()
S.cur=S.cur+1
S.tar=S.cur
if S.cur>62.6 then
SCN.swapTo("intro","none")
if newVersionLaunch then
SCN.push("intro","fade")
SCN.swapTo("history","fade")
else
SCN.swapTo("intro","none")
end
end
return
end