-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathActivity.lua
More file actions
84 lines (61 loc) · 2.09 KB
/
Activity.lua
File metadata and controls
84 lines (61 loc) · 2.09 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
--
-- Project: CareControlMobile2
-- Description:
--
-- Version: 1.0
-- Managed with http://CoronaProjectManager.com
--
-- Copyright 2014 . All Rights Reserved.
--
--
-- Project: CareControlPortal
-- Description:
--
-- Version: 1.0
-- Managed with http://CoronaProjectManager.com
--
-- Copyright 2014 . All Rights Reserved.
--
local storyboard = require( "storyboard" )
local scene = storyboard.newScene()
local func = require("functions")
local http = require("httpwork")
local lfs = require("lfs")
--local CCDB = require("Offline")
local group
local LoadDetail = function(event)
local id
if event.phase == "ended" then
id = event.target.id
local sp ={
ActivityID = id
}
func.LoadScreen("ActivityDetail", "slideLeft",sp)
end
return true
end
function scene:enterScene(event)
group:insert(func.StandardImage("SaturdayCoaching.png", 320,280,LoadDetail,1))
group:insert(func.StandardImage("SaturdayRide.png", 320,600,LoadDetail,2))
--group:insert(func.StandardImage("Rollers.png", 300,930,LoadDetail,3))
_G.HaltNav = nil
end
function scene:createScene( event )
group = self.view
local prior_scene = storyboard.getPrevious()
storyboard.removeScenePurgeAll( prior_scene )
group:insert(func.CreateStandardHeader(nil, nil))
--group:insert(func.SuperLabel({Caption="Select Activity:",Underline=0,FontSize=30,Bold=1,Left=20,Height=20,Top=100,Red=99/255,Green=37/255,Blue=35/255}))
end
-- "createScene" event is dispatched if scene's view does not exist
scene:addEventListener( "createScene", scene )
-- "enterScene" event is dispatched whenever scene transition has finished
scene:addEventListener( "enterScene", scene )
-- "exitScene" event is dispatched before next scene's transition begins
scene:addEventListener( "exitScene", scene )
-- "destroyScene" event is dispatched before view is unloaded, which can be
-- automatically unloaded in low memory situations, or explicitly via a call to
-- storyboard.removeScene() or storyboard.removeScene().
scene:addEventListener( "destroyScene", scene )
---------------------------------------------------------------------------------
return scene