From b9ff0e15aa8456580cc7ce4120dd023c225a7e85 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Fri, 2 Nov 2012 19:23:33 +0400 Subject: [PATCH] Changes in main file due to the previous change --- ElvUI_SLE/ElvUI_SLE.lua | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/ElvUI_SLE/ElvUI_SLE.lua b/ElvUI_SLE/ElvUI_SLE.lua index ad23efd..0fba1a3 100644 --- a/ElvUI_SLE/ElvUI_SLE.lua +++ b/ElvUI_SLE/ElvUI_SLE.lua @@ -1,5 +1,6 @@ local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore local SLE = E:NewModule('SLE', 'AceHook-3.0', 'AceEvent-3.0'); +local UF = E:GetModule('UnitFrames'); function SLE:Tutorials() --Additional tutorials table.insert(E.TutorialList, #(E.TutorialList)+1, L["To enable full values of health/power on unitframes in Shadow & Light add \":sl\" to the end of the health/power tag.\nExample: [health:current:sl]."]); @@ -10,13 +11,6 @@ function SLE:ConfigCats() --Additional config groups E.ConfigModeLocalizedStrings["S&L"] = "S&L" end ---Updating things that must be updated only after everything loads -function SLE:UpdateThings() - if E.private.unitframe.enable then - E:GetModule('UnitFrames'):Update_CombatIndicator() - end -end - function SLE:LootShow() local instance = IsInInstance() LootHistoryFrame:SetAlpha(E.db.sle.lootalpha or 1) @@ -61,7 +55,7 @@ function E:UpdateAll() E:GetModule('DTPanels'):DashboardShow() E:GetModule('DTPanels'):DashWidth() if E.private.unitframe.enable then - E:GetModule('UnitFrames'):Update_CombatIndicator() + UF:Update_CombatIndicator() end E:GetModule('UIButtons'):UpdateAll() E.db.datatexts.panels.Top_Center = 'Version' @@ -72,7 +66,7 @@ end function SLE:Initialize() - self:RegisterEvent("PLAYER_REGEN_DISABLED", "UpdateThings"); + self:RegisterEvent("PLAYER_REGEN_DISABLED", UF.Update_CombatIndicator); self:RegisterEvent('PLAYER_ENTERING_WORLD', 'LootShow'); if E.db.general.loginmessage then print(L['SLE_LOGIN_MSG']) -- 1.7.9.5