-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathArrowEffects.lua
161 lines (144 loc) · 6.07 KB
/
ArrowEffects.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
---@meta
--- For all of these functions, the first column starts at 1.
---@class ArrowEffects
ArrowEffects = {}
--- Returns the Alpha of a note in column `iCol` with a Y offset of `fYOffset` for the
--- provided PlayerState.
--- <br>
--- `fPercentFadeToFail` is optional and defaults to -1.
--- <br>
--- `fYReverseOffsetPixels` is the separation between targets with and without reverse.
--- This argument is optional and will pull defaults from the metrics for `[Player]`.
--- <br>
--- `fDrawDistanceBeforeTargetsPixels` is optional and will pull defaults from the
--- `[Player]` metric `DrawDistanceBeforeTargetsPixels`
--- <br>
--- `fFadeInPercentOfDrawFar` is optional and will pull defaults from the `[NoteField]`
--- metric `FadeBeforeTargetsPercent`
--- <br>
--- `part` is optional and will default to `NotePart_TapNote`.
--- @param ps PlayerState
--- @param iCol integer
--- @param fYOffset number
--- @param fPercentFadeToFail number
--- @param fYReverseOffsetPixels number
--- @param fDrawDistanceBeforeTargetPixels number
--- @param fFadeInPercentOfDrawFar number
--- @param part NotePart
--- @return number
function ArrowEffects.GetAlpha(ps, iCol, fYOffset, fPercentFadeToFail, fYReverseOffsetPixels, fDrawDistanceBeforeTargetPixels, fFadeInPercentOfDrawFar, part) end
--- Returns the brightness of a note at beat `fNoteBeat` for the provided PlayerState.
---@param ps PlayerState
---@param fNoteBeat number
---@return number
function ArrowEffects.GetBrightness(ps, fNoteBeat) end
--- Returns the FrameWidthScale of a hold part with a Y offset of `fYOffset` for the
--- provided PlayerState.
--- <br>
--- `fOverlappedTime` is optional and will default to 0.
---@param ps PlayerState
---@param fYOffset number
---@param fOverlappedTime number
---@return number
function ArrowEffects.GetFrameWidthScale(ps, fYOffset, fOverlappedTime) end
--- Returns the Glow of a note in column `iCol` with a Y offset of `fYOffset` for the
--- provided PlayerState. The arguments are the same as for `ArrowEffects.GetAlpha`.
---@param ps PlayerState
---@param iCol integer
---@param fYOffset number
---@param fPercentFadeToFail number
---@param fYReverseOffsetPixels number
---@param fDrawDistanceBeforeTargetPixels number
---@param fFadeInPercentOfDrawFar number
---@param part NotePart
---@return number
function ArrowEffects.GetGlow(ps, iCol, fYOffset, fPercentFadeToFail, fYReverseOffsetPixels, fDrawDistanceBeforeTargetPixels, fFadeInPercentOfDrawFar, part) end
--- Returns the X rotation of a note in column `iCol` with a Y offset of `fYOffset` for
--- the provided PlayerState.
---@param ps PlayerState
---@param fYOffset number
---@param iCol integer
---@return number
function ArrowEffects.GetRotationX(ps, fYOffset, iCol) end
--- Returns the Y rotation of a note in column `iCol` with a Y offset of `fYOffset` for
--- the provided PlayerState.
---@param ps PlayerState
---@param fYOffset number
---@param iCol integer
---@return number
function ArrowEffects.GetRotationY(ps, fYOffset, iCol) end
--- Returns the Z rotation of a note in column `iCol` at beat `fNoteBeat` for the
--- provided PlayerState.
--- <br>
--- `bIsHoldHead` is an optional argument which defaults to `false`. If `true`, this
--- function will return 0 if the PlayerOptions modifier `DizzyHolds` is off.
--- <br>
--- Not putting in `fYOffset` will give the rotationz at offset 0.
---@param ps PlayerState
---@param fNoteBeat number
---@param bIsHoldHead boolean
---@param iCol integer
---@param fYOffset number
---@return number
function ArrowEffects.GetRotationZ(ps, fNoteBeat, bIsHoldHead, iCol, fYOffset) end
--- Returns the X position of a note in column `iCol` with a Y offset of `fYOffset` for
--- the provided PlayerState.
---@param ps PlayerState
---@param iCol integer
---@param fYOffset number
---@return number
function ArrowEffects.GetXPos(ps, iCol, fYOffset) end
--- Returns the Y Offset of a note in column `iCol` at beat `fNoteBeat` for the provided
--- PlayerState. Y Offset is affected by Speed mods and Accel mods, and impacts most
--- other arrow effects.
---@param ps PlayerState
---@param iCol integer
---@param fNoteBeat number
---@return number
function ArrowEffects.GetYOffset(ps, iCol, fNoteBeat) end
--- Returns the Y offset of a note in column `iCol` with a Y position of `fYPos` for the
--- provided PlayerState.
--- <br>
--- `fYReverseOffsetPixels` is the separation between targets with and without reverse.
--- This argument is optional and will pull defaults from the metrics for `[Player]`.
---@param ps PlayerState
---@param iCol integer
---@param fYPos number
---@param fReverseOffsetPixels number
---@return number
function ArrowEffects.GetYOffsetFromYPos(ps, iCol, fYPos, fReverseOffsetPixels) end
--- Returns the Y position of a note in column `iCol` with a Y offset of `fYOffset` for
--- the provided PlayerState.
--- <br>
--- `fYReverseOffsetPixels` is the separation between targets with and without reverse.
--- This argument is optional and will pull defaults from the metrics for `[Player]`.
---@param ps PlayerState
---@param iCol integer
---@param fYOffset number
---@param fYReverseOffsetPixels number
---@return number
function ArrowEffects.GetYPos(ps, iCol, fYOffset, fYReverseOffsetPixels) end
--- Returns the zoom of a note for the provided PlayerState.
---@param ps PlayerState
---@param fYOffset number
---@param iCol integer
---@return number
function ArrowEffects.GetZoom(ps, fYOffset, iCol) end
--- Returns the Z position of a note in column `iCol` with a Y offset of `fYOffset` for
--- the provided PlayerState.
---@param ps PlayerState
---@param iCol integer
---@param fYOffset number
---@return number
function ArrowEffects.GetZPos(ps, iCol, fYOffset) end
--- Returns `true` if any arrow effects for the provided PlayerState require the z buffer.
---@param ps PlayerState
---@return boolean
function ArrowEffects.NeedZBuffer(ps) end
--- Returns the Z rotation of the receptors in column `iCol` for the provided PlayerState.
---@param ps PlayerState
---@param iCol integer
---@return number
function ArrowEffects.ReceptorGetRotationZ(ps, iCol) end
--- Updates ArrowEffects, which sets current values for Tornado, Invert, and Beat.
function ArrowEffects.Update() end