Commit 04517a5a authored by Robin Schoonover's avatar Robin Schoonover

Add Map ID to the world map.

parent 981b643c
Pipeline #189 failed with stages
local addon_name, addon = ...
--
-- Quest Frame
--
hooksecurefunc("QuestMapFrame_UpdateAll", function()
for i, frame in ipairs(QuestMapFrame.QuestsFrame.Contents.Titles) do
if not frame._alltheids_hooked then
......@@ -15,6 +19,10 @@ hooksecurefunc("QuestMapFrame_UpdateAll", function()
end
end)
--
-- Reputation Frame
--
hooksecurefunc("ReputationFrame_Update", function()
if ReputationDetailFrame:IsShown() then
local selected = GetSelectedFaction()
......@@ -22,3 +30,23 @@ hooksecurefunc("ReputationFrame_Update", function()
addon:TextAppendID(ReputationDetailFactionDescription, "Faction", factionID)
end
end)
--
-- World Map
--
hooksecurefunc("WorldMapFrame_UpdateMap", function()
local frame = WorldMapDetailFrame
local display = frame._alltheid_display
if not frame._alltheid_display then
display = frame:CreateFontString(nil, "OVERLAY")
frame._alltheid_display = display
display:SetFontObject(GameFontHighlightLeft)
display:SetJustifyH("LEFT")
display:SetHeight(24)
display:SetWidth(128)
display:SetPoint("BOTTOMLEFT")
end
display:SetText(addon:IDLine("Map", GetCurrentMapAreaID()))
end)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment