Static variables

@:value("Monsterrat")staticFONT_DEBUGGER:String = "Monsterrat"

@:value("Nokia Cellphone FC Small")staticFONT_DEFAULT:String = "Nokia Cellphone FC Small"

Static methods

@:value({ subDirectories : false, directory : "assets/" })staticbuildFileReferences(directory:String = "assets/", subDirectories:Bool = false, ?filterExtensions:Array<String>, ?rename:String ‑> String):Array<Field>

Reads files from a directory relative to this project and generates public static inline variables containing the string paths to the files in it.

Example usage:

@:build(flixel.system.FlxAssets.buildFileReferences("assets/images"))
class Images {}

Mostly copied from:

Parameters:

directory

The directory to scan for files

subDirectories

Whether to include subdirectories

filterExtensions

Example: ["jpg", "png", "gif"] will only add files with that extension.

See also:

staticdrawLogo(graph:Graphics):Void

staticinlinegetBitmapFromClass(source:Class<Dynamic>):BitmapData

Generates BitmapData from specified class. Less typing.

Parameters:

source

BitmapData class to generate BitmapData object from.

Returns:

Newly instantiated BitmapData object.

staticinlinegetSound(id:String):Sound

staticresolveBitmapData(Graphic:FlxGraphicSource):BitmapData

Takes Dynamic object as a input and tries to convert it to BitmapData: 1) if the input is BitmapData, then it will return this BitmapData; 2) if the input is Class, then it will create BitmapData from this class; 3) if the input is String, then it will get BitmapData from openfl.Assets; 4) it will return null in any other case.

Parameters:

Graphic

input data to get BitmapData object for.

Returns:

BitmapData for specified Dynamic object.

staticresolveKey(Graphic:FlxGraphicSource, ?Key:String):String

Takes Dynamic object as a input and tries to find appropriate key String for its BitmapData: 1) if the input is BitmapData, then it will return second (optional) argument (the Key); 2) if the input is Class, then it will return the name of this class; 3) if the input is String, then it will return it; 4) it will return null in any other case.

Parameters:

Graphic

input data to get string key for.

Key

optional key string.

Returns:

Key String for specified Graphic object.