From 97f4d6b20dd22a14e2185bac0ce92bcc28038cdc Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Tue, 7 Feb 2012 00:20:48 +0100 Subject: [PATCH] Add support for 1.6 --- oUF_Experience.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/oUF_Experience.lua b/oUF_Experience.lua index 18a63ba..7f68c70 100644 --- a/oUF_Experience.lua +++ b/oUF_Experience.lua @@ -2,6 +2,8 @@ local _, ns = ... local oUF = ns.oUF or oUF assert(oUF, 'oUF Experience was unable to locate oUF install') +local development = oUF.version == '1.6.0' + for tag, func in pairs({ ['curxp'] = function(unit) return UnitXP(unit) @@ -22,8 +24,13 @@ for tag, func in pairs({ end end, }) do - oUF.Tags[tag] = func - oUF.TagEvents[tag] = 'PLAYER_XP_UPDATE PLAYER_LEVEL_UP UPDATE_EXHAUSTION' + if(development) then + oUF.Tags.Methods[tag] = func + oUF.Tags.Events[tag] = 'PLAYER_XP_UPDATE PLAYER_LEVEL_UP UPDATE_EXHAUSTION' + else + oUF.Tags[tag] = func + oUF.TagEvents[tag] = 'PLAYER_XP_UPDATE PLAYER_LEVEL_UP UPDATE_EXHAUSTION' + end end local function Update(self, event, unit) -- 1.7.9.5