Skip to main content

ErrorState

Kindclass
Packagestates
Full namestates.ErrorState
Sourcesource/states/ErrorState.hx
ExtendsMusicBeatState

Public fields​

NameTypeStaticDefaultNotes
acceptCallbackVoid->Voidno——
backCallbackVoid->Voidno——
errorMsgStringno——
errorSineFloatno0—
errorTextFlxTextno——

Public methods​

new (constructor)​

function new(error:String, accept:Void->Void = null, back:Void->Void = null)
ParameterTypeDefault
errorString—
acceptVoid->Void = null, back:Void->Void = null—

View source

onResize​

override function onResize(width:Int, height:Int):Void
ParameterTypeDefault
widthInt—
heightInt—

View source

Internals​

Private / internal members
FieldTypeStatic
backgroundFlxSpriteno
Method
override function create()
override function update(elapsed:Float)