Fix template
This commit is contained in:
@@ -654,20 +654,25 @@ class DefaultAssetLibrary extends AssetLibrary {
|
||||
::end::
|
||||
#end
|
||||
|
||||
#elseif (windows || mac || linux)
|
||||
#else
|
||||
|
||||
::if (assets != null)::
|
||||
#if openfl
|
||||
::foreach assets::::if (type == "font")::class __ASSET__::flatName:: extends openfl.text.Font { public function new () { super (); __fontPath = "::targetPath::"; fontName = "::fontName::"; }}
|
||||
::end::::end::
|
||||
::if (assets != null)::::foreach assets::::if (type == "font")::class __ASSET__::flatName:: extends openfl.text.Font { public function new () { super (); __fontPath = "::targetPath::"; fontName = "::fontName::"; }}
|
||||
::end::::end::::end::
|
||||
#end
|
||||
|
||||
#if (windows || mac || linux)
|
||||
|
||||
//::if (assets != null)::
|
||||
//::foreach assets::::if (embed)::::if (type == "image")::@:bitmap("::sourcePath::") class __ASSET__::flatName:: extends openfl.display.BitmapData {}
|
||||
//::elseif (type == "sound")::@:sound("::sourcePath::") class __ASSET__::flatName:: extends openfl.media.Sound {}
|
||||
//::elseif (type == "music")::@:sound("::sourcePath::") class __ASSET__::flatName:: extends openfl.media.Sound {}
|
||||
//::elseif (type == "font")::@:font("::sourcePath::") class __ASSET__::flatName:: extends openfl.text.Font {}
|
||||
//::else::@:file("::sourcePath::") class __ASSET__::flatName:: extends lime.utils.ByteArray {}
|
||||
//::end::::end::::end::
|
||||
::end::
|
||||
//::end::
|
||||
|
||||
#end
|
||||
|
||||
#end
|
||||
#end
|
||||
|
||||
Reference in New Issue
Block a user