Static methods

staticgetProgressLeftText(this:String, ?steps:Int, ?suffix:String):String

Formats the status text for progress bar display.

Parameters:

steps

The total number of steps. Defaults to FunkinPreloader.TOTAL_STEPS.

suffix

What to append to the end of the text, usually those dynamic ellipsis. Defaults to an empty string.

Returns:

String 'Loading \n0/$steps $suffix' for example

Variables

@:value(cast "CachingAudio")@:impl@:enuminlineread onlyCachingAudio:FunkinPreloaderState = "CachingAudio"

Loading all audio from the core library to the cache.

@:value(cast "CachingData")@:impl@:enuminlineread onlyCachingData:FunkinPreloaderState = "CachingData"

Loading all data files from the core library to the cache.

@:value(cast "CachingGraphics")@:impl@:enuminlineread onlyCachingGraphics:FunkinPreloaderState = "CachingGraphics"

Loading all graphics from the core library to the cache.

@:value(cast "Complete")@:impl@:enuminlineread onlyComplete:FunkinPreloaderState = "Complete"

Finishing up.

@:value(cast "DownloadingAssets")@:impl@:enuminlineread onlyDownloadingAssets:FunkinPreloaderState = "DownloadingAssets"

Downloading assets. On HTML5, Lime will do this for us, before calling onLoaded. On Native, this step will be completed immediately, and we'll go straight to CachingGraphics.

@:value(cast "InitializingScripts")@:impl@:enuminlineread onlyInitializingScripts:FunkinPreloaderState = "InitializingScripts"

Loading FireTongue, loading Polymod, parsing and instantiating module scripts.

@:value(cast "NotStarted")@:impl@:enuminlineread onlyNotStarted:FunkinPreloaderState = "NotStarted"

The state before downloading has begun. Moves to either DownloadingAssets or CachingGraphics based on platform.

@:value(cast "ParsingCharacters")@:impl@:enuminlineread onlyParsingCharacters:FunkinPreloaderState = "ParsingCharacters"

Parsing character data and scripts.

@:value(cast "ParsingSongs")@:impl@:enuminlineread onlyParsingSongs:FunkinPreloaderState = "ParsingSongs"

Parsing song data and scripts.

@:value(cast "ParsingSpritesheets")@:impl@:enuminlineread onlyParsingSpritesheets:FunkinPreloaderState = "ParsingSpritesheets"

Parsing all XML files from the core library into FlxFramesCollections and caching them.

@:value(cast "ParsingStages")@:impl@:enuminlineread onlyParsingStages:FunkinPreloaderState = "ParsingStages"

Parsing stage data and scripts.

@:value(cast "PreloadingPlayAssets")@:impl@:enuminlineread onlyPreloadingPlayAssets:FunkinPreloaderState = "PreloadingPlayAssets"

Preloading play assets. Loads the manifest.json for the gameplay library. If we make the base preloader do this, it will download all the assets as well, so we have to do it ourselves.