-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathHolyPower.lua
43 lines (38 loc) · 1.35 KB
/
HolyPower.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
local module = ArcHUD:NewModule("HolyPower")
module.version = "5.0 (@file-abbreviated-hash@)"
module.unit = "player"
module.noAutoAlpha = nil
module.defaults = {
profile = {
Enabled = true,
Outline = true,
Flash = true,
Side = 2,
Level = 1,
ShowSeparators = true,
Color = PowerBarColor["HOLY_POWER"],
RingVisibility = 2, -- always fade out when out of combat, regardless of ring status
ShowTextHuge = false
}
}
module.options = {
{name = "Flash", text = "FLASH_HP", tooltip = "FLASH_HP"},
{name = "ShowTextHuge", text = "SHOWTEXTHUGE", tooltip = "SHOWTEXTHUGE"}, -- fka "combo points"
attach = true,
hasseparators = true,
}
module.localized = true
module.class = "PALADIN"
module.specs = nil -- array of SPEC_... constants; nil if this ring is available for all specs
module.powerType = Enum.PowerType.HolyPower
module.powerTypeString = "HOLY_POWER"
module.flashAt = 3
function module:Initialize()
self.InitializePowerRing = ArcHUD.templatePowerRing.InitializePowerRing
self.OnModuleUpdate = ArcHUD.templatePowerRing.OnModuleUpdate
self.OnModuleEnable = ArcHUD.templatePowerRing.OnModuleEnable
self.UpdatePowerRing = ArcHUD.templatePowerRing.UpdatePowerRing
self.UpdatePower = ArcHUD.templatePowerRing.UpdatePower
self.UpdateActive = ArcHUD.templatePowerRing.UpdateActive
self:InitializePowerRing()
end