-
Notifications
You must be signed in to change notification settings - Fork 31
/
main.lua
50 lines (41 loc) · 2.08 KB
/
main.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
-- Code is MIT licensed; see https://www.coronalabs.com/links/code/license
---------------------------------------------------------------------------------------
-- Nil out the preloaded theme files so we load the local ones
package.preload.widget_theme_ios = nil
package.preload.widget_theme_ios_sheet = nil
package.preload.widget_theme_ios7 = nil
package.preload.widget_theme_ios7_sheet = nil
package.preload.widget_theme_android = nil
package.preload.widget_theme_android_sheet = nil
package.preload.widget_theme_android_holo_light = nil
package.preload.widget_theme_android_holo_light_sheet = nil
package.preload.widget_theme_android_holo_dark = nil
package.preload.widget_theme_android_holo_dark_sheet = nil
-- Override Corona's core widget libraries with the files contained in this project's subdirectory
-- Argument "name" will be set to the name of the library being loaded by the require() function
local function onRequireWidgetLibrary( name )
return require( "widgetLibrary." .. name )
end
package.preload.widget = onRequireWidgetLibrary
package.preload.widget_button = onRequireWidgetLibrary
package.preload.widget_momentumScrolling = onRequireWidgetLibrary
package.preload.widget_pickerWheel = onRequireWidgetLibrary
package.preload.widget_progressView = onRequireWidgetLibrary
package.preload.widget_scrollview = onRequireWidgetLibrary
package.preload.widget_searchField = onRequireWidgetLibrary
package.preload.widget_segmentedControl = onRequireWidgetLibrary
package.preload.widget_spinner = onRequireWidgetLibrary
package.preload.widget_stepper = onRequireWidgetLibrary
package.preload.widget_slider = onRequireWidgetLibrary
package.preload.widget_switch = onRequireWidgetLibrary
package.preload.widget_tabbar = onRequireWidgetLibrary
package.preload.widget_tableview = onRequireWidgetLibrary
local widget = require( "widget" )
system.activate( "mouse" )
widget.setMouseEventsEnabled( true )
-- For xcode console output
io.output():setvbuf( "no" )
-- Hide the status bar
display.setStatusBar( display.HiddenStatusBar )
local composer = require( "composer" )
composer.gotoScene( "unitTestListing" )