Skip to main content

CustomSubstate

Kindclass
Packagepsychlua
Full namepsychlua.CustomSubstate
Sourcesource/psychlua/CustomSubstate.hx
ExtendsMusicBeatSubstate

Public fields​

NameTypeStaticDefaultNotes
nameStringyes'unnamed'—
instanceCustomSubstateyes——

Public methods​

implement​

static function implement(funk:FunkinLua)

Only compiled when #if LUA_ALLOWED.

ParameterTypeDefault
funkFunkinLua—

View source

implementPython​

static function implementPython(python:PythonScript)

Only compiled when #if PYTHON_ALLOWED.

ParameterTypeDefault
pythonPythonScript—

View source

implementHScript​

static function implementHScript(hscript:HScript)

Only compiled when #if HSCRIPT_ALLOWED.

ParameterTypeDefault
hscriptHScript—

View source

openCustomSubstate​

static function openCustomSubstate(name:String, pauseGame:Bool = false)
ParameterTypeDefault
nameString—
pauseGame (optional)Boolfalse

View source

closeCustomSubstate​

static function closeCustomSubstate()

View source

insertToCustomSubstate​

static function insertToCustomSubstate(tag:String, pos:Int = -1)
ParameterTypeDefault
tagString—
pos (optional)Int-1

View source

new (constructor)​

function new(name:String)
ParameterTypeDefault
nameString—

View source

Internals​

Private / internal members
Method
override function create()
override function update(elapsed:Float)
override function destroy()
static function callPlayStateHook(hook:String, args:Array<Dynamic>):Void