View source
class FunkinHint
package funkin.mobile.ui
extends FunkinButton › FunkinSprite
import funkin.mobile.ui.FunkinHitbox
Available on all platforms
The FunkinHint class represents a button with HSV color properties, allowing hue and saturation adjustments.
Constructor
new(x:Float, y:Float, noteDirection:NoteDirection, label:Null<FlxGraphic>)
Creates a new FunkinHint object.
Parameters:
x | The x position of the button. |
|---|---|
y | The y position of the button. |
noteDirection | The direction of the note the button represents (e.g. left, right). |
label | An graphic to display as the label on the button. |
Variables
Methods
follow(sprite:FunkinSprite, followTargetSize:Bool = true):Void
Makes the hitbox follow the specified sprite.
Parameters:
sprite | The FunkinSprite instance that the hitbox should follow. |
|---|---|
followTargetSize | A boolean indicating whether the hitbox should adjust to the target's size. Default is true. |
initTween(style:FunkinHintAlphaStyle):Void
Initializes alpha tween animations for the button.
Parameters:
style | The alpha style to use. |
|---|