1
1
package ;
2
2
3
- import ::APP_MAIN ::;
3
+ import ::APP_MAIN ::;
4
4
5
5
@:access (lime.app. Application )
6
6
@:access (lime.system. System )
7
+
7
8
@:dox (hide ) class ApplicationMain
8
9
{
9
10
public static function main ()
@@ -20,7 +21,7 @@ import::APP_MAIN::;
20
21
ManifestResources .init (config );
21
22
22
23
#if !munit
23
- var app = new ::APP_MAIN ::();
24
+ var app = new ::APP_MAIN ::();
24
25
app .meta .set (" build" , " ::meta.buildNumber::" );
25
26
app .meta .set (" company" , " ::meta.company::" );
26
27
app .meta .set (" file" , " ::APP_FILE::" );
@@ -29,39 +30,38 @@ import::APP_MAIN::;
29
30
app .meta .set (" version" , " ::meta.version::" );
30
31
31
32
#if !flash
32
- ::foreach windows ::var attributes : lime.ui. WindowAttributes =
33
+ ::foreach windows ::
34
+ var attributes : lime.ui. WindowAttributes =
33
35
{
34
- allowHighDPI :::allowHighDPI ::,
35
- alwaysOnTop :::alwaysOnTop ::,
36
- borderless :::borderless ::,
36
+ allowHighDPI : ::allowHighDPI ::,
37
+ alwaysOnTop : ::alwaysOnTop ::,
38
+ borderless : ::borderless ::,
37
39
// display: ::display::,
38
40
element : null ,
39
- frameRate :::fps ::,
40
- #if !web
41
- fullscreen :::fullscreen ::,
42
- #end
43
- height :::height ::,
44
- hidden : #if munit true #else::hidden :: #end,
45
- maximized :::maximized ::,
46
- minimized :::minimized ::,
47
- parameters :::parameters ::,
48
- resizable :::resizable ::,
41
+ frameRate : ::fps ::,
42
+ #if !web fullscreen : ::fullscreen ::, #end
43
+ height : ::height ::,
44
+ hidden : #if munit true #else ::hidden :: #end,
45
+ maximized : ::maximized ::,
46
+ minimized : ::minimized ::,
47
+ parameters : ::parameters ::,
48
+ resizable : ::resizable ::,
49
49
title : " ::title::" ,
50
- width :::width ::,
51
- x :::x ::,
52
- y :::y ::,
50
+ width : ::width ::,
51
+ x : ::x ::,
52
+ y : ::y ::,
53
53
};
54
54
55
55
attributes .context =
56
56
{
57
- antialiasing :::antialiasing ::,
58
- background :::background ::,
59
- colorDepth :::colorDepth ::,
60
- depth :::depthBuffer ::,
61
- hardware :::hardware ::,
62
- stencil :::stencilBuffer ::,
57
+ antialiasing : ::antialiasing ::,
58
+ background : ::background ::,
59
+ colorDepth : ::colorDepth ::,
60
+ depth : ::depthBuffer ::,
61
+ hardware : ::hardware ::,
62
+ stencil : ::stencilBuffer ::,
63
63
type : null ,
64
- vsync :::vsync ::
64
+ vsync : ::vsync ::
65
65
};
66
66
67
67
if (app .window == null )
@@ -89,8 +89,10 @@ import::APP_MAIN::;
89
89
app .createWindow (attributes );
90
90
::end ::
91
91
#elseif !air
92
- app .window .context .attributes .background = ::WIN_BACKGROUND ::;
93
- app .window .frameRate = ::WIN_FPS ::;
92
+
93
+ app .window .context .attributes .background = ::WIN_BACKGROUND ::;
94
+ app .window .frameRate = ::WIN_FPS ::;
95
+
94
96
#end
95
97
#end
96
98
@@ -116,13 +118,17 @@ import::APP_MAIN::;
116
118
public static function start (app : lime.app. Application = null ): Void
117
119
{
118
120
#if !munit
121
+
119
122
var result = app .exec ();
120
123
121
124
#if (sys && !ios && !nodejs && !emscripten)
122
125
lime.system. System .exit (result );
123
126
#end
127
+
124
128
#else
125
- new ::APP_MAIN ::();
129
+
130
+ new ::APP_MAIN ::();
131
+
126
132
#end
127
133
}
128
134
0 commit comments