1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
SCENE_GROUP_SHOWING = "scene_group_showing"
SCENE_GROUP_SHOWN = "scene_group_shown"
SCENE_GROUP_HIDDEN = "scene_group_hidden"
return group
end
self . state = SCENE_GROUP_HIDDEN
self . scenes = { }
end
self . activeScene = 1
end
end
return # self . scenes
end
return self . scenes [ index ]
end
return self . scenes [ self . activeScene ]
end
end
for i = 1 , # self . scenes do
if self . scenes [ i ] == scene then
return i
end
end
end
if self . state ~= newState then
local oldState = self . state
self . state = newState
end
end
return self . state
end
return ( self . state == SCENE_GROUP_SHOWING ) or ( self . state == SCENE_GROUP_SHOWN )
end |