StrumNote
| Kind | class |
| Package | objects |
| Full name | objects.StrumNote |
| Source | source/objects/StrumNote.hx |
| Extends | FlxSprite |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
rgbShader | RGBShaderReference | no | — | — |
notes_angle | Null<Float> | no | null | — |
resetAnim | Float | no | 0 | — |
noteData | Int | no | 0 | — |
direction | Float | no | 90 | — |
downScroll | Bool | no | false | — |
sustainReduce | Bool | no | true | — |
player | Int | no | — | — |
ogNoteskin | String | no | null | — |
texture | String | no | null | property (default, set) |
useRGBShader | Bool | no | true | — |
Public methods
getAngle
function getAngle()
new (constructor)
function new(x:Float, y:Float, leData:Int, player:Int, inEditor:Bool = false)
| Parameter | Type | Default |
|---|---|---|
x | Float | — |
y | Float | — |
leData | Int | — |
player | Int | — |
inEditor (optional) | Bool | false |
reloadNote
function reloadNote()
postAddedToGroup
function postAddedToGroup()
playAnim
function playAnim(anim:String, force:Bool = false, ?r:FlxColor, ?g:FlxColor, ?b:FlxColor)
| Parameter | Type | Default |
|---|---|---|
anim | String | — |
force (optional) | Bool | false |
r (optional) | FlxColor | — |
g (optional) | FlxColor | — |
b (optional) | FlxColor | — |
updateNoteSkin
function updateNoteSkin(noteskin:String)
| Parameter | Type | Default |
|---|---|---|
noteskin | String | — |
updateRGBColors
function updateRGBColors(?r:FlxColor, ?g:FlxColor, ?b:FlxColor)
| Parameter | Type | Default |
|---|---|---|
r (optional) | FlxColor | — |
g (optional) | FlxColor | — |
b (optional) | FlxColor | — |
resetRGB
function resetRGB()
Internals
Private / internal members
| Method |
|---|
function set_texture(value:String):String |
override function update(elapsed:Float) |