# HG changeset patch # User Vynn # Date 1481313552 18000 # Node ID 5be6dcc0f0cdc561f78572e4a0d3037ac33cc19b # Parent a9acaf28b21a6759f6371bbfa79c18047a8d8dd0 Fix for bug on LOD of blizzard's world map Added tooltip to ItemRef diff -r a9acaf28b21a -r 5be6dcc0f0cd WhistleMaster.lua --- 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)