Update to work with WotLK
p3lim-52096 [08-10-08 - 18:58]
Update to work with WotLK
git-svn-id: svn://svn.wowinterface.com/pMinimap-54/trunk@12 ae24c21f-2f0c-4c94-9256-0092abe71e0d
diff --git a/pMinimap/pMinimap.lua b/pMinimap/pMinimap.lua
index f31621b..332ef8a 100644
--- a/pMinimap/pMinimap.lua
+++ b/pMinimap/pMinimap.lua
@@ -36,6 +36,7 @@ function GetMinimapShape() return "SQUARE" end
-- addon fluff
local _G = getfenv(0)
+local wotlk = select(4, GetBuildInfo()) >= 3e4
local addon = CreateFrame("Frame", "pMinimap", Minimap)
local frames = {
MinimapBorder,
@@ -45,7 +46,6 @@ local frames = {
MinimapZoomOut,
MinimapZoneText,
MinimapZoneTextButton,
- MiniMapTrackingBorder,
MiniMapTrackingBackground,
MiniMapBattlefieldBorder,
MiniMapMeetingStoneFrame,
@@ -67,6 +67,13 @@ function addon.PLAYER_LOGIN(self)
end
end)
+ if(wotlk) then
+ MiniMapTrackingIconOverlay:SetAlpha(0)
+ MiniMapTrackingButtonBorder:Hide()
+ else
+ MiniMapTrackingBorder:Hide()
+ end
+
MiniMapTrackingIcon:SetTexCoord(0.065, 0.935, 0.065, 0.935) -- bloody hell
MiniMapTracking:SetParent(Minimap)
MiniMapTracking:ClearAllPoints()