Thread Tools Display Modes
11-11-10, 11:07 PM   #1
Karquile
A Deviate Faerie Dragon
 
Karquile's Avatar
Join Date: Jan 2005
Posts: 11
Decimal Degree Patch

Hi - I am kind of a precision flying buff. I use Carbonite and FlightHUD to navigate between objectives. I enjoy being able to launch in Sholazar and set a course for Howling Fjord and get a cup of coffee.

To help with my obsession, I made a 1 line patch that displays tenths of a degree in the Direction text above the waypoint arrow if the delta is less than 1 degree. In the current 4.012 version this is at line 29688:

Code:
str=diD<1 and format("%s %.1f deg",str,diD) or format("%s %d deg",str,diD)
Here is the result:



I have no idea whether you or anyone else finds this useful or interesting, but if you do, it's yours.
 
11-12-10, 03:49 AM   #2
Jigain
A Molten Giant
 
Jigain's Avatar
Join Date: Jul 2009
Posts: 732
Any chance you could include a block of code, to make the location easier to find for those without a program showing the line numbers?
__________________


 
11-12-10, 09:30 AM   #3
Karquile
A Deviate Faerie Dragon
 
Karquile's Avatar
Join Date: Jan 2005
Posts: 11
Originally Posted by Jigain View Post
Any chance you could include a block of code, to make the location easier to find for those without a program showing the line numbers?
On Windows, visit here: http://www.gena01.com/win32pad/
(you'll never go back to vanilla Notepad).

The patch location is in the Nx.HUD:Upd function definition:
Code:
local str=format("%s%d yds",col2,dis)
if gop["HUDShowDir"] then
str=diD<1 and format("%s %.1f deg",str,diD) or format("%s %d deg",str,diD)
end
if map.PlS>.1 then
 
11-12-10, 02:26 PM   #4
carboniteaddon
A Pyroguard Emberseer
 
carboniteaddon's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2008
Posts: 2,245
Haavok liked that, so I changed the format string when <1 degree.
Added .1 degree display of tiny angles when "Show direction text" tracking arrow option is on.
This will be in 4.03 for Cataclysm.
__________________
faatal
 
11-12-10, 02:58 PM   #5
Karquile
A Deviate Faerie Dragon
 
Karquile's Avatar
Join Date: Jan 2005
Posts: 11
Originally Posted by carboniteaddon View Post
Haavok liked that, so I changed the format string when <1 degree.
Added .1 degree display of tiny angles when "Show direction text" tracking arrow option is on.
This will be in 4.03 for Cataclysm.
Awesome thanks!
 
 

WoWInterface » Featured Projects » Carbonite » Carbonite Archive » Decimal Degree Patch

Thread Tools
Display Modes

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