A script that can be tied to a NoteKind. Create a scripted class that extends NoteKind, then call super('noteKind') in the constructor to use this.

Static methods

staticinit(clsName:String, noteKind:String, ?description:String, ?noteStyleId:String, ?params:Array<NoteKindParam>, ?noanim:Bool, ?suffix:String):ScriptedNoteKind

Initializes a scripted class instance using the given scripted class name and constructor arguments.

staticlistScriptClasses():Array<String>

Returns a list of all the scripted classes which extend this class.

staticscriptStaticCall(clsName:String, funcName:String):Dynamic

Call a custom static function on a scripted class, by the given name, with the given arguments.

staticscriptStaticGet(clsName:String, fieldName:String):Dynamic

Retrieves a custom static variable on a scripted class, by the given name.

@:value({ fieldValue : null })staticscriptStaticSet(clsName:String, fieldName:String, ?fieldValue:Dynamic):Dynamic

Sets the value of a custom static variable on a scripted class, by the given name.

Constructor

new(noteKind:String, ?description:String, ?noteStyleId:String, ?params:Array<NoteKindParam>, ?noanim:Bool, ?suffix:String)

Methods

onCreate(event:ScriptEvent):Void

Polymod HScriptedClass override of onCreate.

onDestroy(event:ScriptEvent):Void

Polymod HScriptedClass override of onDestroy.

onNoteHit(event:HitNoteScriptEvent):Void

Polymod HScriptedClass override of onNoteHit.

onNoteHoldDrop(event:HoldNoteScriptEvent):Void

Polymod HScriptedClass override of onNoteHoldDrop.

onNoteIncoming(event:NoteScriptEvent):Void

Polymod HScriptedClass override of onNoteIncoming.

onNoteMiss(event:NoteScriptEvent):Void

Polymod HScriptedClass override of onNoteMiss.

onScriptEvent(event:ScriptEvent):Void

Polymod HScriptedClass override of onScriptEvent.

onUpdate(event:UpdateScriptEvent):Void

Polymod HScriptedClass override of onUpdate.

@:value({ funcArgs : null })scriptCall(funcName:String, ?funcArgs:Array<Dynamic>):Dynamic

Calls a function of the scripted class with the given name and arguments.

scriptGet(varName:String):Dynamic

Retrieves the value of a local variable of a scripted class.

@:value({ varValue : null })scriptSet(varName:String, ?varValue:Dynamic):Dynamic

Directly modifies the value of a local variable of a scripted class.

Inherited Variables

Defined by NoteKind

description:String

Description used in chart editor

noanim:Bool

Whether or not the sing animation should play.

noteKind:String

The name of the note kind

noteStyleId:Null<String>

Custom note style

params:Array<NoteKindParam>

Custom parameters for the chart editor

@:value(true)scoreable:Bool = true

If this note kind is scoreable (ie, counted towards score and accuracy) Only accessible in scripts Defaults to true

suffix:String

The animation suffix to use.

Inherited Methods