Download
(17 Kb)
Download
Updated: 09-09-13 06:03 AM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Updated:09-09-13 06:03 AM
Created:06-25-13 08:42 AM
Downloads:683
Favorites:12
MD5:
Categories:Combat Mods, Graphic UI Mods, Map, Coords, Compasses, PvP, Arena, BattleGrounds, Raid Mods
5.4
Hard Yards
Version: 1.04
by: Taraezor [More]
Description
Display the distance to your target.

Why Yards are so Hard to Calculate
A limitation for players is the inability to accurately measure a distance. The best you can hope for is a range of values. Hard Yards is the most accurate at estimating distance and does so for a full range of target types.

Features
* Best possible range estimation to a target
* Variety of target types supported
* Moveable
* Resizable
* Choice of borders
* Text colours are up to you

How To Use
After entering the world, type '/hy opt' in chat to bring up the options panel. Hard Yards is ready 'as is' but you might like to change the border or alter the text colours.

How To Move Hard Yards
First check the Options Panel to ensure that HY is not locked in place. Now place your mouse over the centre area (doesn't have to be the exact centre). Left click, hold down and move, lift up when done. Finished!

If You Like Hard Yards
You might also like to check Taraezor's Cool Aid AddOn, the essential aid to managing your cooldowns! Taraezor's main AddOn is We Don't Wipe, an excellent DPS enhancer. WDW has a huge update on the way which you will surely want to check out.

Updates & Favourites
You can make Hard Yards a Favourite and get an automatic notification (PM) or email (enabled through your profile) when I update it.

Cookies, Beer & Donations
It is all about the Cookies & Beer although, and don't let Gallywix know about this, a "thank you" in the comments section fuels my programming appetite and is very much appreciated. And then, you could cut straight to Click here to lend your support! because as Gallywix would say... "time is money, friend".
v1.04
====
* Version bump for Patch 5.4

v1.03
====
* When not shown, was still triggering the 'move' script
* Moved some local lists as causing memory usage to rapidly climb. Gets caught in garbage collection but would be a worry for players micro-managing computer performance.
* Localised almost everything. Achieved a large cpu performance boost.
* Fixed bug with moving Hard Yards too far from the centre of the screen
* Changing Talents now no longer gets positions, colours etc muddled

v1.02
====
* Sometimes during a first time use of Hard Yards there is a long delay before the WoW server recognises we are trying to move the Hard Yards frame. Mysterious. Suspect that it is because the frame hot spot is right on top of our toon. Default position is now offset right and down a bit, clear of our toon. Seems to help.
* Sometimes Hard Yards seemed to forget the last place to which it was moved. Mysterious. To work around this I (1) removed some dead code left over from a copy/paste from one of my other AddOns, (2) explicitly (rather than assuming the default) link the relative position of the Hard Yards frame to the main game window, (3) the previous fix now forces an explicit default location rather than assuming 0,0.
* A better calculation of the 'hot' region dimensions for enabling moving. Benefits really small text sizes.
* Corrected the Class Specialization English language lookup table
* Now handles players with no specialisation (i.e. sub level 10 and any player who has unlearnt or not yet learnt one)
* We Dont Wipe AddOn support
* Show/Hide & on/off options properly differentiated and fixed
* Small change to help/about panels

v1.01
====
Sloppy naming of a variable borrowed from another of my AddOns caused fatal runtime error.
Post A Reply Comment Options
Old 06-26-13, 08:05 AM  
Taraezor
A Murloc Raider
 
Taraezor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 55
Uploads: 10
Originally Posted by semlar
Just throws an error on login.
Code:
Message: Interface\AddOns\HardYards\Core.lua:526: attempt to index field '?' (a nil value)
Count: 1
Stack: Interface\AddOns\HardYards\Core.lua:526: in function `RepositionFrames'
Interface\AddOns\HardYards\Core.lua:376: in function `?'
Interface\AddOns\HardYards\Core.lua:421: in function <Interface\AddOns\HardYards\Core.lua:420>
Probably "ca_currentSpec" should be "hy_currentSpec", since it isn't defined anywhere.

It also probably doesn't need to tell you that you can move it every time you hover over the text.
Many thanks for that. Uploaded the fix!

About the chat warning. A long winded response sorry.

Presently, putting the mouse over the Hard Yards frame is not enough for moving. You must put the mouse near the centre. That's why I have the visible/audible notifications. If Hard Yards is sized very small then locating the centre can be hard.

Conversely, if I enable the entire frame then at large sizes some players might complain about accidentally dragging (just turn moving off!) or an inability to mouse through to the mob/player below. This second reason is the main reason for having a small region within the frame.

Next update: I have already reworked the calculation so that at smaller text sizes the 'sweet spot' for moving is larger and at extreme sizes it is smaller. Not uploaded as players get annoyed with trivial changes like this. I'll wait for an actual bug fix or enhancement.
Last edited by Taraezor : 06-28-13 at 07:38 PM.
Taraezor is offline Report comment to moderator  
Reply With Quote
Old 06-26-13, 05:09 AM  
semlar
A Firelord
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 459
File comments: 51
Uploads: 14
Just throws an error on login.
Code:
Message: Interface\AddOns\HardYards\Core.lua:526: attempt to index field '?' (a nil value)
Count: 1
Stack: Interface\AddOns\HardYards\Core.lua:526: in function `RepositionFrames'
Interface\AddOns\HardYards\Core.lua:376: in function `?'
Interface\AddOns\HardYards\Core.lua:421: in function <Interface\AddOns\HardYards\Core.lua:420>
Probably "ca_currentSpec" should be "hy_currentSpec", since it isn't defined anywhere.

It also probably doesn't need to tell you that you can move it every time you hover over the text.
Last edited by semlar : 06-26-13 at 05:30 AM.
semlar is online now Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.