Static variables
View on GitHub
staticinlineread onlydefaultModConfigText:String = "[Common] # This section applies the 'MOD_' prefix to the flags so you don't have to.\r\nNAME=\"YOUR MOD NAME HERE\"\r\nDESCRIPTION=\"YOUR MOD DESCRIPTION HERE\"\r\nAUTHOR=\"YOU/YOUR TEAM HERE\"\r\nVERSION=\"YOUR MOD'S VERSION HERE\"\r\n\r\n# DO NOT EDIT!! this is used to check for version compatibility!\r\nAPI_VERSION=1\r\n\r\nDOWNLOAD_LINK=\"YOUR MOD PAGE LINK HERE\"\r\n\r\n# Not supported yet\r\n;MOD_ICON64=\"path/to/icon64.png\"\r\n;MOD_ICON32=\"path/to/icon32.png\"\r\n;MOD_ICON16=\"path/to/icon16.png\"\r\nICON=\"path/to/icon.png\"\r\n\r\n[Flags] # This section doesn't apply any prefix.\r\nDISABLE_WARNING_SCREEN=true\r\n# Set this to false if you want to bring back the warning state (prior to 1.0.0)\r\n# NOTE: Beta warning state has been renamed from BetaWarningState.hx to WarningState.hx\r\nDISABLE_LANGUAGES=true\r\n# Some people might not translate their mods, but if you do then you may set this to false\r\n\r\n[Discord] # This section applies the 'MOD_DISCORD_' prefix to the flags so you don't have to.\r\nCLIENT_ID=\"\"\r\nLOGO_KEY=\"\"\r\nLOGO_TEXT=\"\"\r\n\r\n[StateRedirects] # This section is used for state redirecting, see examples below.\r\n;StoryMenuState=\"funkin.menus.FreeplayState\"\r\n;FreeplayState=\"scriptedFreeplayState\"\r\n\r\n[StateRedirects.force] # Use this if you want to override redirects set by subsequent addons/mods\r\n"
Constructor
Methods
Inherited Variables
Defined by UIState
Defined by MusicBeatState
graphicCache:GraphicCacheSprite = new GraphicCacheSprite()
Dummy sprite used to cache graphics to GPU.
stateScripts:ScriptPack
Current injected script attached to the state. To add one, create a file at path "data/states/stateName" (ex: data/states/FreeplayState)
Inherited Methods
Defined by UIState
View on GitHub
openContextMenu(options:Array<UIContextMenuOption>, ?callback:Null<UIContextMenuCallback>, ?x:Float, ?y:Float, ?w:Int):UIContextMenu
Defined by MusicBeatState
View on GitHub
lerp(v1:Float, v2:Float, ratio:Float, fpsSensitive:Bool = false):Float
Shortcut to FlxMath.lerp
or CoolUtil.lerp
, depending on fpsSensitive
Parameters:
v1 | Value 1 |
---|---|
v2 | Value 2 |
ratio | Ratio |
fpsSensitive | Whenever the ratio should not be adjusted to run at the same speed independent of framerate. |