And I got the WoD map working too. The nodes start at "TaxiButton1" and keep increasing from there.
If you don't mind, I might include this in my own addon as well. It seems like a handy feature to keep refining.
Lua Code:
-------------------
-- TaxiFrame in WoD
local hooked = 0
TaxiFrame:HookScript("OnShow", function()
local i = 1
local button = _G["TaxiButton"..i]
while (button) do
button:SetShown(true)
if (i > hooked) then
hooked = hooked + 1
button.Hide = button.Show
end
i = i + 1
button = _G["TaxiButton"..i]
end
end)
TaxiFrame:HookScript("OnHide", function()
local i = 1
local button = _G["TaxiButton"..i]
while (button) do
button:SetShown(false)
i = i + 1
button = _G["TaxiButton"..i]
end
end)