From c9a15814c30fb74ba32f8b6d7dcc909fb1af857e Mon Sep 17 00:00:00 2001 From: Xruptor Date: Sun, 16 Nov 2014 13:39:01 -0600 Subject: [PATCH] -Added the Garrison Alert Frames --- xanAchievementMover.lua | 22 ++++++++++++++++++++-- xanAchievementMover.toc | 2 +- 2 files changed, 21 insertions(+), 3 deletions(-) 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 -- 1.7.9.5