mirror of https://github.com/axmolengine/axmol.git
issue #1425: update lua script
This commit is contained in:
parent
1092d04b7c
commit
680e189365
|
@ -16,18 +16,18 @@ local function backAction()
|
||||||
SceneIdx = SceneIdx + MAX_LAYER
|
SceneIdx = SceneIdx + MAX_LAYER
|
||||||
end
|
end
|
||||||
|
|
||||||
return CreateActionsEaseleLayer()
|
return CreateActionsEaseLayer()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function restartAction()
|
local function restartAction()
|
||||||
return CreateActionsEaseleLayer()
|
return CreateActionsEaseLayer()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function nextAction()
|
local function nextAction()
|
||||||
SceneIdx = SceneIdx + 1
|
SceneIdx = SceneIdx + 1
|
||||||
SceneIdx = math.mod(SceneIdx, MAX_LAYER)
|
SceneIdx = math.mod(SceneIdx, MAX_LAYER)
|
||||||
|
|
||||||
return CreateActionsEaseleLayer()
|
return CreateActionsEaseLayer()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function backCallback(sender)
|
local function backCallback(sender)
|
||||||
|
@ -700,7 +700,7 @@ end
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
-- Actions Ease Test
|
-- Actions Ease Test
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
function CreateActionsEaseleLayer()
|
function CreateActionsEaseLayer()
|
||||||
if SceneIdx == 0 then
|
if SceneIdx == 0 then
|
||||||
return SpriteEase()
|
return SpriteEase()
|
||||||
elseif SceneIdx == 1 then
|
elseif SceneIdx == 1 then
|
||||||
|
|
Loading…
Reference in New Issue