World Map Icon Addon Update #2
Hello all!
I've popped in from time to time to get some help with a custom addon you guys wrote for me a couple years ago. The function is mainly to hide flight path icons on the world map (not the flight map), though it tends to catch a few other icons too, such as cities/towns, PvP vendors, even Sentinax and similar things. Unfortunately since 8.0 it doesn't work anymore, not even the macro I have for identifying Map POIs. I'm certainly no addon developer (though I really should learn the basics at this stage so I don't have to keep pestering you all), but you guys have been such tremendous help to me in the past. If you have the time, mind helping an old fan out to update his addon for the expansion launch? :) This is the current code: Code:
hooksecurefunc("WorldMapFrame_Update", function() Code:
/run for i = 1, GetNumMapLandmarks() do local _, name, _, textureIndex = GetMapLandmarkInfo(i) print(i, textureIndex, name) end |
Try this:
Lua Code:
It's not the best solution, but it's pretty much the only way we can get the correct provider until Blizzard improves the data provider system. |
That didn't seem to work, I'm afraid. It's quite different from the older code; no mention of landmarks or POIs. Have they changed the functionality completely?
|
The whole map system was rewritten from scratch in 8.0, so yes.
Any icon on the map is provided by "data providers", there's one for each type, and the example above is for removing the flightpoint provider. |
Interesting. I do know they've switched to higher resolution maps where they can. I suppose it must've been part of the same process. What do you mean by Blizzard needing to improve the data provider system?
While it didn't work for me for now, is there a list of data providers so I could add more stuff (if I have enough know-how) to the code? Would something akin to the old macro be able to function in the new system? As a sidenote, the old code also hid Bonus Objectives, like the ones you'd see in Draenor. Are they still separate from the other icons? |
Quote:
Quote:
|
Quote:
|
Quote:
Have fun! Their new map system is god awful. I've been going over it and it's one convoluted mess. |
Quote:
I can pick out most of them, but I don't know what all of the providers are referring to. I guess it would take some experimenting. (Unless I'm misunderstanding it and they're all hiding under AreaPOIDataProvider) Some of them seem to have an OnShow and OnHide function, and sometimes there's a Mixin section and a Pin section, though I can't say I know what either of them do. I think this is still quite a bit over my head. I can somewhat identify certain icons (or their respective data provider) that I wish to hide, but I wouldn't even know where to begin with the coding. If any of you addon coders or enthusiasts out there want to take a crack at it, I'd be much appreciative. :) |
All times are GMT -6. The time now is 11:12 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI