Quantcast

-Updated TOC to 5.2

Xruptor [03-13-13 - 23:32]
-Updated TOC to 5.2
-Added some WOW Client UI exclusions to specific UI elements.
-Small fix for the ScenarioAlertFrame1 frame.  Darn those typos. I missed the number 1!
Filename
xanAchievementMover.lua
xanAchievementMover.toc
diff --git a/xanAchievementMover.lua b/xanAchievementMover.lua
index 452161b..96dd7a2 100644
--- a/xanAchievementMover.lua
+++ b/xanAchievementMover.lua
@@ -4,6 +4,22 @@ local L = XANACHIEVEMENTMOVER_L
 local f = CreateFrame("frame","xanAchievementMover",UIParent)
 f:SetScript("OnEvent", function(self, event, ...) if self[event] then return self[event](self, event, ...) end end)

+UIPARENT_MANAGED_FRAME_POSITIONS["AchievementAlertFrame1"] = nil;
+UIPARENT_MANAGED_FRAME_POSITIONS["AchievementAlertFrame2"] = nil;
+UIPARENT_MANAGED_FRAME_POSITIONS["DungeonCompletionAlertFrame1"] = nil;
+UIPARENT_MANAGED_FRAME_POSITIONS["GuildChallengeAlertFrame"] = nil;
+UIPARENT_MANAGED_FRAME_POSITIONS["AlertFrame"] = nil;
+UIPARENT_MANAGED_FRAME_POSITIONS["ChallengeModeAlertFrame1"] = nil;
+UIPARENT_MANAGED_FRAME_POSITIONS["ScenarioAlertFrame1"] = nil;
+
+for i=1, MAX_ACHIEVEMENT_ALERTS do
+	UIPARENT_MANAGED_FRAME_POSITIONS["AchievementAlertFrame"..i] = nil;
+end
+
+for i=1, MAX_ACHIEVEMENT_ALERTS do
+	UIPARENT_MANAGED_FRAME_POSITIONS["CriteriaAlertFrame"..i] = nil;
+end
+
 ----------------------
 --  POSITION FIX    --
 ----------------------
@@ -16,7 +32,7 @@ local function customFixAnchors(...)
 	local frameG = GuildChallengeAlertFrame
 	local frameA = AlertFrame
 	local frameC = ChallengeModeAlertFrame1
-	local frameS = ScenarioAlertFrame
+	local frameS = ScenarioAlertFrame1

 	--check for dungeon shown
 	if (frameD and frameD:IsShown()) then
@@ -35,7 +51,7 @@ local function customFixAnchors(...)

 	--check for scenario complete shown
 	if (frameS and frameS:IsShown()) then
-		f:LoadPositionHook("ScenarioAlertFrame", "xanAchievementMover_Anchor")
+		f:LoadPositionHook("ScenarioAlertFrame1", "xanAchievementMover_Anchor")
 	end

 	--position the achievements
diff --git a/xanAchievementMover.toc b/xanAchievementMover.toc
index 6a2dde7..991f08c 100644
--- a/xanAchievementMover.toc
+++ b/xanAchievementMover.toc
@@ -1,8 +1,8 @@
-## Interface: 50001
+## Interface: 50200
 ## Title: xanAchievementMover
 ## Notes: A simple addon that allows the user to move the Achievement and Dungeon notifications.
 ## Author: Xruptor
-## Version: 1.3
+## Version: 1.5
 ## SavedVariables: XanAM_DB

 localization\localization.lua