- Messages
- 129
- Country

Hello. Attached is a couple of examples. The first method (shown in mostly blue) shows the information correctly but is too verbose/repetitive. The second method (shown in pink) is efficient but the displaying of the FlightPlanWaypointIndex is off on the first waypoint. How the 47 is determined has me confused.
Method 1 xml:
Method 2:
As far as I can tell, unlimited number of waypoints but I don't know how to use tab so I set it up to repeat every 22 waypoints. I've never seen more than 40 (a flightplan KSAN to KJFK) once.
Does anyone have an idea how the code determines why the first waypoint (method 1) shows as no. 47? There are 37 (C:fs9gps:FlightPlanWaypointsNumber) waypoints in this particular flight plan. Thank you.
Method 1 xml:
Code:
<Element>
<Position X="49" Y="58"/>
<Text X="150" Y="18" Length="40" Font="consolas" FontSize="10" Fix="Yes"
Color="%((A:GPS FLIGHT PLAN WP INDEX, number) 1 == if{ '#FF0088' } els{ '#0088FF'})%!s!" Adjust="Left" VerticalAdjust="Center">
<String>% 1.%(1 (>
C:fs9gps:FlightPlanWaypointIndex))%((C:fs9gps:FlightPlanWaypointIdent, string))%!s!
</String> </Text>
</Element>
<Element>
<Visible>(A:GPS FLIGHT PLAN WP COUNT, number) 2 > </Visible>
<Position X="49" Y="68"/>
<Text X="150" Y="18" Length="30" Font="consolas" FontSize="10" Fix="Yes"
Color="%((A:GPS FLIGHT PLAN WP INDEX, number) 2 == if{ '#FF0088' } els{ '#0088FF'})%!s!" Adjust="Left" VerticalAdjust="Center">
<String>% 2.%(2 (>
C:fs9gps:FlightPlanWaypointIndex))%((C:fs9gps:FlightPlanWaypointIdent,string))%!s!
</String></Text>
</Element>
etc. for a maximum of 48 waypoints.
Method 2:
Code:
<Element>
<Position X="84" Y="58" />
<FormattedText X="255" Y="295" Font="Consolas" FontSize="11" LineSpacing="10.2"
Color="%((A:GPS FLIGHT PLAN WP INDEX, number) 1 == if{ '#FF0088' } els{ '#0088FF'})%!s!" Bright="Yes" Adjust="Left" Fix="Yes">
<String>
%((@c:FlightPlanWaypointsNumber) s2 0 !=)
%{if}
%(1 sp1)
%{loop}
%((C:fs9gps:FlightPlanWaypointIndex) 1 +)%!2d!%.%(l1 (>
C:fs9gps:FlightPlanWaypointIndex))%((C:fs9gps:FlightPlanWaypointIdent, string))%!s!%
\n %(l1 ++ s1 l2 15 - <)
%{next}
%{end}
</String> </FormattedText>
</Element>
<Element>
<Position X="195" Y="47" />
<FormattedText X="255" Y="295" Font="Consolas" FontSize="11" LineSpacing="10.2"
Color="%((A:GPS FLIGHT PLAN WP INDEX, number) 1 == if{ '#FF0088' } els{ '#0088FF'})%!s!" Bright="Yes" Adjust="Left" Fix="Yes">
<String>
%((@c:FlightPlanWaypointsNumber) s2 0 !=)
%{if}
%(22 sp1)
%{loop}
%((C:fs9gps:FlightPlanWaypointIndex) 1 +)%!2d!%.%(l1 (>
C:fs9gps:FlightPlanWaypointIndex))%((C:fs9gps:FlightPlanWaypointIdent, string))%!s!%
\n %(l1 ++ s1 l2 <)
%{next}
%{end}
</String> </FormattedText>
</Element>
As far as I can tell, unlimited number of waypoints but I don't know how to use tab so I set it up to repeat every 22 waypoints. I've never seen more than 40 (a flightplan KSAN to KJFK) once.
Does anyone have an idea how the code determines why the first waypoint (method 1) shows as no. 47? There are 37 (C:fs9gps:FlightPlanWaypointsNumber) waypoints in this particular flight plan. Thank you.


