class FunkinPreloader
package funkin.ui.transition.preload
extends FlxBasePreloader
@:directlyUsed@:build(openfl.utils._internal.AssetsMacro.initBinding())@:autoBuild(openfl.utils._internal.AssetsMacro.initBinding())Available on all platforms
This preloader displays a VFD-esque display while the game downloads assets.
Static variables
Constructor
Methods
Inherited Variables
Defined by FlxBasePreloader
allowedURLs:Array<String>
List of allowed URLs for built-in site-locking.
Set it in FlxPreloader's constructor as: ['http://adamatomic.com/canabalt/', FlxPreloader.LOCAL];
@:value(0)minDisplayTime:Float = 0
Change this if you want the flixel logo to show for more or less time. Default value is 0 seconds (no delay).
@:value("It appears the website you are using is hosting an unauthorized copy of this game. " + "Storage or redistribution of this content, without the express permission of the " + "developer or other copyright holder, is prohibited under copyright law.\n\n" + "Thank you for your interest in this game! Please support the developer by " + "visiting the following website to play the game:")siteLockBodyText:String = "It appears the website you are using is hosting an unauthorized copy of this game. " + "Storage or redistribution of this content, without the express permission of the " + "developer or other copyright holder, is prohibited under copyright law.\n\n" + "Thank you for your interest in this game! Please support the developer by " + "visiting the following website to play the game:"
The body text to display on the sitelock failure screen. NOTE: This string should be reviewed for accuracy and may need to be localized.
To customize this variable, create a class extending FlxBasePreloader, and override its value in the constructor.
4.3.0
.See also:
siteLockTitleText
@:value("Sorry.")siteLockTitleText:String = "Sorry."
The title text to display on the sitelock failure screen. NOTE: This string should be reviewed for accuracy and may need to be localized.
To customize this variable, create a class extending FlxBasePreloader, and override its value in the constructor:
class Preloader extends FlxBasePreloader
{
public function new():Void
{
super(0, ["http://placeholder.domain.test/path/document.html"]);
siteLockTitleText = "Custom title text.";
siteLockBodyText = "Custom body text.";
}
}4.3.0
.@:value(0)siteLockURLIndex:Int = 0
The index of which URL in allowedURLs will be triggered when a user clicks on the Site-lock Message.
For example, if allowedURLs is ['mysite.com', 'othersite.com'], and siteLockURLIndex = 1, then
the user will go to 'othersite.com' when they click the message, but sitelocking will allow either of those URLs to work.
Defaults to 0.