mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed 'inverse' mode to work with potential SnD bar
- expanded range of class power counters (shards, holy power) by request - fixed lacerate and sunder count modules to work with 3 max charges instead of 5 as per the new patch (these *really* need to go away and be auto-replaced by custom counters...) - yet another fix for text sometimes displaying the unit name for PetHealth - fixed how the 'second highest threat' bar is drawn so that it actually works with all textures
This commit is contained in:
@ -34,21 +34,14 @@ end
|
||||
|
||||
|
||||
-- OVERRIDE
|
||||
--[[
|
||||
function PetHealth.prototype:CreateFrame()
|
||||
PetHealth.super.prototype.CreateFrame(self)
|
||||
|
||||
local point, relativeTo, relativePoint, xoff, yoff = self.frame.bottomUpperText:GetPoint()
|
||||
if (point == "TOPLEFT") then
|
||||
point = "BOTTOMLEFT"
|
||||
else
|
||||
point = "BOTTOMRIGHT"
|
||||
if not UnitExists(self.unit) then
|
||||
self.frame.bottomUpperText:Hide()
|
||||
self.frame.bottomLowerText:Hide()
|
||||
end
|
||||
|
||||
self.frame.bottomUpperText:ClearAllPoints()
|
||||
self.frame.bottomUpperText:SetPoint(point, relativeTo, relativePoint, 0, 0)
|
||||
end
|
||||
]]
|
||||
|
||||
function PetHealth.prototype:Enable(core)
|
||||
PetHealth.super.prototype.Enable(self, core)
|
||||
|
Reference in New Issue
Block a user