05-31-10, 07:50 PM | #1 |
A fix? WorldMapBlobFrame taint issues.
I think i have come up with a fix for the infamous worldmapblobframe. Now the only problem with it is that when you leave combat it will automaticlly turn on quest tracking on the WorldMap. I always have mine on so to me this is not a big issue. I think somehow one could add a GetChecked to the begining and store a variable then use the variable to make the exiting combat function load your checked state accordingly. But for the most part this will fix any of the WorldMapBlobFrame issues when it comes to toggling the worldmap in combat for any reason via an addon.
lua Code:
|
|
05-31-10, 07:58 PM | #2 |
Also note that there is an issue if you go into combat with the worldmap in the large mode... not sure yet how to force small mode in combat...
|
|
06-05-10, 11:06 AM | #3 |
Here is a final version, you would of course have to setup the variables part but otherwise cut and paste. Full functioning, what it does is it turns off all the quest tracking and objectives on the WorldMap when you enter combat then turns it all back on according to what you had selected before going into combat. It will also close the Map apon entering combat, this was done so that if you had the map in fullsize mode it would close and resize it to small mode so that you could then reopen while in combat if need be.
This will fix taint issues in DHUD, PocketPlot and others and of course can be found in the GrimUI to fix my own worldmap button problem In theory should fix any taint issues with any addons call to the worldmap. Should alleviate tainting on addons calling worldmap frame for position functions. In theory... lua Code:
|
|
06-05-10, 02:02 PM | #4 |
You do know that Mapster has a workaround, which looks a bit like yours ?
|
|
06-05-10, 02:29 PM | #5 |
really? i did not but that does not surprise me. i found the problem in a lot of addons when trying to figure out why it was happening with my own code... eventually i wrote this workaround which should work with any addon. should mind you.
I did think one thing that could be added is to check weather or not the full size quest view is open or not and decide about closing in combat based on that. the only reason the force close on combat enter was to compensate for people who might have that full view version open when they go into combat. If you dont force close and toggle to the small view when its reopened after combat its all kinds of funny. That though is the only change i think i would make to this... i imagine what is in mapster might be a bit better. If you really wanted to dig into the bliz code there might be an even better way that allows you to still have the quest objectives and such open since in making this i noticed it wasnt the frame itself being open but rather the quest objectives locations on the worldmap frame itself being updated is what causes the taint. Im not quite that advanced yet but maybe some secure code for opening the worldmap would be better in fact it was referenced to me at one point... one thing i know about the secure code is :Show and :Hide fire hmmmm.... interesting so it just dawned on me that using a secure toggle for show hide fires an x/y calculation error but if you toggle the map out of combat via some normal nonsecure method IE ShowUIPanel or Toggle or how you want to do it that it will then work useing the secure button SOOO maybe an easier and better way would be to create the secure toggle function then on player entering world have it do the show hide on the map real quick as the code does currently and then you would technically be able to use the secure toggle method with no problems. i will test this and see if it works but anyhow for now this is here for anyone whos interested edit - oh it dawned on me to why i cant use or at lest i have not figured out how to use the secure method... it requires a secure frame be overlayed on the minimap and when i do this i lose the tooltips for minimap POI's... im sure there is a work around for that to but... It would work if you were just making a button and not overlaying rightclick on the minimap as i have done... Last edited by Grimsin : 06-05-10 at 02:36 PM. |
|
WoWInterface » Developer Discussions » Lua/XML Help » A fix? WorldMapBlobFrame taint issues. |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|