Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(1 Kb)
Download
Updated: 10-14-14 02:34 AM
Pictures
File Info
Compatibility:
Warlords of Draenor Pre-Patch (6.0.2)
Siege of Orgrimmar (5.4)
Escalation (5.3)
Updated:10-14-14 02:34 AM
Created:11-03-08 07:22 PM
Downloads:21,067
Favorites:90
MD5:

MapCoords  Popular! (More than 5000 hits)

Version: 1.1
by: SDPhantom [More]

Mapcoords displays your current coordinates on the minimap.

v1.1 (2009-05-08)
Optimized hook code

v1.0 (2007-10-23)
Initial version
Post A Reply Comment Options
Unread 12-12-09, 06:40 PM  
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1067
File comments: 70
Uploads: 17
Originally posted by Ash-rak
Some Changes that i have made. I think it looks better.

Original:
MapCoordsMinimapText:SetPoint("TOP",Minimap,"TOP",0,-16);
Changed:
MapCoordsMinimapText:SetPoint("BOTTOM",Minimap,"BOTTOM",0,12);

Original:
MapCoordsMinimapText:SetText(string.format("%0.2f,%0.2f",x*100,y*100));
Changed:
MapCoordsMinimapText:SetText(string.format("%0d,%0d",x*100,y*100));

Hidiho Althena of Wrathbringer
The first one was just a matter of personal preference.
I stuck it wherever it would be out of the way and didn't look too cluttered.
Everyone is free to change it to wherever they wish to have it.

The second one was to include the decimal precision to some point. A lot of the older coordinate addons have no decimal precision while some newer ones only have it to 1 place. The example original code displays a decimal precision of 2 places which is adequate enough to measure a character's movement down to a single step. Adjusting this precision is as easy as changing the "2" in "%0.2f" to how many decimal places you want it to display.
__________________
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
SDPhantom is offline Report comment to moderator  
Reply With Quote
Unread 12-11-09, 07:46 AM  
Althena
A Kobold Labourer
 
Althena's Avatar

Forum posts: 0
File comments: 8
Uploads: 0
Some Changes that i have made. I think it looks better.

Original:
MapCoordsMinimapText:SetPoint("TOP",Minimap,"TOP",0,-16);
Changed:
MapCoordsMinimapText:SetPoint("BOTTOM",Minimap,"BOTTOM",0,12);

Original:
MapCoordsMinimapText:SetText(string.format("%0.2f,%0.2f",x*100,y*100));
Changed:
MapCoordsMinimapText:SetText(string.format("%0d,%0d",x*100,y*100));

Hidiho Althena of Wrathbringer
__________________
Althena is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: