View source
class ScriptedNoteKind
package funkin.play.notes.notekind
extends NoteKind
implements HScriptedClass
Available on all platforms
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.
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
scriptCall(funcName:String, ?funcArgs:Array<Dynamic>):Dynamic
Calls a function of the scripted class with the given name and arguments.
scriptSet(varName:String, ?varValue:Dynamic):Dynamic
Directly modifies the value of a local variable of a scripted class.