Objective Tracker
So Zork wrote a cool addon "rObjectiveTrackerMover"
The problem is me and another guy are having a bug where the ObjectiveTracker jumps in combat around. Weirdly, its not in every combat, I feel like its random, I couldn't figure how I recreate the problem. Zork said he had problems before, he said it was fixed but the Issue is still sometimes occurring so I wanted to ask this smart forum. This is basicly the important part of the code, I think Lua Code:
I think the problem is something with "If InCombatLockdown()" so my question is, how do I fix this bug of the ObjectiveTracker moving back to its position in Combat. |
Lua Code:
This is the code I have been using to relocate my objective tracker. No need for any events or anything; ObjectiveTrackerFrame exists at file scope; furthermore I haven't had ANY issues with taint via setting ClearAllPoints and SetPoint to a dummy function. Obviously you are interested in the SetPoint line that has position arguments. |
I would not suggest to use either of the code. The first one simply doesn't handle the SetPoint hooks, which happens when boss or arena frames appera, or when you enable/disable the Blizzard side bars. The second one is a taint hazzard.
Try this code: Lua Code:
Also keep that in mind if the original parent of the frame aka the "MinimapCluster" is not in it's original position, then the client won't be able to bypass secure code for it's children frame aka the "ObjectiveTrackerFrame" and you won't be able to click on the quest items on the frame. The only solution is that to reset the "MinimapCluster", or to use another 3rd party Minimap addon, which you can reposition securely/properly. |
How far is the 2nd code from Clamsoda a taint hazzard?
The Quests are clickable and the quest tracker has the correct position |
You're calling :SetPoint() in your :SetPoint() hook, Resike. That'll make an infinite loop.
In WFWW, I create a container frame, parent the objective tracker to that, and move/size the container. Then I do this, to avoid the recursive :SetPoint call... Lua Code:
|
Quote:
|
Quote:
|
Quote:
|
All times are GMT -6. The time now is 01:00 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI