World Map Icon Addon Request!
Hello guys :)
I was here a couple of years ago requesting an addon to hide certain icons from the world map. In particular, the flight path icon, because it would show up on a map before I've discovered the area. Too spoileriffic to how I want to explore, and I'm kind of a map purist anyway. :P I like the hand-drawn style of the fantasy maps and I want to keep them uncluttered! You guys were a huge help; I have no experience with addon coding at all and you made one that solved my exact problem! I even got a macro to find the IDs for future icons I want to hide. (Thanks again, Phanx!) All was well. I'll refer you to the previous thread for reference: http://www.wowinterface.com/forums/s...ad.php?t=44204 Unfortunately now with 7.0 the addon doesn't seem to work any longer. All the original icons I hid are back (Horde/Alliance/Neutral flight paths, city icon, town icon, honor/conquest vendors etc), and they seem to have added giant buttons for bosses too, which used to be toggleable in the default UI. They must have outright changed the functionality of the icons, because the macro to reveal POIs now turns up a list of nil. Is it still possible to do the same thing it used to? And if so, can any of you help me out with a new code and macro? :) |
Quote:
Code:
local _, name, _, textureIndex = GetMapLandmarkInfo(i) |
Quote:
Code:
LE_MAP_LANDMARK_TYPE_NORMAL |
Quote:
While I'm at it, I want to take this a step further and see if I can hide the newer icons, such as the Bonus Objective icon, the new 'Quest Available' icon (there is an older POI version, too, and that I can hide), or the Boss icon (which leads to the dungeon journal if clicked). I had a look at http://wow.gamepedia.com/API_GetMapLandmarkInfo and I believe these count as Object icons rather than POI icons. Examples of these: Bonus Objectives and Quest Available: http://i.imgur.com/vKKVavd.jpg Boss Icon (was taken before hiding the lesser icons): http://i.imgur.com/ybHp47o.jpg The object icons don't show up in the getlandmarks macro either. Are these possible to hide at all? |
To get rid of the bonus objectives you can use the following code:
Code:
hooksecurefunc("WorldMap_UpdateQuestBonusObjectives", function() SET showBosses "1" |
Quote:
Even when logging out from a dungeon, the CVar still has a 0. So either it resets it to 0 upon logout, or dungeons have a different workaround while you're in them. Edit: Upon further tries it doesn't seem to be bound by CVar 0 or 1. On both settings I've had the icons come and go, so there must be other factors in play. |
All times are GMT -6. The time now is 10:10 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI