• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 Shifting Gauge Text

Heretic

Resource contributor
Messages
6,830
Country
germany
No, this is not an inquiry, just a code dump. Don't really need it as it requires quite a lot of lines, but didn't want it to go to waste.

FS9 syntax, but will work in FSX. Shamelessly plucked from FSX' CRJ EICAS and translated into FS9 syntax. Tied to aircraft lights for testing.

Code:
<!-- Start of Container -->
<Element>
<!-- The "Anchor" for the element. Keep in mind that this has to be shifted upward a bit because the first line is automatically shifted downward by about 15 pixels -->
<Position X="5.000" Y="235.000"/>
<!-- Macro To Determine Maximum Number Of Items To Be Displayed -->
<Macro Name="MaxMessageLines">10</Macro>
<!-- Item 1
If visibility conditions are fulfilled, this will always be the first visible item in the stack
You can use the offset multiplier or scaling modifier to increase or decrease line spacing.
-->
<Element>
<Visible>
0 (&gt;L:Text Y Offset, number)
(A:LIGHT LANDING,bool) 1 ==
if{ (L:Text Y Offset, number) 1 + (&gt;L:Text Y Offset, number) 1 }
els{ 0 }</Visible>
<Position X="0.000" Y="0.000"/>
<FormattedText X="100" Y="20" Length="50" Font="Arial" FontSize="14" Adjust="Left" VerticalAdjust="Top" Color="#f1f1f1" Multiline="No" Bright="Yes">
<String>Landing Lights On</String>
</FormattedText>
<Shift><Value>(L:Text Y Offset, number) 15 *</Value><Scale Y="1.00"/></Shift>
</Element>
<!-- Item 2
Each of the following items will have to check the number of currently displayed items. If that number is reached, the item will not display.
-->
<Element>
<Visible>
(A:LIGHT TAXI,bool) 1 ==
(L:Text Y Offset, number) @MaxMessageLines &lt; and
if{ (L:Text Y Offset, number) 1 + 0 max @MaxMessageLines min (&gt;L:Text Y Offset, number) 1 }
els{ 0 }</Visible>
<Position X="0.000" Y="0.000"/>
<FormattedText X="100" Y="20" Length="50" Font="Arial" FontSize="14" Adjust="Left" VerticalAdjust="Top" Color="#f1f1f1" Multiline="No" Bright="Yes">
<String>Taxi Lights On</String>
</FormattedText>
<Shift><Value>(L:Text Y Offset, number) 15 *</Value><Scale Y="1.00"/></Shift>
</Element>
  <!-- Item 3
If item #1 and #2 above are not displayed, this will be the first item in the list. If the visibility condition for one of the two items above evaluates to "True" while this one is displayed, this item will be shifted downward by one position.
-->
<Element>
<Visible>
(A:LIGHT STROBE,bool) 1 ==
(L:Text Y Offset, number) @MaxMessageLines &lt; and
if{ (L:Text Y Offset, number) 1 + 0 max @MaxMessageLines min (&gt;L:Text Y Offset, number) 1 }
els{ 0 }</Visible>
<Position X="0.000" Y="0.000"/>
<FormattedText X="100" Y="20" Length="50" Font="Arial" FontSize="14" Adjust="Left" VerticalAdjust="Top" Color="#f1f1f1" Multiline="No" Bright="Yes">
<String>Strobes On</String>
</FormattedText>
<Shift><Value>(L:Text Y Offset, number) 15 *</Value><Scale Y="1.00"/></Shift>
</Element>
<!-- End Of Container -->
</Element>

Hope someone finds this useful.
 
Back
Top