Skip to content

Commit

Permalink
[caelNameplates] Fix castbar not displaying correctly when changing t…
Browse files Browse the repository at this point in the history
…argets and changing back. Make all the bars just a little biggger: health and castbar.
  • Loading branch information
memborsky committed Jan 26, 2012
1 parent a08af7e commit 5cf715d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions caelNameplates/caelNameplates.lua
Expand Up @@ -86,16 +86,16 @@ local UpdatePlate = function(self)
self.healthBar:ClearAllPoints()
self.healthBar:SetPoint("CENTER", self.healthBar:GetParent())
self.healthBar:SetHeight(pixelScale(8))
self.healthBar:SetWidth(pixelScale(100))
self.healthBar:SetHeight(pixelScale(12))
self.healthBar:SetWidth(pixelScale(120))
self.healthBar.hpBackground:SetVertexColor(self.r * 0.33, self.g * 0.33, self.b * 0.33, 0.75)
self.castBar.IconOverlay:SetVertexColor(self.r, self.g, self.b)
self.castBar:ClearAllPoints()
self.castBar:SetPoint("TOP", self.healthBar, "BOTTOM", 0, pixelScale(-4))
self.castBar:SetHeight(pixelScale(5))
self.castBar:SetWidth(pixelScale(100))
self.castBar:SetHeight(pixelScale(8))
self.castBar:SetWidth(pixelScale(120))
self.highlight:ClearAllPoints()
self.highlight:SetAllPoints(self.healthBar)
Expand All @@ -122,7 +122,7 @@ end
local FixCastbar = function(self)
self.castbarOverlay:Hide()
self:SetHeight(pixelScale(5))
self:SetHeight(pixelScale(8))
self:ClearAllPoints()
self:SetPoint("TOP", self.healthBar, "BOTTOM", 0, pixelScale(-4))
end
Expand All @@ -137,7 +137,7 @@ local ColorCastBar = function(self, shielded)
end
local OnSizeChanged = function(self, width, height)
if floor(height) ~= 5 then
if floor(height) ~= floor(pixelScale(8)) then
self.needFix = true
end
end
Expand Down

0 comments on commit 5cf715d

Please sign in to comment.