Quantcast

-Added the Garrison Alert Frames

Xruptor [11-16-14 - 19:39]
-Added the Garrison Alert Frames
Filename
xanAchievementMover.lua
xanAchievementMover.toc
diff --git a/xanAchievementMover.lua b/xanAchievementMover.lua
index 3a06acc..91cb8ae 100644
--- a/xanAchievementMover.lua
+++ b/xanAchievementMover.lua
@@ -11,6 +11,9 @@ UIPARENT_MANAGED_FRAME_POSITIONS["GuildChallengeAlertFrame"] = nil;
 UIPARENT_MANAGED_FRAME_POSITIONS["AlertFrame"] = nil;
 UIPARENT_MANAGED_FRAME_POSITIONS["ChallengeModeAlertFrame1"] = nil;
 UIPARENT_MANAGED_FRAME_POSITIONS["ScenarioAlertFrame1"] = nil;
+UIPARENT_MANAGED_FRAME_POSITIONS["GarrisonFollowerAlertFrame"] = nil;
+UIPARENT_MANAGED_FRAME_POSITIONS["GarrisonMissionAlertFrame"] = nil;
+UIPARENT_MANAGED_FRAME_POSITIONS["GarrisonBuildingAlertFrame"] = nil;

 for i=1, MAX_ACHIEVEMENT_ALERTS do
 	UIPARENT_MANAGED_FRAME_POSITIONS["AchievementAlertFrame"..i] = nil;
@@ -19,7 +22,7 @@ end
 for i=1, MAX_ACHIEVEMENT_ALERTS do
 	UIPARENT_MANAGED_FRAME_POSITIONS["CriteriaAlertFrame"..i] = nil;
 end
-
+
 ----------------------
 --  POSITION FIX    --
 ----------------------
@@ -33,7 +36,11 @@ local function customFixAnchors(...)
 	local frameA = AlertFrame
 	local frameC = ChallengeModeAlertFrame1
 	local frameS = ScenarioAlertFrame1
-
+	local frameGF = GarrisonFollowerAlertFrame
+	local frameGM = GarrisonMissionAlertFrame
+	local frameGB = GarrisonBuildingAlertFrame
+
+
 	--check for dungeon shown
 	if (frameD and frameD:IsShown()) then
 		f:LoadPositionHook("DungeonCompletionAlertFrame1", "xanAchievementMover_Anchor")
@@ -54,6 +61,17 @@ local function customFixAnchors(...)
 		f:LoadPositionHook("ScenarioAlertFrame1", "xanAchievementMover_Anchor")
 	end

+	--check for garrison frames
+	if (frameGF and frameGF:IsShown()) then
+		f:LoadPositionHook("GarrisonFollowerAlertFrame", "xanAchievementMover_Anchor")
+	end
+	if (frameGM and frameGM:IsShown()) then
+		f:LoadPositionHook("GarrisonMissionAlertFrame", "xanAchievementMover_Anchor")
+	end
+	if (frameGB and frameGB:IsShown()) then
+		f:LoadPositionHook("GarrisonBuildingAlertFrame", "xanAchievementMover_Anchor")
+	end
+
 	--position the achievements
 	for i=1, MAX_ACHIEVEMENT_ALERTS do
 		local achframe = _G["AchievementAlertFrame"..i];
diff --git a/xanAchievementMover.toc b/xanAchievementMover.toc
index 4cf6a8a..3a597e9 100644
--- a/xanAchievementMover.toc
+++ b/xanAchievementMover.toc
@@ -2,7 +2,7 @@
 ## Title: xanAchievementMover
 ## Notes: A simple addon that allows the user to move the Achievement and Dungeon notifications.
 ## Author: Xruptor
-## Version: 1.6
+## Version: 1.7
 ## SavedVariables: XanAM_DB

 localization\localization.lua