【发布时间】:2013-07-04 19:16:09
【问题描述】:
在我的菜单故事板和名为“搜索”的故事板之间转换时,我尝试使用效果 slideLeft。
scenechange 有效,但没有应用到过渡效果。或者..根本没有过渡。新场景刚刚出现。
我在这里错过了什么?
谢谢。
local function goToPage(event)
if (event.phase == "ended") then
changeButtonIndentation()
local nextSceneName = "pages." .. event.target.name
if (storyboard.getCurrentSceneName() ~= nextSceneName) then
print("From page: " .. storyboard.getCurrentSceneName())
print("To page: " ..nextSceneName)
local options =
{
effect = "slideLeft",
time = 1000
}
storyboard.gotoScene("pages.search", options)
currentActivePage = event.target.name
print(event.target.name)
end
end
changeButtonIndentation()
end
编辑:看来 options 有效。如果我增加 options 的 time 参数,我会注意到 search storyboard 上的某些按钮在 1 秒内无法点击。但是效果不起作用。
【问题讨论】: