From cf55382043acaa920a39f3fbf21164efccf5eaaa Mon Sep 17 00:00:00 2001 From: Repooc Date: Mon, 28 Nov 2016 04:16:13 -0500 Subject: [PATCH] Try to do some fixes #408 --- ElvUI_SLE/modules/databars/rep.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ElvUI_SLE/modules/databars/rep.lua b/ElvUI_SLE/modules/databars/rep.lua index b5aefda..79ebf54 100644 --- a/ElvUI_SLE/modules/databars/rep.lua +++ b/ElvUI_SLE/modules/databars/rep.lua @@ -1,5 +1,6 @@ local SLE, T, E, L, V, P, G = unpack(select(2, ...)) local DB = SLE:GetModule("DataBars") +local EDB = E:GetModule('DataBars') --GLOBALS: hooksecurefunc local _G = _G local strMatchCombat = {} @@ -89,11 +90,11 @@ local function UpdateReputation(self, event) end if textFormat == 'PERCENT' then - text = T.format('%s: %d%% [%s]', name, ((value - min) / (max - min) * 100), isFriend and friendText or _G["FACTION_STANDING_LABEL"..ID]) + text = T.format('%s: %d%% [%s]', name, ((value - min) / (max - min) * 100), isFriend and friendText or standingLabel) elseif textFormat == 'CURMAX' then - text = T.format('%s: %s - %s [%s]', name, value - min, max - min, isFriend and friendText or _G["FACTION_STANDING_LABEL"..ID]) + text = T.format('%s: %s - %s [%s]', name, value - min, max - min, isFriend and friendText or standingLabel) elseif textFormat == 'CURPERC' then - text = T.format('%s: %s - %d%% [%s]', name, value - min, ((value - min) / (max - min) * 100), isFriend and friendText or _G["FACTION_STANDING_LABEL"..ID]) + text = T.format('%s: %s - %d%% [%s]', name, value - min, ((value - min) / (max - min) * 100), isFriend and friendText or standingLabel) end bar.text:SetText(text) @@ -319,4 +320,5 @@ end function DB:RepInit() DB:PopulateRepPatterns() hooksecurefunc(E:GetModule('DataBars'), "UpdateReputation", UpdateReputation) + EDB:UpdateReputation() end \ No newline at end of file -- 1.7.9.5