enum abstract FunkinPreloaderState(String)
package funkin.ui.transition.preload
to String
import funkin.ui.transition.preload.FunkinPreloader
Available on all platforms
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 |
|---|---|
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
inlineread onlyCachingAudio:FunkinPreloaderState = "CachingAudio"
Loading all audio from the core library to the cache.
inlineread onlyCachingData:FunkinPreloaderState = "CachingData"
Loading all data files from the core library to the cache.
inlineread onlyCachingGraphics:FunkinPreloaderState = "CachingGraphics"
Loading all graphics from the core library to the cache.
inlineread 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.
inlineread onlyInitializingScripts:FunkinPreloaderState = "InitializingScripts"
Loading FireTongue, loading Polymod, parsing and instantiating module scripts.
inlineread onlyNotStarted:FunkinPreloaderState = "NotStarted"
The state before downloading has begun.
Moves to either DownloadingAssets or CachingGraphics based on platform.
inlineread onlyParsingCharacters:FunkinPreloaderState = "ParsingCharacters"
Parsing character data and scripts.
inlineread onlyParsingSpritesheets:FunkinPreloaderState = "ParsingSpritesheets"
Parsing all XML files from the core library into FlxFramesCollections and caching them.
inlineread 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.