From 11a495e3a9f596110a1bbfae18acfcef7bf02929 Mon Sep 17 00:00:00 2001 From: ackis Date: Thu, 5 Feb 2009 20:15:37 +0000 Subject: [PATCH] Dry-code some stuff to make it work with cauldron... what the hell is cauldron? --- ARLFrame.lua | 12 +++++++++++- AckisRecipeList.toc | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ARLFrame.lua b/ARLFrame.lua index e447674..fa50558 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -1166,6 +1166,13 @@ function addon:ShowScanButton() addon.ScanButton:SetPoint("RIGHT", ATSWOptionsButton, "LEFT", 0, 0) addon.ScanButton:SetHeight(ATSWOptionsButton:GetHeight()) addon.ScanButton:SetWidth(90) + -- Anchor to Cauldron + elseif (CauldronFrame) then + addon.ScanButton:SetParent(CauldronFrame) + addon.ScanButton:ClearAllPoints() + addon.ScanButton:SetPoint("TOP", CauldronFrame, "BOTTOM", 0, 0) + --addon.ScanButton:SetHeight(ATSWOptionsButton:GetHeight()) + addon.ScanButton:SetWidth(90) -- Anchor to trade window else addon.ScanButton:SetParent(TradeSkillFrame) @@ -3359,11 +3366,14 @@ function addon:CreateFrame( local opts = self.db.profile.frameopts - if ( opts.anchorTo == "" ) then + if (opts.anchorTo == "") then -- no values yet, clamp to whatever frame is appropriate if (ATSWFrame) then -- Anchor frame to ATSW addon.Frame:SetPoint("CENTER", ATSWFrame, "CENTER", 490, 0) + elseif (CauldronFrame) then + -- Anchor frame to Cauldron + addon.Frame:SetPoint("CENTER", CauldronFrame, "CENTER", 490, 0) elseif (Skillet) then -- Anchor frame to Skillet addon.Frame:SetPoint("CENTER", SkilletFrame, "CENTER", 468, 0) diff --git a/AckisRecipeList.toc b/AckisRecipeList.toc index f07f7f5..861de9c 100644 --- a/AckisRecipeList.toc +++ b/AckisRecipeList.toc @@ -30,7 +30,7 @@ ## X-Feedback: http://wow.curse.com/downloads/wow-addons/details/arl.aspx ## Dependencies: -## OptionalDeps: Ace3, Astrolabe, LibAboutPanel, LibBetterBlizzOptions-1.0, LibBabble-Zone-3.0, LibBabble-Faction-3.0, LibBabble-Boss-3.0, LibSharedMedia-3.0, Skillet, ATSW, Manufac +## OptionalDeps: Ace3, Astrolabe, LibAboutPanel, LibBetterBlizzOptions-1.0, LibBabble-Zone-3.0, LibBabble-Faction-3.0, LibBabble-Boss-3.0, LibSharedMedia-3.0, Skillet, ATSW, Manufac, Cauldron ## DefaultState: Enabled ## LoadOnDemand: 0 -- 1.7.9.5