- Drycoded a holy power module fix for pre-5.0. I don't have a level 9+ paladin on live, so maybe this works?

This commit is contained in:
Parnic
2012-07-16 00:48:28 +00:00
parent d6506e79c2
commit 9af143aacc

View File

@ -7,20 +7,33 @@ function HolyPower.prototype:init()
self:SetDefaultColor("HolyPowerNumeric", 218, 231, 31) self:SetDefaultColor("HolyPowerNumeric", 218, 231, 31)
-- pulled from PaladinPowerBar.xml in Blizzard's UI source -- pulled from PaladinPowerBar.xml in Blizzard's UI source
self.runeCoords = if IceHUD.WowVer >= 50000 then
{ self.runeCoords =
{0.00390625, 0.14453125, 0.78906250, 0.96093750}, {
{0.15234375, 0.27343750, 0.78906250, 0.92187500}, {0.00390625, 0.14453125, 0.78906250, 0.96093750},
{0.28125000, 0.38671875, 0.64843750, 0.81250000}, {0.15234375, 0.27343750, 0.78906250, 0.92187500},
{0.28125000, 0.38671875, 0.82812500, 0.92187500}, {0.28125000, 0.38671875, 0.64843750, 0.81250000},
{0.39453125, 0.49609375, 0.64843750, 0.74218750}, {0.28125000, 0.38671875, 0.82812500, 0.92187500},
} {0.39453125, 0.49609375, 0.64843750, 0.74218750},
}
else
self.runeCoords =
{
{0.00390625, 0.14453125, 0.64843750, 0.82031250},
{0.00390625, 0.12500000, 0.83593750, 0.96875000},
{0.15234375, 0.25781250, 0.64843750, 0.81250000},
}
end
self.numericColor = "HolyPowerNumeric" self.numericColor = "HolyPowerNumeric"
self.unitPower = SPELL_POWER_HOLY_POWER self.unitPower = SPELL_POWER_HOLY_POWER
self.minLevel = PALADINPOWERBAR_SHOW_LEVEL self.minLevel = PALADINPOWERBAR_SHOW_LEVEL
self.bTreatEmptyAsFull = true self.bTreatEmptyAsFull = true
self.unit = "player" self.unit = "player"
self.numConsideredFull = HOLY_POWER_FULL if IceHUD.WowVer >= 50000 then
self.numConsideredFull = HOLY_POWER_FULL
else
self.numConsideredFull = 3
end
end end
function HolyPower.prototype:GetOptions() function HolyPower.prototype:GetOptions()