Skip to main content

StrumNote

Kindclass
Packageobjects
Full nameobjects.StrumNote
Sourcesource/objects/StrumNote.hx
ExtendsFlxSprite

Public fields​

NameTypeStaticDefaultNotes
rgbShaderRGBShaderReferenceno——
notes_angleNull<Float>nonull—
resetAnimFloatno0—
noteDataIntno0—
directionFloatno90—
downScrollBoolnofalse—
sustainReduceBoolnotrue—
playerIntno——
ogNoteskinStringnonull—
textureStringnonullproperty (default, set)
useRGBShaderBoolnotrue—

Public methods​

getAngle​

function getAngle()

View source

new (constructor)​

function new(x:Float, y:Float, leData:Int, player:Int, inEditor:Bool = false)
ParameterTypeDefault
xFloat—
yFloat—
leDataInt—
playerInt—
inEditor (optional)Boolfalse

View source

reloadNote​

function reloadNote()

View source

postAddedToGroup​

function postAddedToGroup()

View source

playAnim​

function playAnim(anim:String, force:Bool = false, ?r:FlxColor, ?g:FlxColor, ?b:FlxColor)
ParameterTypeDefault
animString—
force (optional)Boolfalse
r (optional)FlxColor—
g (optional)FlxColor—
b (optional)FlxColor—

View source

updateNoteSkin​

function updateNoteSkin(noteskin:String)
ParameterTypeDefault
noteskinString—

View source

updateRGBColors​

function updateRGBColors(?r:FlxColor, ?g:FlxColor, ?b:FlxColor)
ParameterTypeDefault
r (optional)FlxColor—
g (optional)FlxColor—
b (optional)FlxColor—

View source

resetRGB​

function resetRGB()

View source

Internals​

Private / internal members
Method
function set_texture(value:String):String
override function update(elapsed:Float)