-
Notifications
You must be signed in to change notification settings - Fork 0
/
help.lua
106 lines (83 loc) · 3.14 KB
/
help.lua
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
--====================================================================--
-- SCENE: HALP
--====================================================================--
local xCenter = display.contentCenterX
local yCenter = display.contentCenterY
local localGroup = display.newGroup()
local scene = composer.newScene()
function scene:create( event )
-- --Ads Loading Here
-- ads.init( "admob", "ca-app-pub-1135191116314099/8859539762" )
-- ads.show( "banner", { x=0, y=display.contentHeight})
local scrollView = widget.newScrollView
{
id = "helpScroll",
top = 100,
left = 15,
width = display.contentWidth-30,
height = display.contentHeight-100,
scrollWidth = 600,
scrollHeight = 800,
horizontalScrollDisabled = true,
backgroundColor = {40/255, 66/255, 99/255}
}
local options = {
text ="Hello there! Thanks for downloading our app! Here's a quick tutorial on how to use the app. Tap Login->Admin->Resume and you'll see the timer that we've created. Tap Login->Admin->Start and type in the information in the correct format (military time with 4 digits) and then you'll get to watch the coutdown until your specified time. If you have any questions, or would like to report a bug, please tap on the following email addresses.",
x = display.contentCenterX,
y = 100,
font = native.systemFont,
fontSize = font2,
width = display.actualContentWidth-40,
align = "center"}
local intro=display.newText(options)
intro.anchorY = 0
local contact = display.newText( "[email protected]", 0, yCenter*2-100, nil, font2 )
contact.anchorX = 0
contact.anchorY = 1
local contact2 = display.newText( "[email protected]", xCenter*2, yCenter*2, nil, font2 )
contact2.anchorX = 1
contact2.anchorY = 1
scrollView:insert( intro )
scrollView:insert( contact )
scrollView:insert( contact2 )
function onObjectTap1( event )
system.openURL("mailto:[email protected]?subject=NerfApp")
end
function onObjectTap2( event )
system.openURL("mailto:[email protected]?subject=NerfApp")
end
local back = widget.newButton{
width = 200,
height = 75,
left = 5,
top = 5,
id = "back",
label = "<-- back",
fontSize = font2,
labelColor = { default={ 1, 1, 1}, over={ 232/255, 100/255, 37/255, 1 } },
location = composer.getSceneName( "previous" ),
onRelease = function() composer.gotoScene(location); end, --ads.hide();
}
location = composer.getSceneName( "previous" )
localGroup:insert( intro )
localGroup:insert( contact )
localGroup:insert( contact2 )
localGroup:insert( back )
localGroup:insert( scrollView )
contact:addEventListener( "tap", onObjectTap1 )
contact2:addEventListener( "tap", onObjectTap2 )
end
function scene:show(event)
localGroup.alpha = 1
composer.removeHidden( true )
end
function scene:hide(event)
localGroup.alpha = 0
end
-- "createScene" is called whenever the scene is FIRST called
scene:addEventListener( "create", scene )
-- "enterScene" event is dispatched whenever scene transition has finished
scene:addEventListener( "show", scene )
-- "exitScene" event is dispatched before next scene's transition begins
scene:addEventListener( "hide", scene )
return scene