- Messages
- 10,163
- Country

Hey all,
I am trying to do a font string that says one of three things;
1. Lower Gear (Gear is up, lower it by clicking here. Color is green)
2. Gr Transition (Gear is between up and down, blinky mode in progress. Color mode is red).
3. Raise Gear (Gear is down and locked, font is green).
Normally I would write three font strings that would 'appear' in the same zones, activated by states. But there is a way to write these into a single string 'assembly' (if I am correct) and I am curious to learn how its done.
So far, from my experiments, I had no joy. So... Here I am. Anyone care to show me how its done?
The top one shows a blinking red font; 'GR TRANSITIONLOWER GEAR
The second one down shows proper green font, stating 'LOWER GEAR'.
[Yes... I am a code hoarder... I hate to delete them in case there is something revolutionary in there I might need later, lol... ]
I am trying to do a font string that says one of three things;
1. Lower Gear (Gear is up, lower it by clicking here. Color is green)
2. Gr Transition (Gear is between up and down, blinky mode in progress. Color mode is red).
3. Raise Gear (Gear is down and locked, font is green).
Normally I would write three font strings that would 'appear' in the same zones, activated by states. But there is a way to write these into a single string 'assembly' (if I am correct) and I am curious to learn how its done.
So far, from my experiments, I had no joy. So... Here I am. Anyone care to show me how its done?
The top one shows a blinking red font; 'GR TRANSITIONLOWER GEAR
The second one down shows proper green font, stating 'LOWER GEAR'.
Code:
<Element>
<Element>
// LANDING GEAR
<Position X="72" Y="391"/>
<Visible>(L:SWITCHES SCROLL,bool) 0 == </Visible>
<FormattedText X="700" Y="374" Font="Arial Black" FontSize="26" LineSpacing="32" Adjust="Left" Color="Red" Bright="Yes">
<Color Value="#0X00FF00"/>
<String>
%( 1 99 (A:GEAR RIGHT POSITION, percent) rng )
%{if}\{blnk}
%GR TRANSITION
%( 1 99 (A:GEAR RIGHT POSITION, percent) 100 )
%{if}\{clr}
%LOWER GEAR
%((A:GEAR RIGHT POSITION, percent) 0 )
%{if}
%\{clr}
%RAISE GEAR
</String>
</FormattedText>
</Element>
</Element>
<!-- //////////////////////////////////////////////////////////////
<Element>
<Element>
// LANDING GEAR
<Position X="72" Y="391"/>
<Visible>(L:SWITCHES SCROLL,bool) 0 == </Visible>
<FormattedText X="700" Y="374" Font="Arial Black" FontSize="26" LineSpacing="32" Adjust="Left" Color="Red" Bright="Yes">
<Color Value="#0X00FF00"/>
<String>
%( 1 99 (A:GEAR RIGHT POSITION, percent) rng )
%{if}\{clr2}\{blnk}
%TRANSITION
%{else}
%\{clr2}
%DEPLOY GEAR
</String>
</FormattedText>
</Element>
</Element>
<Element>
<Element>
// LANDING GEAR
<Position X="72" Y="391"/>
<Visible>(L:SWITCHES SCROLL,bool) 0 == </Visible>
<FormattedText X="700" Y="374" Font="Arial Black" FontSize="26" LineSpacing="32" Adjust="Left" Color="Red" Bright="Yes">
<Color Value="#0X00FF00"/>
<String>
%( 1 99 (A:GEAR RIGHT POSITION, percent) rng )
%((A:GEAR RIGHT POSITION, percent) 0 ==)
%{if}\{clr2}\{blnk}
%TRANSITION
%{else}
%\{clr2}
%DEPLOY GEAR
</String>
</FormattedText>
</Element>
</Element>
<Element>
<Element>
// LANDING GEAR
<Position X="72" Y="391"/>
<Visible>(L:SWITCHES SCROLL,bool) 0 == </Visible>
<FormattedText X="700" Y="374" Font="Arial Black" FontSize="26" LineSpacing="32" Adjust="Left" Color="#0X00FF00" Bright="Yes">
<Color Value="#RED"/>
<Color Value="#0X00FF00"/>
<String>
%((A:GEAR RIGHT POSITION, percent) 0 ==)
%{if}
%LOWER GEAR
%( 1 99 (A:GEAR RIGHT POSITION, percent) rng )
%{if}\{clr2}\{blnk}
%LOWER GEAR
%((A:GEAR RIGHT POSITION, percent) 100 ==)
%{if}
%\{clr3}
%RAISE GEAR
</String>
</FormattedText>
</Element>
</Element>
<Element>
<Element>
// LANDING GEAR
<Position X="72" Y="391"/>
<Visible>(L:SWITCHES SCROLL,bool) 0 == </Visible>
<FormattedText X="700" Y="374" Font="Arial Black" FontSize="26" LineSpacing="32" Adjust="Left" Color="#0X00FF00" Bright="Yes">
<Color Value="#99999999"/>
<Color Value="#RED"/>
<String>
%((A:GEAR HANDLE POSITION, bool) 0 ==)
%{if}
%LOWER GEAR
%{else}
%\{clr2}
%RAISE GEAR
</String>
</FormattedText>
</Element>
</Element>
<Element>
<Element>
// LANDING GEAR
<Position X="72" Y="391"/>
<Visible>(L:SWITCHES SCROLL,bool) 0 == </Visible>
<FormattedText X="700" Y="374" Font="Arial Black" FontSize="30" LineSpacing="32" Adjust="Left" Color="#999999" Bright="Yes">
<Color Value="#0X00FF00"/>
<Color Value="Red"/>
<String>
%((A:GEAR HANDLE POSITION, bool) 0 ==)
%{if}
%LOWER GEAR
%{else}
%\{clr2}
%ACTIVE
</String>
</FormattedText>
</Element>
</Element>
[Yes... I am a code hoarder... I hate to delete them in case there is something revolutionary in there I might need later, lol... ]
