class ScriptedNoteStyle
package funkin.play.notes.notestyle
extends NoteStyle
implements HScriptedClass
Available on all platforms
A script that can be tied to a NoteStyle. Create a scripted class that extends NoteStyle to use this. This allows you to customize how a specific note style appears.
Static methods
staticinit(clsName:String, id:String, ?params:Dynamic):ScriptedNoteStyle
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
Methods
applyStrumlineAnimations(target:StrumlineNote, dir:NoteDirection):Void
Polymod HScriptedClass override of applyStrumlineAnimations.
applyStrumlineFrames(target:StrumlineNote):Void
Polymod HScriptedClass override of applyStrumlineFrames.
applyStrumlineOffsets(target:StrumlineNote):Void
Polymod HScriptedClass override of applyStrumlineOffsets.
buildComboNumSprite(digit:Int):Null<FunkinSprite>
Polymod HScriptedClass override of buildComboNumSprite.
buildComboNumSpritePath(digit:Int):Null<String>
Polymod HScriptedClass override of buildComboNumSpritePath.
buildCountdownSprite(step:CountdownStep):Null<FunkinSprite>
Polymod HScriptedClass override of buildCountdownSprite.
Build a sprite for the given step of the countdown.
Parameters:
step |
|---|
Returns:
A FunkinSprite, or null if no graphic is available for this step.
buildCountdownSpritePath(step:CountdownStep):Null<String>
Polymod HScriptedClass override of buildCountdownSpritePath.
buildHoldCoverSprite(target:NoteHoldCover):Void
Polymod HScriptedClass override of buildHoldCoverSprite.
buildJudgementSprite(rating:String):Null<FunkinSprite>
Polymod HScriptedClass override of buildJudgementSprite.
buildJudgementSpritePath(rating:String):Null<String>
Polymod HScriptedClass override of buildJudgementSpritePath.
getAuthor():String
Polymod HScriptedClass override of getAuthor.
Get the author of the note style.
Returns:
String
getComboNumSpriteOffsets(digit:Int):Array<Float>
Polymod HScriptedClass override of getComboNumSpriteOffsets.
getCountdownSoundPath(step:CountdownStep, raw:Bool = false):Null<String>
Polymod HScriptedClass override of getCountdownSoundPath.
getCountdownSpriteOffsets(step:CountdownStep):Array<Float>
Polymod HScriptedClass override of getCountdownSpriteOffsets.
getFallbackID():Null<String>
Polymod HScriptedClass override of getFallbackID.
Get the note style ID of the parent note style.
Returns:
The string ID, or null if there is no parent.
getHoldCoverDirectionAssetPath(direction:NoteDirection, raw:Bool = false):Null<String>
Polymod HScriptedClass override of getHoldCoverDirectionAssetPath.
getHoldNoteAssetPath(raw:Bool = false):Null<String>
Polymod HScriptedClass override of getHoldNoteAssetPath.
getJudgementSpriteOffsets(rating:String):Array<Float>
Polymod HScriptedClass override of getJudgementSpriteOffsets.
getName():String
Polymod HScriptedClass override of getName.
Get the readable name of the note style.
Returns:
String
getSplashAssetPath(raw:Bool = false):Null<String>
Polymod HScriptedClass override of getSplashAssetPath.
getStrumlineAssetPath(raw:Bool = false):Null<String>
Polymod HScriptedClass override of getStrumlineAssetPath.
isCountdownSpritePixel(step:CountdownStep):Bool
Polymod HScriptedClass override of isCountdownSpritePixel.
isJudgementSpritePixel(rating:String):Bool
Polymod HScriptedClass override of isJudgementSpritePixel.
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.