From f3ae3bd3cc4b73d96688433bd2810306b4c78e57 Mon Sep 17 00:00:00 2001 From: ackis Date: Wed, 4 Feb 2009 18:56:58 +0000 Subject: [PATCH] Add some code in allowing the main tooltip to be repositioned. --- ARLFrame.lua | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/ARLFrame.lua b/ARLFrame.lua index 6141447..9e09053 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -275,7 +275,13 @@ local function SetSortString(recipeSkill, recStr) end -function addon:SetupMap() +-- Description: +-- Expected result: +-- Input: +-- Output: + +--/script AckisRecipeList:SetupMiniMap() +function addon:SetupMiniMap() -- Nuke all the icons on the mini-map Astrolabe:RemoveAllMinimapIcons() @@ -301,14 +307,17 @@ function addon:SetupMap() --@debug@ addon:Print("Adding vendor ID: " .. k .. " to the mini-map.") --@end-debug@ - -- continent continent 0 is the world of Azeroth, 1 is Kalimdor, 2 is Eastern Continent, 3 is Outland + -- continent continent 0 is the world of Azeroth, 1 is Kalimdor, 2 is Eastern Continent, 3 is Outland, 4 is northrend -- zone http://www.wowwiki.com/LocalizedMapZones local button = CreateFrame("Button", "TestButtonARL") button:SetWidth(10) button:SetHeight(10) button:SetText("F") - --Astrolabe:PlaceIconOnMinimap( icon, continent, zone, vendorDB[k]["Coordx"], vendorDB[k]["Coordy"]) + + if (vendorDB[k]["Location"] == "Dalaran") then + Astrolabe:PlaceIconOnMinimap(button,4,3,vendorDB[k]["Coordx"], vendorDB[k]["Coordy"]) + end end end -- 1.7.9.5