From 79bdcbf7da56c1e7c9656dbfa65de0d8012d9cd7 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sat, 24 Nov 2012 11:21:39 +0400 Subject: [PATCH] Print login message with version number --- ElvUI_SLE/ElvUI_SLE.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ElvUI_SLE/ElvUI_SLE.lua b/ElvUI_SLE/ElvUI_SLE.lua index c8af150..019cc34 100644 --- a/ElvUI_SLE/ElvUI_SLE.lua +++ b/ElvUI_SLE/ElvUI_SLE.lua @@ -76,13 +76,14 @@ end function SLE:Initialize() + SLE.version = GetAddOnMetadata("ElvUI_SLE", "Version") DTP = E:GetModule('DTPanels') if E.private.unitframe.enable then self:RegisterEvent("PLAYER_REGEN_DISABLED", UF.Update_CombatIndicator); end self:RegisterEvent('PLAYER_ENTERING_WORLD', 'LootShow'); if E.db.general.loginmessage then - print(L['SLE_LOGIN_MSG']) + print(format(L['SLE_LOGIN_MSG'], E["media"].hexvaluecolor, SLE.version)) end E.db.datatexts.panels.Top_Center = 'Version' DTP:DashboardShow() -- 1.7.9.5