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:
@ -240,12 +240,7 @@ function IceThreat.prototype:CreateSecondThreatBar()
|
||||
self.secondThreatBar:SetFrameStrata("MEDIUM")
|
||||
self.secondThreatBar:SetWidth(self.settings.barWidth + (self.moduleSettings.widthModifier or 0))
|
||||
self.secondThreatBar:SetHeight(self.settings.barHeight)
|
||||
self.secondThreatBar:ClearAllPoints()
|
||||
if self.moduleSettings.inverse then
|
||||
self.secondThreatBar:SetPoint("TOPLEFT", self.frame, "TOPLEFT")
|
||||
else
|
||||
self.secondThreatBar:SetPoint("BOTTOMLEFT", self.frame, "BOTTOMLEFT")
|
||||
end
|
||||
self:SetBarFramePoints(self.secondThreatBar)
|
||||
|
||||
if not (self.secondThreatBar.bar) then
|
||||
self.secondThreatBar.bar = self.secondThreatBar:CreateTexture(nil, "OVERLAY")
|
||||
@ -416,17 +411,21 @@ function IceThreat.prototype:UpdateSecondHighestThreatBar(secondHighestThreat, t
|
||||
pos = 1-pos
|
||||
end
|
||||
|
||||
local min_y = 0
|
||||
local max_y = pos
|
||||
if self.moduleSettings.inverse then
|
||||
if (self.moduleSettings.reverse) then
|
||||
pos = 1 - pos
|
||||
end
|
||||
if (self.moduleSettings.inverse) then
|
||||
min_y = 0
|
||||
max_y = pos
|
||||
else
|
||||
min_y = 1-pos
|
||||
max_y = 1
|
||||
end
|
||||
|
||||
if ( self.moduleSettings.side == IceCore.Side.Left ) then
|
||||
self.secondThreatBar.bar:SetTexCoord(1, 0, max_y, min_y)
|
||||
self.secondThreatBar.bar:SetTexCoord(1, 0, min_y, max_y)
|
||||
else
|
||||
self.secondThreatBar.bar:SetTexCoord(0, 1, max_y, min_y)
|
||||
self.secondThreatBar.bar:SetTexCoord(0, 1, min_y, max_y)
|
||||
end
|
||||
|
||||
local r, g, b = self:GetColor("ThreatSecondPlace")
|
||||
|
Reference in New Issue
Block a user