-
Notifications
You must be signed in to change notification settings - Fork 196
Events
Wizard edited this page Aug 23, 2023
·
36 revisions
Events called through functions, should be simple? i think idk man i'm not even close to done writing all this lmaoo
NOTE: all events can be cancelled by using event.cancel();
EXCEPT for when you are using function onGetCamPos()
.
Argument | Type | Description |
---|---|---|
amount | int | Amount lmao |
Argument | Type | Description |
---|---|---|
position | FlxPoint | Final camera position. |
strumLine | StrumLine | Currently focused strumline. |
focusedCharacters | int | Number of focused characters. |
Argument | Type | Description |
---|---|---|
swagCounter | int | At which count the countdown is. Normally goes 0-1-2-3-4 unless PlayState.instance.introLength is changed. |
volume | float | Volume at which the intro countdown sound will play. |
soundPath | string | Path of the intro sound that'll be played. |
spritePath | string | Path to the sprite path that'll be shown. |
scale | float | Scale of the sprite. |
antialiasing | bool | Whenever antialiasing is enabled or not. |
sprite | FlxSprite | Created sprite, only available in onPostCountdown . |
spriteTween | FlxTween | Created tween for the sprite, only available in onPostCountdown . |
sound | FlxSound | Created sound, only available in onPostCountdown . |
Argument | Type | Description |
---|---|---|
danced | bool |
Argument | Type | Description |
---|---|---|
animName | string | Default animation that will be played. |
direction | int | In which direction the animation will be played. |
suffix | string | The suffix of the animation (ex: "-alt" ) - Defaults to "" . |
context | PlayAnimContext | Context of the animation. Is either equal to SING or MISS . |
reversed | bool | Whenever the animation will play reversed or not. |
frame | int | At what frame the animation will start playing. |
animName | string | Default animation that will be played. |
force | bool | Whether to force the animation. |
Argument | Type | Description |
---|---|---|
presenceData | DiscordPresenceOptions OR Dynamic | Object containing all of the data for the presence. |
nothing yet :/
Argument | Type | Description |
---|---|---|
event | ChartEvent | I have seen the word "event" too many times. |
Argument | Type | Description |
---|---|---|
idleAlpha | float | The alpha when nothing is playing and isn't selected. |
idlePlayingAlpha | float | The alpha when something is playing and isn't selected. |
selectedAlpha | float | The alpha when nothing is playing and selected. |
selectedPlayeingAlpha | float | The alpha when something is playing and selected. |
lerp | float | The lerp of the alpha. |
Argument | Type | Description |
---|---|---|
song | string | Song name that is about to be played. |
difficulty | string | Difficulty name. |
opponentMode | bool | Whether opponent mode is enabled. |
coopMode | bool | Whether coop mode is enabled. |
Argument | Type | Description |
---|---|---|
pressed | array | Array containing whenever a specific control is pressed or not. For example, pressed[0] will return whenever the left strum was pressed. |
justPressed | array | Array containing whenever a specific control is pressed (not hold) this frame or not. For example, justPressed[0] will return whenever the left strum was just pressed. |
justReleased | array | Array containing whenever a specific control was released this frame or not. For example, justReleased[0] will return whenever the left strum was just released. |
strumLine | StrumLine | Strumline in which the input is being processed. |
strumLineID | int | ID of the Strumline. |
unfinished obv lmao