Thread Tools Display Modes
03-03-10, 01:11 AM   #1
Mairna
A Deviate Faerie Dragon
Premium Member
Join Date: Dec 2009
Posts: 18
GetPlayerBearingFunction() Request...

Hi, since i installed the nUI minimap plugin (the one that moves the minimap from the center of the dashboard over to the right panel so that it is not covered up by the Focus), I have been having trouble with both TomTom's and Zygor's waypointing arrows not showing the correct distance to waypoints. I have found that if I disable this nUI plugin on per-character basis, this problem does not occur. My main character is a hunter, and I want to see her minimap in the right panel of nUI and the focus in the center of the dashboard, so I have left the nUI minimap plugin enabled just for her. I want my other characters to be able to use the TomTom and Zygor waypoint arrows, so I have disabled the nUI minimap plugin so that the waypoint arrows will show the proper distance to the waypoint, at least for now.

After doing some research online, I found a thread by TomTom's author, explaining that this waypoint arrow issue is caused by any minimap addon that re-parents the player arrow. The author suggested that I request that you add a GetPlayerBearingFunction() to the nUI minimap plugin that contains the following code:

function GetPlayerBearing()
local obj; -- Remains an upvalue
do
local t = {Minimap:GetChildren()}; -- Becomes garbage
for k, v in pairs(t) do
if v:IsObjectType("Model") and not v:GetName() then
local model = v:GetModel():lower()
if model:match("interface\\minimap\\minimaparrow") then
obj = v; break;
end
end
end
end
if not obj then return; end

-- If we've found what we were looking for, rewrite function to skip the search next time.
GetPlayerBearing = function()
if GetCVar("rotateMinimap") ~= "0" then
return (MiniMapCompassRing:GetFacing() * -1)
else
return obj:GetFacing();
end
end
return GetPlayerBearing();
end

The full text of the author's comment regarding this issue may be found at: http://www.wowinterface.com/download...ge=62#comments

I hope that you will somehow be able to implement this function into the nUI minimap plugin, and distribute a patch or fix for this particular plugin. Until then, I will disable the nUI minimap plugin on my characters that need the waypoint arrows to show the correct distance to the waypoint. Thanks again!

Last edited by Mairna : 03-03-10 at 01:15 AM.
 
03-03-10, 05:06 AM   #2
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
I will get this patch in place. If you don't see it by this weekend, please remind me.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
03-03-10, 06:26 PM   #3
Mairna
A Deviate Faerie Dragon
Premium Member
Join Date: Dec 2009
Posts: 18
Thank you very much !!!
 
03-08-10, 07:51 AM   #4
Mairna
A Deviate Faerie Dragon
Premium Member
Join Date: Dec 2009
Posts: 18
Patch for nUI Minimap Plugin?

Hi, you wanted me to remind you about the GetPlayBearing() Function patch for the nUI InfoPanel Minimap plugin. Have you had chance to get that function working yet? I know how busy you've been, so I'm sure you'll be getting around to it soon. Thanks!
 
03-08-10, 08:42 AM   #5
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
No, I got caught up in trying to resolve the key binding bug in nUI this weekend and didn't get to it. I will, however, get an update to the minimap out today to address that for you.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
03-08-10, 10:11 PM   #6
Mairna
A Deviate Faerie Dragon
Premium Member
Join Date: Dec 2009
Posts: 18
Minimap Patch...

Tyvm !!!
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Support » nUI: Technical Support » GetPlayerBearingFunction() Request...


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off