Log in to ZYGOR
Log in with social media
OR
Log in with Zygor account

Announcement

Collapse
No announcement yet.

Decimal degrees patch

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Decimal degrees patch

    Hi and thanks again for these great guides.

    I like to use Zygor's built-in waypoint arrow, leaving Carbonite's arrow free for secondary targets. But I am a bit of a precision flying buff and I love decimal degree readouts. So I made the following patch to ZygorGuidesViewer\Pointer.lua (the current version) starting at line 1345, right before the final output line of Pointer.ArrowFrame_OnUpdate. It shows the degrees to your waypoint right after the distance, unless you're facing 90 or more degrees away. If you're within 10 degrees, it shows tenths of a degree.

    Code:
    	-- Dragonhawk decimal degree patch 10-10-10
    
    	-- we want clockwise degrees
    	local angdeg = 360 - (angle * 57.2957795)
    	if angdeg > 180 then angdeg = angdeg - 360 end
    	local angfmt = (abs(angdeg) < 10) and "  %-3.1f deg" or "  %-3.0f deg"
    	local angtxt = (angfmt):format(angdeg)
    	if abs(angdeg) < 90 then disttxt = disttxt..angtxt end
    	
    	-- End Dragonhawk patch
    If anyone (including Zygor) wants to use it, you're welcome to it. This is the only place I'm sharing it.

    #2
    For what it's worth, this patch works great in 4.0.1.

    Comment

    Working...
    X