This repository has been archived by the owner on Jan 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathshell.lua
80 lines (64 loc) · 2.04 KB
/
shell.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
------------------------------------------------------------------------------
--
-- This file is part of the Corona game engine.
-- For overview and more information on licensing please refer to README.md
-- Home page: https://github.com/coronalabs/corona
-- Contact: [email protected]
--
------------------------------------------------------------------------------
-- Platform dependent initialization for iOS template
local params = ...
local overlay = params.overlay
local onShellComplete = params.onShellComplete
local onShellCompleteCalled = false
-- Arrange to call onShellComplete() only once
local function callOnShellComplete(param)
if not onShellCompleteCalled then
onShellCompleteCalled = true
onShellComplete(param)
end
end
function overlay:setStatusBarMode( mode )
print( "WARNING: setStatusBarMode is not supported in Linux Simulator" )
end
if params.showMessage then
local halfW = display.contentWidth * 0.5
local halfH = display.contentHeight * 0.5
local fontSize = 96 * display.contentScaleX
local lineSpace = fontSize * 0.6
local options =
{
parent = overlay,
text = "CoronaCards",
x = halfW,
y = halfH-lineSpace,
font = native.systemFontBold,
fontSize = fontSize,
}
local msg = display.newText( options )
msg:setFillColor( 0, .1 )
local msg = display.newText( options )
msg:setFillColor( 1, .4 )
local options =
{
parent = overlay,
text = "TRIAL",
x = halfW,
y = halfH+lineSpace,
font = native.systemFontBold,
fontSize = fontSize * 1.5,
}
local msg = display.newText( options )
msg:setFillColor( 0, .3 )
local msg = display.newText( options )
msg:setFillColor( 1, .2 )
end
-------------------------------------------------------------------------------
-- Splash screen validation for Enterprise
-------------------------------------------------------------------------------
-- local fileExists, coronaSetup = pcall(require, '_CoronaSetup')
-- if fileExists then
-- coronaSetup.validateSplashScreen()
-- end
-- Tell the runtime that shell.lua has completed
callOnShellComplete(nil)