From 88ae6b130c6559e5abd311915f514371ee767a62 Mon Sep 17 00:00:00 2001 From: ackis Date: Fri, 24 Oct 2008 16:28:50 +0000 Subject: [PATCH] Fix Skillet issues (add return stuff, thanks smrt ppl) and align the frames --- ARLFrame.lua | 4 ++++ AckisRecipeList.lua | 13 +++++++------ AckisRecipeList.toc | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ARLFrame.lua b/ARLFrame.lua index 36cceeb..ae090e0 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -3008,6 +3008,10 @@ function addon:CreateFrame( addon.Frame:SetPoint("CENTER", ATSWFrame, "CENTER", 490, 0) + elseif (Skillet) then + + addon.Frame:SetPoint("CENTER", SkilletFrame, "CENTER", 468, 0) + else addon.Frame:SetPoint("CENTER", UIParent, "CENTER", 0, 0) diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index 70f4ad7..f352c3c 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -280,14 +280,15 @@ function addon:OnEnable() end -- If we're using Skillet, use Skillet's API to work with getting tradeskills - if (Skillet) and (Skillet.GetNumTradeSkills) and - (Skillet.GetTradeSkillLine) and (Skillet.GetTradeSkillInfo) then + if (Skillet) and (Skillet.GetNumTradeSkills) and + (Skillet.GetTradeSkillLine) and (Skillet.GetTradeSkillInfo) and + (Skillet.GetTradeSkillRecipeLink) then self:Print("Enabling Skillet advanced features.") - GetNumTradeSkills = function(...) Skillet:GetNumTradeSkills(...) end - GetTradeSkillLine = function(...) Skillet:GetTradeSkillLine(...) end - GetTradeSkillInfo = function(...) Skillet:GetTradeSkillInfo(...) end - GetTradeSkillRecipeLink = function(...) Skillet:GetTradeSkillRecipeLink(...) end + GetNumTradeSkills = function(...) return Skillet:GetNumTradeSkills(...) end + GetTradeSkillLine = function(...) return Skillet:GetTradeSkillLine(...) end + GetTradeSkillInfo = function(...) return Skillet:GetTradeSkillInfo(...) end + GetTradeSkillRecipeLink = function(...) return Skillet:GetTradeSkillRecipeLink(...) end end diff --git a/AckisRecipeList.toc b/AckisRecipeList.toc index 7b3d58f..2d10182 100644 --- a/AckisRecipeList.toc +++ b/AckisRecipeList.toc @@ -18,7 +18,7 @@ ## X-Donate: Donate a few bucks/hours at your local animal shelter, or send me UDE Point codes, a Murky Code, or an account upgrade certificate. ## Interface: 30000 -## Version: Beta 6 r954 +## Version: Beta 6 r958 ## X-Revision: $Rev$ ## X-Date: $Date$ -- 1.7.9.5