• 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.

Multiple Visibilities not showing up

Messages
10,158
Country
us-arizona
Hey all,

I am building an Autopilot gauge, KFC225, which has digital font that become visible as the systems are activated.

However, in building the gauge and putting in 'Visible' scripts, the fonts quit showing up.

For instance, first one is 'AP'. Shows up fine. Then 'FD', fine. Then I start putting in the rest, and 'nothing' shows up. The gauge is still active, but the fonts are all off, hidden, not visible.


This is the scripts. Do you see a problem? (Note, some do not have a 'Visible' script in them, so they are showing fine. Anything with a Visible script is not showing).

Code:
<!-- ////// SMALL FONT ////// -->
<!-- ////// SMALL FONT ////// -->

<!-- ALERT -->
    <Element>
      <Position X="523" Y="88" />
      <Text X="150" Y="30" Length="5" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>ALERT</String>
      </Text>
    </Element>

<!-- ALERT -->
    <Element>
      <Position X="619" Y="88" />
      <Text X="90" Y="30" Length="3" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>FPM</String>
      </Text>
    </Element>

<!-- ALERT -->
    <Element>
      <Position X="675" Y="88" />
      <Text X="60" Y="30" Length="2" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>FT</String>
      </Text>
    </Element>



<!-- AP -->
    <Element>
      <Position X="283" Y="42" />
      <Visible>(A:AUTOPILOT MASTER,bool) 1 == </Visible>
      <Text X="60" Y="30" Length="2" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>AP</String>
      </Text>
    </Element>

<!-- YD -->
    <Element>
      <Position X="283" Y="81" />
      <Visible>(A:AUTOPILOT YAW DAMPER,bool) 1 == </Visible>
      <Text X="60" Y="30" Length="2" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>YD</String>
      </Text>
    </Element>

<!-- HPA -->
    <Element>
      <Position X="544" Y="110" />
      <Text X="90" Y="30" Length="3" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>HPA</String>
      </Text>
    </Element>

<!-- IN -->
    <Element>
      <Position X="640" Y="110" />
      <Text X="60" Y="30" Length="2" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>IN</String>
      </Text>
    </Element>

<!-- HG -->
    <Element>
      <Position X="676" Y="110" />
      <Text X="60" Y="30" Length="2" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>HG</String>
      </Text>
    </Element>

<!-- ARM ONE -->

    <Element>
      <Position X="256" Y="78" />
        <Element>
          <Text X="30" Y="27" Length="1" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Bottom" Multiline="No" Color="Orange">
          <String>A</String>
          </Text>
       </Element>
        <Element>
          <Text X="30" Y="47" Length="1" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Bottom" Multiline="No" Color="Orange">
          <String>R</String>
          </Text>
       </Element>
        <Element>
          <Text X="30" Y="67" Length="1" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Bottom" Multiline="No" Color="Orange">
          <String>M</String>
          </Text>
       </Element>
     </Element>

<!-- ARM TWO -->

    <Element>
      <Position X="436" Y="78" />
        <Element>
          <Text X="30" Y="27" Length="1" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Bottom" Multiline="No" Color="Orange">
          <String>A</String>
          </Text>
       </Element>
        <Element>
          <Text X="30" Y="47" Length="1" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Bottom" Multiline="No" Color="Orange">
          <String>R</String>
          </Text>
       </Element>
        <Element>
          <Text X="30" Y="67" Length="1" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Bottom" Multiline="No" Color="Orange">
          <String>M</String>
          </Text>
       </Element>
     </Element>

<!-- PT VERTICAL -->

    <Element>
      <Position X="474" Y="68" />
        <Element>
          <Text X="30" Y="27" Length="1" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Bottom" Multiline="No" Color="Orange">
          <String>P</String>
          </Text>
       </Element>
        <Element>
          <Text X="30" Y="47" Length="1" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Bottom" Multiline="No" Color="Orange">
          <String>T</String>
          </Text>
       </Element>
     </Element>

     <Element>
       <Polygon FillColor="Orange" Bright="Yes">
         <Point X="480" Y="40"/>
         <Point X="487" Y="59"/>
         <Point X="472" Y="59"/>
       </Polygon>
     </Element>

     <Element>
       <Polygon FillColor="Orange" Bright="Yes">
         <Point X="480" Y="136"/>
         <Point X="487" Y="117"/>
         <Point X="472" Y="117"/>
       </Polygon>
     </Element>

<!-- ////// LARGE FONT WORDS ////// -->
<!-- ////// LARGE FONT WORDS ////// -->

<!-- APPROACH -->

<!-- //////////////////////
    <Element>
      <Position X="144" Y="30" />
      <Text X="180" Y="60" Length="3" Font="LCD" FontSize="60" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>APR</String>
      </Text>
    </Element>
/////////////////////////// -->

<!-- HEADING -->

    <Element>
      <Position X="144" Y="30" />
      <Visible>(A:AUTOPILOT HEADING LOCK,bool) 1 == </Visible>
      <Text X="180" Y="60" Length="3" Font="LCD" FontSize="60" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>HDG</String>
      </Text>
    </Element>

<!-- ROLL -->

    <Element>
      <Position X="333" Y="30" />
      <Text X="180" Y="60" Length="3" Font="LCD" FontSize="60" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>ROL</String>
      </Text>
    </Element>

<!-- VS -->

    <Element>
      <Position X="367" Y="30" />
      <Visible>AUTOPILOT ATTITUDE HOLD,bool) 1 == </Visible>
      <Text X="120" Y="60" Length="2" Font="LCD" FontSize="60" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>VS</String>
      </Text>
    </Element>


<!-- GS -->
    <Element>
      <Position X="144" Y="85" />
      <Text X="120" Y="60" Length="3" Font="LCD" FontSize="60" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>GS</String>
      </Text>
    </Element>

<!-- NAV -->
    <Element>
      <Position X="144" Y="85" />
      <Visible>(A:AUTOPILOT NAV1 LOCK,bool) 1 == </Visible>
      <Text X="180" Y="60" Length="3" Font="LCD" FontSize="60" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>NAV</String>
      </Text>
    </Element>


<!-- ALT -->
    <Element>
      <Position X="337" Y="85" />
      <Visible>(A:AUTOPILOT ALTITUDE LOCK,bool) 1 == </Visible>
      <Text X="180" Y="60" Length="3" Font="LCD" FontSize="60" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>ALT</String>
      </Text>
    </Element>
 
Last edited:
Syntax error under the VS one. Can you spot it?

Code:
<Visible>AUTOPILOT ATTITUDE HOLD,bool) 1 == </Visible>

I don't know if this is the complete cause of your problems. Personally I'd go into my debug mode and would start looking at things such as setting the visible conditions to always 1. I'd also check if having 2 text elements in the same position actually work as I'd expect (ie the second one overwrites and hides the first one which looks like what you are doing with the NAV and GS at <Position X="144" Y="85" />). Personally I'd use another visible condition to prevent writing something if it is not needed as writing the text and then overwriting the text uses more processing power than another visibility check.
 
Try it like this. I also included electrical failure. And Avionics must be on.

Code:
<!-- AP -->
    <Element>
      <Visible>(A:AUTOPILOT MASTER,bool) 1 == </Visible>
      <Position X="283" Y="42" />
     <Failures>
       <GAUGE_COMMUNICATIONS Action="NoDraw"/>
       <SYSTEM_ELECTRICAL_AVIONICS Action="0"/>
     </Failures>
      <Text X="60" Y="30" Length="2" Fixed="Yes" Font="LCD" Adjust="Left" VerticalAdjust="Top" Color="#FF6600" Bright="Yes"
       <String>AP</String>
      </Text>
    </Element>
 
Strongly suggest reading the thread Tom pointed to. There is a workaround (Element within Element) included in his description of the issue. Bob
 
Thanks guys.

I tried this last night and it didnt work.

Let me ask you this. How would I make a surround Element if I have names tagged to each of my blocks of scripts, like this; <!-- names --> ? I think that blocks the Element system, if I am correct. How might one get around that?

What erks me is that I have done PFD's before and this never happened....
 
Try making a temp xml with only 1 entry like what i posted above and see if that works. There may be something wrong in that gauge. Or do you have the panel cfg entry in the VC section so it updates. Maybe it's not updating.
 
Hey DG,

The gauge isnt updating, but its working. Clickzones work fine.

I tried another trick. I put in <Update Frequency=7/> ..... </Update> and that cooked the gauge, but if I left out </Update> the font now shows up, some of them.

If I reboot the plane in the sim (Reload Players Vehicle) then sometimes the coded visibility fonts like AP (which comes on when AP is active) that will show up, but I have to reload the plane.

Odd how Update Frequency is working without the second part. But its not 100% yet.

I also changed my name tags in the script blocks from;

<!-- NameTag -->

to

// NameTag

Oh, I should try it now with Toms fix. Back in a bit.
 
Last edited:
Well that didnt work.

Intermittent fonts showing up with the Update Frequency method. Reloading the plane sometimes restores all functionality.

Never has this happened to me before....
 
I used your code to run some tests with my string i posted earlier. I posted a working text string but you said it fails to work. So i found what your doing wrong. Your trying to put a page break in the text string. I used your strings to test the vis tags and the vis tags now work.

Never break up a string code!

Causes errors
Code:
<Text X="150" Y="30" Length="5" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes"

Adjust="Left" VerticalAdjust="Top" Multiline="No" Color="Orange">
<String>ALERT</String>
</Text>
Works
Code:
<Text X="150" Y="30" Length="5" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes" Adjust="Left" VerticalAdjust="Top" Multiline="No" Color="Orange">
<String>ALERT</String>
</Text>
 
Last edited:
Not sure if this is in the slightest relevant , or even correct , but since you have 'Gremlins' somewhere it might
be worth a try .
I always contain characters within , %.....%
Code:
<String>%TFR%</String>

Cheers
Karol
 
The % symbols may be the reason i use a blank space after the last value. I forget why at the moment this late at night but there is a reason.

<String>TFR </String>
 
delivery guy

While ,
Code:
<String>%TFR%</String>
works for alphabet characters,
this does not work ,
Code:
<String>%747%</String>
for numeric characters .

I get around it by adding an insignificant alphabet character at the beginning , I use a full stop ( . ) ,
Code:
<String>%.747%</String>
not neat or ideal , but it works ,
that one has always been a puzzle to me !

Cheers
Karol
 
delivery guy

While ,
Code:
<String>%TFR%</String>
works for alphabet characters,
this does not work ,
Code:
<String>%747%</String>
for numeric characters .

I get around it by adding an insignificant alphabet character at the beginning , I use a full stop ( . ) ,
Code:
<String>%.747%</String>
not neat or ideal , but it works ,
that one has always been a puzzle to me !

Cheers
Karol

<String>747</String> <String>TFR</String>
 
Thanks everyone. I'll try that out.

DG, I dont know why there is a space in the sentences. That shouldnt be there. Sometimes this happens when I copy code to these posts, things change. In my scripts, there are no breaks in sentences.
 
Ok, I got 'some' progress going.

I installed % on front and back of the fonts, and I took out the space that was just behind 1 == on the Visible strings. They do not show up in the plane when you boot up, but if you reload the plane, they show up.

Why must I reload the plane and gauge so the 'Visible Condition' fonts appear?


Old Version;

Code:
// ALT
    <Element>
      <Position X="337" Y="85" />
      <Visible>(A:AUTOPILOT ALTITUDE LOCK,bool) 1 == </Visible>
      <Text X="180" Y="60" Length="3" Font="LCD" FontSize="60" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>ALT</String>
      </Text>
    </Element>

New Version;

Code:
// ALT
    <Element>
      <Position X="337" Y="85" />
      <Visible>(A:AUTOPILOT ALTITUDE LOCK,bool) 1 ==</Visible>
      <Text X="180" Y="60" Length="3" Font="LCD" FontSize="60" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>%ALT%</String>
      </Text>
    </Element>
 
If I reboot the plane in the sim (Reload Players Vehicle) then sometimes the coded visibility fonts like AP (which comes on when AP is active) that will show up, but I have to reload the plane.

That's because of the effect I pointed out in that thread.

Try:

Code:
<Element>
  <Visible>(A:AUTOPILOT MASTER,bool) 1 == </Visible>
  <Position X="283" Y="42" />
  <Failures>
    <GAUGE_COMMUNICATIONS Action="NoDraw"/>
    <SYSTEM_ELECTRICAL_AVIONICS Action="0"/>
  </Failures>
  <Text X="60" Y="30" Length="2" Fixed="Yes" Font="LCD" Adjust="Left" VerticalAdjust="Top" Color="#FF6600" Bright="Yes"
    <String>%((L:Test,number) ! (>L:Test,number))AP</String>
  </Text>
</Element>

It should work fine now.

Tom

EDIT: % are only necessary to handle scripts ( like %( script)%!d! )
 
Here is the entire gauge code;

Tom, you posted just before I posted this. Sorry. Going to try your No Draw method right now.



Code:
<Gauge Name="KFC225" Version="1.0">
     <Image Name="KFC225_Background.bmp" ImageSizes="1000,258"/>

<Update Frequency="3"/> 

// TEMPLATE BACKGROUND
    <Element>
        <Position X="125" Y="25"/>
        <Image Name="KFC225_Template.bmp" ImageSizes="587,119" Bright="Yes">
        </Image>
    </Element>

// ALERT
    <Element>
      <Position X="523" Y="88" />
      <Text X="150" Y="30" Length="5" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>ALERT</String>
      </Text>
    </Element>

// FPM
    <Element>
      <Position X="619" Y="88" />
      <Text X="90" Y="30" Length="3" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>FPM</String>
      </Text>
    </Element>

// FT
    <Element>
      <Position X="675" Y="88" />
      <Text X="60" Y="30" Length="2" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>FT</String>
      </Text>
    </Element>

// AP
    <Element>
      <Position X="283" Y="42" />
      <Visible>(A:AUTOPILOT MASTER,bool) 1 ==</Visible>
      <Text X="60" Y="30" Length="2" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>%AP%</String>
      </Text>
    </Element>

// YD
    <Element>
      <Position X="283" Y="81" />
      <Visible>(A:AUTOPILOT YAW DAMPER,bool) 1 ==</Visible>
      <Text X="60" Y="30" Length="2" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>%YD%</String>
      </Text>
    </Element>

// HPA
    <Element>
      <Position X="544" Y="110" />
      <Text X="90" Y="30" Length="3" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>HPA</String>
      </Text>
    </Element>

// IN
    <Element>
      <Position X="640" Y="110" />
      <Text X="60" Y="30" Length="2" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>IN</String>
      </Text>
    </Element>

// HG
    <Element>
      <Position X="676" Y="110" />
      <Text X="60" Y="30" Length="2" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>HG</String>
      </Text>
    </Element>

// ARM ONE

    <Element>
      <Position X="256" Y="78" />
        <Element>
          <Text X="30" Y="27" Length="1" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Bottom" Multiline="No" Color="Orange">
          <String>A</String>
          </Text>
       </Element>
        <Element>
          <Text X="30" Y="47" Length="1" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Bottom" Multiline="No" Color="Orange">
          <String>R</String>
          </Text>
       </Element>
        <Element>
          <Text X="30" Y="67" Length="1" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Bottom" Multiline="No" Color="Orange">
          <String>M</String>
          </Text>
       </Element>
     </Element>

// ARM TWO

    <Element>
      <Position X="436" Y="78" />
        <Element>
          <Text X="30" Y="27" Length="1" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Bottom" Multiline="No" Color="Orange">
          <String>A</String>
          </Text>
       </Element>
        <Element>
          <Text X="30" Y="47" Length="1" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Bottom" Multiline="No" Color="Orange">
          <String>R</String>
          </Text>
       </Element>
        <Element>
          <Text X="30" Y="67" Length="1" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Bottom" Multiline="No" Color="Orange">
          <String>M</String>
          </Text>
       </Element>
     </Element>

// PT VERTICAL

    <Element>
      <Position X="474" Y="68" />
        <Element>
          <Text X="30" Y="27" Length="1" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Bottom" Multiline="No" Color="Orange">
          <String>P</String>
          </Text>
       </Element>
        <Element>
          <Text X="30" Y="47" Length="1" Font="LCD" FontSize="27" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Bottom" Multiline="No" Color="Orange">
          <String>T</String>
          </Text>
       </Element>
     </Element>

     <Element>
       <Polygon FillColor="Orange" Bright="Yes">
         <Point X="480" Y="40"/>
         <Point X="487" Y="59"/>
         <Point X="472" Y="59"/>
       </Polygon>
     </Element>

     <Element>
       <Polygon FillColor="Orange" Bright="Yes">
         <Point X="480" Y="136"/>
         <Point X="487" Y="117"/>
         <Point X="472" Y="117"/>
       </Polygon>
     </Element>


// APPROACH

    <Element>
      <Position X="144" Y="30" />
      <Text X="180" Y="60" Length="3" Font="LCD" FontSize="60" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>%APR%</String>
      </Text>
    </Element>

// HEADING

    <Element>
      <Position X="144" Y="30" />
      <Visible>(A:AUTOPILOT HEADING LOCK,bool) 1 == </Visible>
      <Text X="180" Y="60" Length="3" Font="LCD" FontSize="60" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>%HDG%</String>
      </Text>
    </Element>

// ROLL

    <Element>
      <Position X="333" Y="30" />
      <Text X="180" Y="60" Length="3" Font="LCD" FontSize="60" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>%ROL%</String>
      </Text>
    </Element>

// VS

    <Element>
      <Position X="367" Y="30" />
      <Visible>AUTOPILOT ATTITUDE HOLD,bool) 1 == </Visible>
      <Text X="120" Y="60" Length="2" Font="LCD" FontSize="60" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>%VS%</String>
      </Text>
    </Element>


// GS
    <Element>
      <Position X="144" Y="85" />
      <Text X="120" Y="60" Length="3" Font="LCD" FontSize="60" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>%GS%</String>
      </Text>
    </Element>

// NAV
    <Element>
      <Position X="144" Y="85" />
      <Visible>(A:AUTOPILOT NAV1 LOCK,bool) 1 == </Visible>
      <Text X="180" Y="60" Length="3" Font="LCD" FontSize="60" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>%NAV%</String>
      </Text>
    </Element>


// ALT
    <Element>
      <Position X="337" Y="85" />
      <Visible>(A:AUTOPILOT ALTITUDE LOCK,bool) 1 ==</Visible>
      <Text X="180" Y="60" Length="3" Font="LCD" FontSize="60" FontWeight="600" Bright="Yes" Adjust="Left"
VerticalAdjust="Top" Multiline="No" Color="Orange">
        <String>%ALT%</String>
      </Text>
    </Element>



<Mouse>


// AUTOPILOT MASTER

       <Area Left="34" Top="190" Right="96" Bottom="225">
        <Tooltip>AP_MASTER</Tooltip>
         <Cursor Type="Hand"/>
         <Click Event="AP_MASTER"/>
      </Area>

// FLIGHT DIRECTOR

       <Area Left="131" Top="190" Right="200" Bottom="225">
        <Tooltip>Engage Flight Director</Tooltip>
         <Cursor Type="Hand"/>
         <Click Event="TOGGLE_FLIGHT_DIRECTOR"/>
       </Area>

// AP_WING_LEVELER_ON


// HDG

       <Area Left="236" Top="190" Right="300" Bottom="225">
        <Tooltip>Engage HDG Hold</Tooltip>
         <Cursor Type="Hand"/>
         <Click Event="AP_PANEL_HEADING_HOLD"/>
      </Area>

// NAV

       <Area Left="339" Top="190" Right="400" Bottom="225">
         <Tooltip>Nav 1 Hold</Tooltip>
           <Click Event="AP_NAV1_HOLD"/>
            <Cursor Type="Hand"/>
         </Area>

// APR

       <Area Left="400" Top="190" Right="500" Bottom="225">
       <Tooltip>Engage Approach Mode</Tooltip>
         <Cursor Type="Hand"/>
         <Click Event="AP_APR_HOLD"/>
      </Area>

// REV

       <Area Left="539" Top="190" Right="602" Bottom="225">
         <Tooltip>Engage Back Course Mode</Tooltip>
         <Click Event="AP_BC_HOLD"/>
            <Cursor Type="Hand"/>
         </Area>

// ALT

       <Area Left="640" Top="190" Right="703" Bottom="225">
        <Tooltip>Engage ALT Hold</Tooltip>
         <Cursor Type="Hand"/>
         <Click Event="AP_ALT_HOLD_ON"/>
      </Area>
      // AP_PANEL_ALTITUDE_ON

// ALT ARM

       <Area Left="800" Top="32" Right="867" Bottom="66">
        <Tooltip>Set ALT Setting</Tooltip>
         <Cursor Type="Hand"/>
         <Click Event="AP_ALT_HOLD_ON"/>
      </Area>

// VS

       <Area Left="900" Top="32" Right="965" Bottom="66">
       <Tooltip>Engage Vertical Speed Hold (%((A:Vertical speed,feet per minute))%!d!% ft/min) </Tooltip>
         <Cursor Type="Hand"/>
         <Click Event="AP_ATT_HOLD"/>
      </Area>

// VS UP

       <Area Left="742" Top="118" Right="800" Bottom="150">
        <Tooltip>Adjust VS Speed Up</Tooltip>
         <Cursor Type="UpArrow"/>
         <Click Event="AP_VS_VAR_INC"/>
      </Area>

// VS DN

       <Area Left="742" Top="190" Right="800" Bottom="225">
        <Tooltip>Adjust VS Speed Down</Tooltip>
         <Cursor Type="DownArrow"/>
         <Click Event="AP_VS_VAR_DEC"/>
      </Area>

// YD

       <Area Left="30" Top="30" Right="96" Bottom="64">
         <Tooltip>Engage Yaw Damper</Tooltip>
         <Cursor Type="Hand"/>
            <Click Event="YAW_DAMPER_TOGGLE" Repeat="Yes"/>
      </Area>          

// MAXIMISE SCREEN

       <Area Left="124" Top="27" Right="715" Bottom="146">
         <Tooltip>Maximise</Tooltip>
         <Cursor Type="Hand"/>
         <Click>112 (&gt;K:PANEL_ID_TOGGLE)</Click>
      </Area>          

// ALT ADJ DOWN 1000

       <Area Left="820" Top="110" Right="868" Bottom="241">
         <Tooltip>ALT ADJUST DOWN 1000 FEET</Tooltip>
           <Click Kind="LeftSingle+RightSingle" Repeat="Yes">(M:Event) 'LeftSingle' scmp 0 == if{
            (A:AUTOPILOT ALTITUDE LOCK VAR, feet) 1000 - }
            0 max (&gt;K:AP_ALT_VAR_SET_ENGLISH)</Click>
            <Cursor Type="DownArrow"/>
         </Area>

// ALT SET UP 1000

       <Area Left="927" Top="110" Right="984" Bottom="241">
         <Tooltip>ALT ADJUST UP 1000 FEET</Tooltip>
         <Click Kind="LeftSingle+RightSingle" Repeat="Yes">(M:Event) 'LeftSingle' scmp 0 == if{
         (A:AUTOPILOT ALTITUDE LOCK VAR, feet) 1000 + }
         60000 min (&gt;K:AP_ALT_VAR_SET_ENGLISH)</Click>
         <Cursor Type="UpArrow"/>
        </Area>

// ALT ADJ DOWN 100

       <Area Left="870" Top="110" Right="898" Bottom="241">
         <Tooltip>ALT ADJUST DOWN 100 FEET</Tooltip>
           <Click Kind="LeftSingle+RightSingle" Repeat="Yes">(M:Event) 'LeftSingle' scmp 0 == if{
            (A:AUTOPILOT ALTITUDE LOCK VAR, feet) 100 - }
            0 max (&gt;K:AP_ALT_VAR_SET_ENGLISH)</Click>
            <Cursor Type="DownArrow"/>
         </Area>

// ALT ADJ UP 100

       <Area Left="900" Top="110" Right="925" Bottom="241">
         <Tooltip>ALT ADJUST UP 100 FEET</Tooltip>
         <Click Kind="LeftSingle+RightSingle" Repeat="Yes">(M:Event) 'LeftSingle' scmp 0 == if{
         (A:AUTOPILOT ALTITUDE LOCK VAR, feet) 100 + }
         60000 min (&gt;K:AP_ALT_VAR_SET_ENGLISH)</Click>
         <Cursor Type="UpArrow"/>
        </Area>


// VS ADJ DOWN

       <Area Left="" Top="" Right="" Bottom="">
         <Tooltip>VS ADJUST DOWN</Tooltip>
            <Click Event="AP_VS_VAR_DEC" Repeat="Yes"/>
            <Cursor Type="DownArrow"/>
         </Area>

// VS ADJ UP

       <Area Left="" Top="" Right="" Bottom="">
         <Tooltip>VS ADJUST UP</Tooltip>
            <Click Event="AP_VS_VAR_INC" Repeat="Yes"/>
            <Cursor Type="UpArrow"/>
         </Area>

</Mouse>
</Gauge>
 
Back
Top