Expose stage and element on Window (Flash and HTML5), restore AIR multi-window support

This commit is contained in:
Joshua Granick
2018-07-12 12:20:08 -07:00
parent c4e3224c00
commit 8a6a0922eb
6 changed files with 114 additions and 63 deletions

View File

@@ -33,11 +33,7 @@ import ::APP_MAIN::;
app.meta.set ("name", "::meta.title::");
app.meta.set ("packageName", "::meta.packageName::");
#if (flash && !air)
app.window.context.attributes.background = ::WIN_BACKGROUND::;
app.window.frameRate = ::WIN_FPS::;
#else
#if !flash
::foreach windows::
var attributes:lime.ui.WindowAttributes = {
@@ -102,6 +98,11 @@ import ::APP_MAIN::;
app.createWindow (attributes);
::end::
#elseif flash
app.window.context.attributes.background = ::WIN_BACKGROUND::;
app.window.frameRate = ::WIN_FPS::;
#end
#end