From 5cf715d9606176756be2bfb5e3fd59cdc4ea3891 Mon Sep 17 00:00:00 2001 From: Matt Emborsky Date: Thu, 26 Jan 2012 02:23:44 -0500 Subject: [PATCH] [caelNameplates] Fix castbar not displaying correctly when changing targets and changing back. Make all the bars just a little biggger: health and castbar. --- caelNameplates/caelNameplates.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/caelNameplates/caelNameplates.lua b/caelNameplates/caelNameplates.lua index c61d664..6338e20 100644 --- a/caelNameplates/caelNameplates.lua +++ b/caelNameplates/caelNameplates.lua @@ -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) @@ -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 @@ -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