<Gauge Name="FLIGHT PLAN DISPLAY" Version="1.0">
<Size X="600" Y="400" />
<Macro Name="c">C:fs9gps</Macro>
<Macro Name="C">C:fs9gps</Macro>
<Element Name="BACKGROUND RECTANGLE"><Position X="0" Y="0"/><Rectangle Width="600" Height="400" FillColor="gainsboro" Bright="Yes" /></Element>
<Element Name="BLUE BUTTON = EXTRACT CRUISING ALTITUDES"><Position X="5" Y="5"/><Rectangle Width="20" Height="20" FillColor="dodgerblue" Bright="Yes" /></Element>
<Element Name="RELOAD BUTTON"><Position X="545" Y="5"/><Element Name="Red Square"><Position X="0" Y="0"/><Rectangle Width="20" Height="20" FillColor="firebrick" Bright="Yes" /></Element><Element Name="R"><Position X="3" Y="2"/><FormattedText X="14" Y="17" Font="aero" FontSize="18" LineSpacing="20" Color="white" BackgroundColor="firebrick" Bright="Yes"><String>R</String></FormattedText></Element></Element>
<Element Name="F L I G H T P L A N D I S P L A Y">
<Position X="10" Y="40"/>
<FormattedText X="580" Y="350" Font="Consolas" FontSize="10" LineSpacing="10" Color="#101010" BackgroundColor="gainsboro" Bright="Yes" >
<Color Value="blue"/><Color Value="green"/><Color Value="red"/><Color Value="purple"/>
<Font Name="calibri bold"/>
<String>
\{clr2}FLIGHT PLAN: \{clr}\{fnt1}%((@c:FlightPlanTitle))%!-s!\n
%((@c:FlightPlanDepartureName))%!s!% to %((@c:FlightPlanDestinationName))%!s!\n\n\{fnt}
\{clr2}----------------------------------------------- FlightPlanWaypoint --------------------------------------------\n
% ICAO \{clr5}111\{clr2} \{clr4} Cruising\{clr2} Mag Dist Dist Rem Ttl\n
Idx 1\{clr4}23\{clr3}4567\{clr5}89012\{clr2} Ident Alt \{clr4}Altitude\{clr2} Type Hdg Lat Lon Dist Ttl Rem Dist Dist ETE\n
%((@c:FlightPlanWaypointsNumber) s17 0 !=)
%{if}
%(0 sp16)
%{loop}
%(l16 (>@c:FlightPlanWaypointIndex))
\{clr}%((@c:FlightPlanWaypointIndex))%!-3d!% %
%((@c:FlightPlanWaypointICAO))%!12s!% %
%((@c:FlightPlanWaypointIdent))%!6s!
%((@c:FlightPlanWaypointAltitude, feet))%!6d!% %
%('FlightPlan_Altitude_WP_' l16 scat (>C:XMLVARS:SearchVarName, string) (C:XMLVARS:NumberValue, number))\{clr4}%!5d!% %
%((@c:FlightPlanWaypointType))\{clr}%!2d!% %
%((@c:FlightPlanWaypointMagneticHeading, degrees))%!3d!% %
%((@c:FlightPlanWaypointLatitude, degrees))%!9.4f!% %
%((@c:FlightPlanWaypointLongitude, degrees))%!10.4f!% %
%((@c:FlightPlanWaypointDistance, nmiles))%!5.1f!% %
%((@c:FlightPlanWaypointDistanceTotal, nmiles))%!5.1f!% %
%((@c:FlightPlanWaypointDistanceRemaining, nmiles))%!5.1f!% %
%((@c:FlightPlanWaypointRemainingDistance, nmiles))%!5.1f!% %
%((@c:FlightPlanWaypointRemainingTotalDistance, nmiles))%!5.1f!% %
%((@c:FlightPlanWaypointETE, minutes))%!4.1f!\n
%(l16 ++ s16 l17 <)
%{next}
%{end}
</String>
</FormattedText>
</Element>
<Mouse>
<Area Name="BLUE BUTTON" Left="5" Top="5" Width="20" Height="20">
<Cursor Type="Hand"/>
<Click Kind="LeftSingle">
(C:fs9gps:FlightPlanActiveWaypoint) (>L:FPActiveWP, enum)
<!-- LOOPS THROUGH THE F.P., CREATING AN ARRAY OF XMLVARS AND STORING WAYPOINT FLIGHT ALTs INTO THE APPROPRIATE XMLVAR -->
0 sp35
:305
l35 (>C:fs9gps:FlightPlanActiveWaypoint)
'FlightPlan_Altitude_WP_' l35 scat (>C:XMLVARS:StoreVarName, string) (A:GPS WP NEXT ALT, feet) (>C:XMLVARS:NumberValue, number)
l35 ++ s35
l35 (C:fs9gps:FlightPlanWaypointsNumber) < if{ g305 }
<!-- RESETS ACTIVE WAYPOINT TO ORIGINAL VALUE -->
(L:FPActiveWP, enum) (>C:fs9gps:FlightPlanActiveWaypoint)
</Click>
</Area>
<Area Name="RELOAD BUTTON" Left="545" Top="5" Width="20" Height="20">
<Cursor Type="Hand"/>
<Click>
(A:Fuel weight per gallon, pounds per gallon) 0 ==
if{ (>K:RELOAD_USER_AIRCRAFT) } // FSX P3D
els{ (>K:RELOAD_PANELS) } // FS9
1 (>C:XMLVARS:Reset)
</Click>
</Area>
</Mouse>
</Gauge>