Heretic
Resource contributor
- Messages
- 6,830
- Country

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.
Hope someone finds this useful.
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 (>L:Text Y Offset, number)
(A:LIGHT LANDING,bool) 1 ==
if{ (L:Text Y Offset, number) 1 + (>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 < and
if{ (L:Text Y Offset, number) 1 + 0 max @MaxMessageLines min (>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 < and
if{ (L:Text Y Offset, number) 1 + 0 max @MaxMessageLines min (>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.