- Messages
- 1,564
- Country

In FS9 FormattedText XML schema, one can list multiple font colors, font faces, and font sizes and then select which one to display by using the appropriate escape sequence. For example:
I presume that the escape sequences documented in the link are valid under both FS9 and FSX schema formats.
Question: How does one write the alternate color/size/font choices in FSX schema format? What is the syntax?
Bob
XML:
<FormattedText X="440" Y="222" Font="consolas" FontSize="8" LineSpacing="8" Color="#101010" BackgroundColor="gainsboro" Bright="Yes" Align="Right">
<Color Value="blue"/><Color Value="red"/><Font Name="consolas italic"/><Font FontSize="10"/>
<String>
%\{clr2}----------------- NearestVorCurrent -----------------\n
% ICAO \{clr5}111\{clr2}\n
Line \{clr2}1\{clr4}23\{clr3}4567\{clr5}89012\{clr2} Ident Type\n
%((@c:NearestVorItemsNumber) s2 0 !=)
%{if}
%((L:ScrollIncrement, enum) int sp1)
%{loop}
%(l1 (>@c:NearestVorCurrentLine))\{lsp=24}\{clr}
%((@c:NearestVorCurrentICAO) 'SelectedVORICAO' @FIRString scmp 0 ==)%{if}\{clr4}%{end}
...
...
...
</String>
</FormattedText>
I presume that the escape sequences documented in the link are valid under both FS9 and FSX schema formats.
Question: How does one write the alternate color/size/font choices in FSX schema format? What is the syntax?
XML:
<GaugeText><Bold>false</Bold><Bright>false</Bright><FontColor>#FFFFFF</FontColor><FontFace>OCR-A II</FontFace><FontHeightScript>17</FontHeightScript>
<Length>130</Length><HorizontalAlign>LEFT</HorizontalAlign><Size>150,25</Size><HeightScript>147</HeightScript><WidthScript>240</WidthScript><Tabs>0,30,108,175,205</Tabs><Transparent>true</Transparent>
*What goes here?*
<GaugeString>
%((L:JoystickButtonScroll, enum) 9 + (C:ITrafficInfo:ListSize) min s2)
%{if}%((L:JoystickButtonScroll, enum) 8 / int 8 * sp1)
%{loop}
%(l1)
%(l1 d (>C:ITrafficInfo:CurrentVehicle) (>C:ITrafficInfo:SelectedVehicle))
%((C:ITrafficInfo:SelectedVehicleID) 1 ==)%{if}\{clr2}%{end}
%((C:ITrafficInfo:SelectedVehicleID) (L:VehicleID) == )%{if}\{rev}\{blc=olivedrab}%{end}
\{clr}%((C:ITrafficInfo:CurrentVehicle) 1 +)%!2d!
\t%( @CurrentCallsign )%!s!
...
...
...
</GaugeString>
</GaugeText>
Bob
Last edited:

