Quantcast

Add support for 1.6

Adrian L Lange [02-06-12 - 23:20]
Add support for 1.6
Filename
oUF_Experience.lua
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)