mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 04:00:02 +00:00
panel: add tbc compatibility for minimap zone text
This commit is contained in:
+3
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user