Codename LogoCodename Logo

funkin.editors.EditorPicker

APIWikiTools

Constructor

View on GitHub

new(?scriptsAllowed:Bool, ?scriptName:String)

Variables

bg:FlxSprite

camVelocity:Float = 0

curMousePos:FlxPoint = FlxPoint.get()

curSelected:Int = 0

oldMousePos:FlxPoint = FlxPoint.get()

optionHeight:Float = 0

options:Array<Editor> = [{ name : "Chart Editor", id : "chart", state : funkin.editors.charter.CharterSelection }, { name : "Character Editor", id : "character", state : funkin.editors.character.CharacterSelection }, { name : "Stage Editor", id : "stage", state : funkin.editors.stage.StageSelection }, { name : "Alphabet Editor", id : "alphabet", state : funkin.editors.alphabet.AlphabetSelection }, { name : "Wiki", id : "wiki", state : null, onClick : function() { CoolUtil.openURL(Flags.URL_WIKI); } }]

selected:Bool = false

subCam:FlxCamera

Methods

Inherited Variables

Defined by MusicBeatSubstate

canOpenCustomTransition:Bool = false

Whether this specific substate can open custom transitions

read onlycontrols:Controls

Game Controls. (All players / Solo)

read onlycontrolsP1:Controls

Game Controls (Player 1 only)

read onlycontrolsP2:Controls

Game Controls (Player 2 only)

read onlycurBeat:Int

Current beat

read onlycurBeatFloat:Float

Current beat, as a Float (ex: 1.24, instead of 1)

read onlycurMeasure:Int

Current beat

read onlycurMeasureFloat:Float

Current beat, as a Float (ex: 1.24, instead of 1)

read onlycurStep:Int

Current step

read onlycurStepFloat:Float

Current step, as a Float (ex: 4.94, instead of 4)

parent:FlxState

scriptName:String = null

scriptsAllowed:Bool = true

read onlysongPos:Float

Current song position (in milliseconds).

stateScripts:ScriptPack

Current injected script attached to the state. To add one, create a file at path "data/states/stateName" (ex: "data/states/PauseMenuSubstate.hx")

Inherited Methods

Defined by MusicBeatSubstate

View on GitHub

call(name:String, ?args:Array<Dynamic>, ?defaultVal:Dynamic):Dynamic

View on GitHub

event<T>(name:String, event:T):T

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.

View on GitHub

openSubState(subState:FlxSubState):Void

SCRIPTING STUFF