From 0019ec9734e564fc83e70e02a36d4f94c1542c41 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 10 Feb 2008 22:47:23 +0000 Subject: [PATCH] - fixed a bug where changing DogTag strings on any bar would require a /reloadui to take effect --- IceBarElement.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/IceBarElement.lua b/IceBarElement.lua index b9fec68..c4f72f6 100644 --- a/IceBarElement.lua +++ b/IceBarElement.lua @@ -41,6 +41,11 @@ function IceBarElement.prototype:Enable() self:RegisterEvent("PLAYER_ENTERING_WORLD", "CheckCombat") self:RegisterEvent("PLAYER_TARGET_CHANGED", "TargetChanged") + self:RegisterFontStrings() +end + + +function IceBarElement.prototype:RegisterFontStrings() if DogTag ~= nil then if self.frame.bottomUpperText and self.moduleSettings.upperText then DogTag:AddFontString(self.frame.bottomUpperText, self.frame, self.unit, self.moduleSettings.upperText) @@ -326,6 +331,7 @@ function IceBarElement.prototype:GetOptions() end self.moduleSettings.upperText = v + self:RegisterFontStrings() self:Redraw() end, usage = "" @@ -347,6 +353,7 @@ function IceBarElement.prototype:GetOptions() end self.moduleSettings.lowerText = v + self:RegisterFontStrings() self:Redraw() end, usage = ""