panel: add tbc compatibility for minimap zone text

This commit is contained in:
Artur Morozov
2019-06-16 14:55:59 +02:00
committed by shagu
parent 3232e10daa
commit 5082a7deb3
3 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -397,8 +397,9 @@ pfUI:RegisterModule("panel", "vanilla:tbc", function()
do -- Zone
local widget = CreateFrame("Frame", "pfPanelWidgetZone", UIParent)
widget:RegisterEvent("PLAYER_ENTERING_WORLD")
widget:RegisterEvent("MINIMAP_ZONE_CHANGED")
for _,event in pairs(EVENTS_MINIMAP_ZONE_UPDATE) do
widget:RegisterEvent(event)
end
widget.Tooltip = function()
local real = GetRealZoneText()
local sub = GetSubZoneText()