changeset 12:5be6dcc0f0cd

Fix for bug on LOD of blizzard's world map Added tooltip to ItemRef
author Vynn <mischivin@gmail.com>
date Fri, 09 Dec 2016 14:59:12 -0500
parents a9acaf28b21a
children 237c9958b251
files WhistleMaster.lua
diffstat 1 files changed, 4 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/WhistleMaster.lua	Tue Nov 08 01:33:28 2016 -0500
+++ b/WhistleMaster.lua	Fri Dec 09 14:59:12 2016 -0500
@@ -14,21 +14,6 @@
 
 WM_ClosestNode = nil
 
---[[local Rotate = WhistleLoc:CreateTexture()
-Rotate:SetTexture("Interface\minimap\UI-Minimap-Ping-Rotate")
-Rotate:SetPoint("CENTER")
-Rotate:SetSize(48, 48)
-Rotate:SetVertexColor(0.9, 0.1, 0.1)
-
-local Ring = WhistleLoc:CreateTexture()
-Ring:SetTexture("Interface\minimap\UI-Minimap-Ping-Center")
-Ring:SetPoint("CENTER")
-Ring:SetSize(32, 32)
-Ring:SetVertexColor(0.9, 0.1, 0.1)]]
-
-
-
-
 local function GetDistance(nX, nY)
 	local pX, pY = GetPlayerMapPosition("player")
 
@@ -81,7 +66,7 @@
 	if ( (mapVisible) and not WorldMapFrame:IsVisible() ) then
  		mapVisible = false
  	end
- 	if (event == "VARIABLES_LOADED") then
+ 	if (event == "PLAYER_ENTERING_WORLD") then
 		WorldMapFrame:Show()
 		WorldMapFrame:Hide()
  		UpdateWhistleMaster()
@@ -91,6 +76,7 @@
 local WhistleMaster = CreateFrame("FRAME", "WhistleMaster", WorldMapPOIFrame)
 WhistleMaster:RegisterEvent("WORLD_MAP_UPDATE")
 WhistleMaster:RegisterEvent("VARIABLES_LOADED")
+WhistleMaster:RegisterEvent("PLAYER_ENTERING_WORLD")
 WhistleMaster:SetScript("OnEvent", EventHandler)
 
 local cleared = true
@@ -117,4 +103,6 @@
  
 GameTooltip:HookScript("OnTooltipCleared", OnTooltipCleared)
 GameTooltip:HookScript("OnTooltipSetItem", OnTooltipSetItem)
+ItemRefTooltip:HookScript("OnTooltipCleared", OnTooltipCleared)
+ItemRefTooltip:HookScript("OnTooltipSetItem", OnTooltipSetItem)