Print login message with version number
Darthpred [11-24-12 - 07:21]
Print login message with version number
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()