-
Notifications
You must be signed in to change notification settings - Fork 3
/
WidgetAnnotations.lua
396 lines (350 loc) · 9.81 KB
/
WidgetAnnotations.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
---@meta
---@alias WidgetTable
---| NameTextWidgetTable
---| HealthTextWidgetTable
---| PowerTextWidgetTable
---| AuraWidgetTable
---| RaidIconWidgetTable
---| RoleIconWidgetTable
---| LeaderIconWidgetTable
---| CombatIconWidgetTable
---| ShieldBarWidgetTable
---| LevelTextWidgetTable
---| ReadyCheckIconWidgetTable
---| RestingIconWidgetTable
---| CastBarWidgetTable
---| ClassBarWidgetTable
---| CustomTextWidgetTable
---| HealAbsorbWidgetTable
---| DispelsWidgetTable
---| TotemsWidgetTable
---| FaderWidgetTable
---@alias Widget
---| NameTextWidget
---| HealthTextWidget
---| PowerTextWidget
---| CellAuraIcons
---| RaidIconWidget
---| RoleIconWidget
---| LeaderIconWidget
---| CombatIconWidget
---| ShieldBarWidget
---| LevelTextWidget
---| ReadyCheckIconWidget
---| RestingIconWidget
---| CastBarWidget
---| ClassBarWidget
---| CustomTextWidget
---| HealAbsorbWidget
---| DispelsWidget
---| TotemsWidget
---| FaderWidget
---@class CUFUnitButton.Widgets
---@field healthBar HealthBarWidget
---@field healthBarLoss Texture
---@field deadTex Texture
---@field powerBar PowerBarWidget
---@field powerBarLoss Texture
---@field powerText PowerTextWidget
---@field nameText NameTextWidget
---@field targetHighlight HighlightWidget
---@field mouseoverHighlight HighlightWidget
---@field healthText HealthTextWidget
---@field buffs CellAuraIcons
---@field debuffs CellAuraIcons
---@field raidIcon RaidIconWidget
---@field roleIcon RoleIconWidget
---@field leaderIcon LeaderIconWidget
---@field combatIcon CombatIconWidget
---@field shieldBar ShieldBarWidget
---@field levelText LevelTextWidget
---@field readyCheckIcon ReadyCheckIconWidget
---@field restingIcon RestingIconWidget
---@field castBar CastBarWidget
---@field classBar ClassBarWidget
---@field customText CustomTextWidget
---@field healAbsorb HealAbsorbWidget
---@field dispels DispelsWidget
---@field totems TotemsWidget
---@field fader FaderWidget
---@class BaseWidget
---@field enabled boolean
---@field id WIDGET_KIND
---@field _isSelected boolean
---@field _SetIsSelected function
---@field _OnIsSelected function?
---@field _isEnabled boolean
-------------------------------------------------
-- MARK: Text Widgets
-------------------------------------------------
---@class NameTextWidgetTable
---@field enabled boolean
---@field frameLevel number
---@field font SmallFontOpt
---@field color ColorOpt
---@field width FontWidthOpt
---@field position PositionOpt
---@field format NameFormat
---@class HealthTextWidgetTable
---@field enabled boolean
---@field textFormat string
---@field frameLevel number
---@field color ColorOpt
---@field position PositionOpt
---@field format string
---@field font SmallFontOpt
---@field hideIfFull boolean
---@field hideIfEmpty boolean
---@field showDeadStatus boolean
---@class PowerTextWidgetTable
---@field enabled boolean
---@field frameLevel number
---@field color ColorOpt
---@field hideIfEmptyOrFull boolean
---@field position PositionOpt
---@field format string
---@field font SmallFontOpt
---@field textFormat string
---@class LevelTextWidgetTable
---@field enabled boolean
---@field frameLevel number
---@field font SmallFontOpt
---@field color ColorOpt
---@field position PositionOpt
---@class CustomTextWidgetTable
---@field enabled boolean
---@field textFormat string
---@field color ColorOpt
---@field position PositionOpt
---@field font SmallFontOpt
---@class CustomTextMainWidgetTable
---@field enabled boolean
---@field frameLevel number
---@field texts CustomTextWidgetTable[]
-------------------------------------------------
-- MARK: Icon Widgets
-------------------------------------------------
---@class RoleIconWidgetTable
---@field enabled boolean
---@field position PositionOpt
---@field frameLevel number
---@field size SizeOpt
---@class LeaderIconWidgetTable
---@field enabled boolean
---@field size SizeOpt
---@field frameLevel number
---@field position PositionOpt
---@class RaidIconWidgetTable
---@field enabled boolean
---@field position PositionOpt
---@field frameLevel number
---@field size SizeOpt
---@class CombatIconWidgetTable
---@field enabled boolean
---@field position PositionOpt
---@field frameLevel number
---@field size SizeOpt
---@class RestingIconWidgetTable
---@field enabled boolean
---@field position PositionOpt
---@field frameLevel number
---@field size SizeOpt
---@field hideAtMaxLevel boolean
---@field iconTexture string
---@class ReadyCheckIconWidgetTable
---@field enabled boolean
---@field frameLevel number
---@field size SizeOpt
---@field position PositionOpt
-------------------------------------------------
-- MARK: Aura Widgets
-------------------------------------------------
---@class AuraWidgetTable
---@field enabled boolean
---@field showDuration boolean
---@field numPerLine number
---@field showAnimation boolean
---@field showTooltip boolean
---@field maxIcons number
---@field font AuraFontOpt
---@field showStack boolean
---@field filter FilterOpt
---@field orientation GrowthOrientation
---@field position PositionOpt
---@field spacing SpacingOpt
---@field size SizeOpt
---@field hideInCombat boolean
---@class FilterOpt
---@field whiteListPriority boolean
---@field blacklist table<number>
---@field whitelist table<number>
---@field hideNoDuration boolean
---@field castByPlayers boolean
---@field useBlacklist boolean
---@field useWhitelist boolean
---@field nonPersonal boolean
---@field maxDuration number
---@field minDuration number
---@field castByNPC boolean
---@field personal boolean
---@field boss boolean
---@field tempEnchant boolean
---@class AuraFontOpt
---@field stacks BigFontOpt
---@field duration BigFontOpt
---@class DispelsWidgetTable
---@field enabled boolean
---@field frameLevel number
---@field highlightType "entire" | "current" | "current+" | "gradient" | "gradient-half"
---@field onlyShowDispellable boolean
---@field curse boolean
---@field disease boolean
---@field magic boolean
---@field poison boolean
---@field bleed boolean
---@field iconStyle "none" | "blizzard" | "rhombus"
---@field size number
---@field position PositionOpt
---@field glow GlowOpt
---@class TotemsWidgetTable
---@field enabled boolean
---@field frameLevel number
---@field showDuration boolean
---@field numPerLine number
---@field showAnimation boolean
---@field showTooltip boolean
---@field maxIcons number
---@field font AuraFontOpt
---@field orientation GrowthOrientation
---@field position PositionOpt
---@field spacing SpacingOpt
---@field size SizeOpt
---@field hideInCombat boolean
-------------------------------------------------
-- MARK: Bar Widgets
-------------------------------------------------
---@class ShieldBarWidgetTable
---@field enabled boolean
---@field frameLevel number
---@field point "RIGHT"|"LEFT"|"healthBar"
---@field reverseFill boolean
---@field overShield boolean
---@class CastBarWidgetTable
---@field enabled boolean
---@field frameLevel number
---@field position PositionOpt
---@field anchorToParent boolean
---@field detachedPosition PositionOpt
---@field size SizeOpt
---@field reverse boolean
---@field timer BigFontOpt
---@field timerFormat CastBarTimerFormat
---@field spell BigFontOpt
---@field spellWidth FontWidthOpt
---@field showSpell boolean
---@field showTarget boolean
---@field targetSeparator string
---@field spark CastBarSparkOpt
---@field empower EmpowerOpt
---@field border BorderOpt
---@field icon CastBarIconOpt
---@field useClassColor boolean
---@field onlyShowInterrupt boolean
---@field timeToHold number
---@field interruptedLabel string
---@field showInterruptedSpell boolean
---@class CastBarSparkOpt
---@field enabled boolean
---@field width number
---@field color RGBAOpt
---@class CastBarIconOpt
---@field enabled boolean
---@field position "left"|"right"
---@field zoom number
---@class EmpowerOpt
---@field useFullyCharged boolean
---@field showEmpowerName boolean
---@class ClassBarWidgetTable
---@field enabled boolean
---@field frameLevel number
---@field position PositionOpt
---@field size SizeOpt
---@field spacing number
---@field verticalFill boolean
---@field sameSizeAsHealthBar boolean
---@field hideOutOfCombat boolean
---@class HealAbsorbWidgetTable
---@field enabled boolean
---@field frameLevel number
-------------------------------------------------
-- MARK: Misc Widgets
-------------------------------------------------
---@class FaderWidgetTable
---@field enabled boolean
---@field range boolean
---@field combat boolean
---@field hover boolean
---@field target boolean
---@field unitTarget boolean
---@field fadeDuration number
---@field maxAlpha number
---@field minAlpha number
-------------------------------------------------
-- MARK: Generic Options
-------------------------------------------------
---@class PositionOpt
---@field point FramePoint
---@field offsetY number
---@field offsetX number
---@field relativePoint FramePoint
---@class FontWidthOpt
---@field value number
---@field type FontWidthType
---@field auxValue number
---@class RGBOpt
---@field [1] number
---@field [2] number
---@field [3] number
---@class RGBAOpt
---@field [1] number
---@field [2] number
---@field [3] number
---@field [4] number
---@class ColorOpt
---@field rgb RGBOpt
---@field type HealthColorType
---@class SmallFontOpt
---@field outline string
---@field size number
---@field style string
---@field shadow boolean
---@class BigFontOpt
---@field outline string
---@field rgb RGBOpt
---@field style string
---@field shadow boolean
---@field point FramePoint
---@field offsetY number
---@field offsetX number
---@field size number
---@class SizeOpt
---@field width number
---@field height number
---@class SpacingOpt
---@field vertical number
---@field horizontal number
---@class BorderOpt
---@field showBorder boolean
---@field offset number
---@field size number
---@field color RGBAOpt
---@class GlowOpt
---@field type GlowType
---@field color RGBAOpt
---@field lines number
---@field frequency number
---@field length number
---@field thickness number
---@field particles number
---@field duration number
---@field scale number