FS2004 Gauges to trigger playing sounds

#83
If (A:SIM ON GROUND,bool) doesn't work you could try


Code:
(A:GEAR ANIMATION POSITION:0,percent)  Nose
(A:GEAR ANIMATION POSITION:1,percent)  Left
(A:GEAR ANIMATION POSITION:2,percent)  Right
0 = gear up
50 = gear down
51 ... 100 = on ground (compression)
 
#84
If (A:SIM ON GROUND,bool) doesn't work you could try


Code:
(A:GEAR ANIMATION POSITION:0,percent)  Nose
(A:GEAR ANIMATION POSITION:1,percent)  Left
(A:GEAR ANIMATION POSITION:2,percent)  Right
0 = gear up
50 = gear down
51 ... 100 = on ground (compression)
If (A:SIM ON GROUND,bool) doesn't work you could try


Code:
(A:GEAR ANIMATION POSITION:0,percent)  Nose
(A:GEAR ANIMATION POSITION:1,percent)  Left
(A:GEAR ANIMATION POSITION:2,percent)  Right
0 = gear up
50 = gear down
51 ... 100 = on ground (compression)
Thanks! Finally this video:

Thanks all for your input!
 
#86
Gotta add some more after landing announcements to chose from for specific airports. Currently there is a default announcement suitable for any airport. Generally speaking 3 are enough - destination, departure (for flight back) plus a default. But wanna add at least 5 including a default.

I could do that by adding 2 position switches to a 2D panel so anyone could turn on a desired airport before landing. But I believe it could be a good idea to add a 2D rotating knob instead of switches:
knob.jpg
Need your help guys creating the 5 position knob with + and - directions. What coding is used to create animation like this? Any suggestions would be greatly appreciated!
 
#87
Hello!

Basically, you can do it with five versions of the same image (one for each position) and with Case Value. The knob can be controlled with an L:Var of your choice in order to trigger the 5 functions you need. Take a look at this example -which is used in one of my panels-:

HTML:
   <!-- BEGIN: AIR CONDITIONER SYSTEM -->
          <!-- Air Conditioner Blow/Running Switch -->
          <Element>
              <Position X="164" Y="38"/>
                  <Select>
                      <Value>(L:407_ACond_Switch,number)</Value>
                          <Case Value="1">
                              <Image Name="407_switch_coll_UP.bmp" Luminous="Yes"/>     <!-- Switch in facing "up", Air Blow ON-->
                          </Case>
                          <Case Value="0">
                              <Image Name="407_switch_coll_MD.bmp" Luminous="Yes"/>     <!-- Air Blow and Air Conditioner OFF -->
                          </Case>
                          <Case Value="-1">
                              <Image Name="407_switch_coll_DN.bmp" Luminous="Yes"/>     <!-- Switch in facing "down", Air Conditioner ON -->
                          </Case>
                  </Select>
          </Element>
          
          <!-- Air Conditioner Speed Switch FWD (Cockpit)-->
          <Element>
              <Position X="207" Y="38"/>
                  <Select>
                      <Value>(L:407_ACond_Speed_Control,Bool)</Value>
                          <Case Value="0">
                              <Image Name="407_switch_coll_UP.bmp" Luminous="Yes"/>     <!-- Switch in facing "up", Cockpit Air Speed LOW -->
                          </Case>
                          <Case Value="1">
                              <Image Name="407_switch_coll_DN.bmp" Luminous="Yes"/>     <!-- Switch in facing "down", Cockpit Air Speed HIGH -->
                          </Case>
                  </Select>
          </Element>
          
          <!-- Air Conditioner Speed Switch AFT (Cabin):
                For the moment, it shares the same mouse area than the Air Conditioner Speed Switch for the Cockpit
          -->
          <Element>
              <Position X="251" Y="38"/>
                  <Select>
                      <Value>(L:407_ACond_Speed_Control,Bool)</Value>
                          <Case Value="0">
                              <Image Name="407_switch_coll_UP.bmp" Luminous="Yes"/>     <!-- Switch in facing "up", Cabin Air Speed LOW -->
                          </Case>
                          <Case Value="1">
                              <Image Name="407_switch_coll_DN.bmp" Luminous="Yes"/>     <!-- Switch in facing "down", Cabin Air Speed HIGH -->
                          </Case>
                  </Select>
          </Element>
    <!--END: AIR CONDITIONER SYSTEM -->
    
<!--                                                                                                       M O U S E   E V E N T    L O G I C                                                                                                            -->
             <!-- BEGIN: Air Conditioner Blow/Running Switch -->
                  <!-- Power States
                          Switch facing "up",
                              Function: Air Blow ON
                              (L:407_ACond_Switch,number) 1 ==
                              
                          Switch in "middle position",
                              Function: Air Blow and Air Conditioner OFF
                              (L:407_ACond_Switch,number) 0 ==
                        
                         Switch facing "down",
                              Function: Air Conditioner ON
                              (L:407_ACond_Switch,number) -1 ==
                  -->
            <Area Left="164" Top="24" Width="25" Height="25">
                <Cursor Type="UpArrow"/>
                <Click Kind="LeftSingle" Repeat="No" MouseWheelFlip="No">
                    (M:Event) 'LeftSingle' scmp 0 ==
                        if{
                            (L:407_ACond_Switch,number) ++ 1 min (>L:407_ACond_Switch,number)
                            <!-- Click Sound Effect -->
                            1 (>L:Bell_407_Click, number)
                          }
                              <!-- Switch facing "up", Air Blow ON-->
                             (L:407_ACond_Switch,number) 1 ==
                                if{
                                    <!-- Speed set to LOW -->
                                    (L:407_ACond_Speed_Control, bool) !
                                        if{
                                            2 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                    <!-- Air Blow ON, Speed set to HIGH -->
                                    (L:407_ACond_Speed_Control,bool)
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            2 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                  }
                                  
                              <!-- Switch in "middle position", Air Blow and Air Conditioner OFF -->
                             (L:407_ACond_Switch,number) 0 ==
                                if{
                                    <!-- All Ambience sounds OFF -->
                                    0 (>L:Bell_407_Blow_Low, number)
                                    0 (>L:Bell_407_Blow_High, number)
                                    0 (>L:Bell_407_AirCond_Low, number)
                                    0 (>L:Bell_407_AirCond_High, number)
                                  }
                                  
                             <!-- Switch in facing "down", Air Conditioner ON -->
                             (L:407_ACond_Switch,number) -1 ==
                                if{
                                    <!-- Speed set to LOW -->
                                    (L:407_ACond_Speed_Control,bool) !
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            2 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                    <!-- Speed set to HIGH -->
                                    (L:407_ACond_Speed_Control,bool)
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            2 (>L:Bell_407_AirCond_High, number)
                                          }
                                  }
                </Click>
            </Area>
            
            <Area Left="164" Top="53" Width="25" Height="25">
                <Cursor Type="DownArrow"/>
                <Click Kind="LeftSingle" Repeat="No" MouseWheelFlip="No">
                    (M:Event) 'LeftSingle' scmp 0 ==
                        if{
                            (L:407_ACond_Switch,number) -- -1 max (>L:407_ACond_Switch,number)
                            <!-- Click Sound Effect -->
                            1 (>L:Bell_407_Click, number)
                          }
                          
                              <!-- Switch facing "up", Air Blow ON-->
                             (L:407_ACond_Switch,number) 1 ==
                                if{
                                    <!-- Speed set to LOW -->
                                    (L:407_ACond_Speed_Control, bool) !
                                        if{
                                            2 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                    <!-- Air Blow ON, Speed set to HIGH -->
                                    (L:407_ACond_Speed_Control,bool)
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            2 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                  }
                                  
                              <!-- Switch in "middle position", Air Blow and Air Conditioner OFF -->
                             (L:407_ACond_Switch,number) 0 ==
                                if{
                                    <!-- All Ambience sounds OFF -->
                                    0 (>L:Bell_407_Blow_Low, number)
                                    0 (>L:Bell_407_Blow_High, number)
                                    0 (>L:Bell_407_AirCond_Low, number)
                                    0 (>L:Bell_407_AirCond_High, number)
                                  }
                                  
                             <!-- Switch in facing "down", Air Conditioner ON -->
                             (L:407_ACond_Switch,number) -1 ==
                                if{
                                    <!-- Speed set to LOW -->
                                    (L:407_ACond_Speed_Control,bool) !
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            2 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                    <!-- Speed set to HIGH -->
                                    (L:407_ACond_Speed_Control,bool)
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            2 (>L:Bell_407_AirCond_High, number)
                                          }
                                  }
                </Click>
            </Area>
            <!-- END: Air Conditioner Blow/Running Switch -->
            
            <!-- Air Conditioner Speed Switch-->
            <Area Left="208" Top="38" Width="68" Height="25">
                <Cursor Type="Hand"/>
                <Click Repeat="No" MouseWheelFlip="No">
                    (L:407_ACond_Speed_Control,bool) ! (>L:407_ACond_Speed_Control,bool)
                    <!-- Click Sound Effect -->
                    1 (>L:Bell_407_Click, number)
                              <!-- Switch facing "up", Air Blow ON-->
                             (L:407_ACond_Switch,number) 1 ==
                                if{
                                    <!-- Speed set to LOW -->
                                    (L:407_ACond_Speed_Control, bool) !
                                        if{
                                            2 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                    <!-- Air Blow ON, Speed set to HIGH -->
                                    (L:407_ACond_Speed_Control,bool)
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            2 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                  }
                             <!-- Switch in facing "down", Air Conditioner ON -->
                             (L:407_ACond_Switch,number) -1 ==
                                if{
                                    <!-- Speed set to LOW -->
                                    (L:407_ACond_Speed_Control,bool) !
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            2 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                    <!-- Speed set to HIGH -->
                                    (L:407_ACond_Speed_Control,bool)
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            2 (>L:Bell_407_AirCond_High, number)
                                          }
                                  }
                </Click>
            </Area>
Take time to read it because it also have sound effects!
I hope this might give you some ideas.
Sergio.
 
#89
Your welcome!
Many thanks Sergio! Just thought it has something to do with <Animation> and other...
Ohh... this certainly will when you write your code for the 3D part:

HTML:
          <!-- BEGIN: Air Conditioner Blow/Running Switch
                  Power States
                  Key 0:
                          Switch facing "up",
                              Function: Air Blow ON
                              (L:407_ACond_Switch,number) 1 ==
                  Key 25:
                          Switch in "middle position",
                              Function: Air Blow and Air Conditioner OFF
                              (L:407_ACond_Switch,number) 0 ==
                  Key 50:
                         Switch facing "down",
                              Function: Air Conditioner ON
                              (L:407_ACond_Switch,number) -1 ==
           -->
      <part>
          <name>bell407_AirCond_switch</name>
              <animation>
                  <parameter>
                      <code>
                          (L:407_ACond_Switch,number) s0 0 &lt; 50 * l0 0 == 25 * +
                      </code>
                      <lag>300</lag>
                  </parameter>
              </animation>
              <mouserect>
                  <cursor>Hand</cursor>
                  <tooltip_text>Air Conditioner Switch UP (LMB)/DOWN (RMB)</tooltip_text>
                  <mouse_flags>LeftSingle+RightSingle</mouse_flags>
                  <callback_code>
                    (M:Event) 'LeftSingle' scmp 0 ==
                        if{
                            (L:407_ACond_Switch,number) ++ 1 min (>L:407_ACond_Switch,number)
                            <!-- Click Sound Effect -->
                            1 (>L:Bell_407_Click, number)
                          }
                              <!-- Switch facing "up", Air Blow ON-->
                             (L:407_ACond_Switch,number) 1 ==
                                if{
                                    <!-- Speed set to LOW -->
                                    (L:407_ACond_Speed_Control, bool) !
                                        if{
                                            2 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                    <!-- Air Blow ON, Speed set to HIGH -->
                                    (L:407_ACond_Speed_Control,bool)
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            2 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                  }
                                  
                              <!-- Switch in "middle position", Air Blow and Air Conditioner OFF -->
                             (L:407_ACond_Switch,number) 0 ==
                                if{
                                    <!-- All Ambience sounds OFF -->
                                    0 (>L:Bell_407_Blow_Low, number)
                                    0 (>L:Bell_407_Blow_High, number)
                                    0 (>L:Bell_407_AirCond_Low, number)
                                    0 (>L:Bell_407_AirCond_High, number)
                                  }
                                  
                             <!-- Switch in facing "down", Air Conditioner ON -->
                             (L:407_ACond_Switch,number) -1 ==
                                if{
                                    <!-- Speed set to LOW -->
                                    (L:407_ACond_Speed_Control,bool) !
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            2 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                    <!-- Speed set to HIGH -->
                                    (L:407_ACond_Speed_Control,bool)
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            2 (>L:Bell_407_AirCond_High, number)
                                          }
                                  }
                   (M:Event) 'RightSingle' scmp 0 ==
                        if{
                            (L:407_ACond_Switch,number) -- -1 max (>L:407_ACond_Switch,number)
                            <!-- Click Sound Effect -->
                            1 (>L:Bell_407_Click, number)
                          }
                          
                              <!-- Switch facing "up", Air Blow ON-->
                             (L:407_ACond_Switch,number) 1 ==
                                if{
                                    <!-- Speed set to LOW -->
                                    (L:407_ACond_Speed_Control, bool) !
                                        if{
                                            2 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                    <!-- Air Blow ON, Speed set to HIGH -->
                                    (L:407_ACond_Speed_Control,bool)
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            2 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                  }
                                  
                              <!-- Switch in "middle position", Air Blow and Air Conditioner OFF -->
                             (L:407_ACond_Switch,number) 0 ==
                                if{
                                    <!-- All Ambience sounds OFF -->
                                    0 (>L:Bell_407_Blow_Low, number)
                                    0 (>L:Bell_407_Blow_High, number)
                                    0 (>L:Bell_407_AirCond_Low, number)
                                    0 (>L:Bell_407_AirCond_High, number)
                                  }
                                  
                             <!-- Switch in facing "down", Air Conditioner ON -->
                             (L:407_ACond_Switch,number) -1 ==
                                if{
                                    <!-- Speed set to LOW -->
                                    (L:407_ACond_Speed_Control,bool) !
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            2 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                    <!-- Speed set to HIGH -->
                                    (L:407_ACond_Speed_Control,bool)
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            2 (>L:Bell_407_AirCond_High, number)
                                          }
                                  }
                  </callback_code>
              </mouserect>
      </part>
           <!-- END: Air Conditioner Blow/Running Switch -->
     <!-- Air Conditioner Speed Switch-->
      <part>
          <name>bell407_AirCond_Speed_switch</name>
              <animation>
                  <parameter>
                      <code>
                          (L:407_ACond_Speed_Control,Bool) 50 *
                      </code>
                      <lag>300</lag>
                  </parameter>
              </animation>
              <mouserect>
                  <cursor>Hand</cursor>
                  <tooltip_text>Air Conditioner Speed Switch</tooltip_text>
                  <callback_code>
                    (L:407_ACond_Speed_Control,bool) ! (>L:407_ACond_Speed_Control,bool)
                    <!-- Click Sound Effect -->
                    1 (>L:Bell_407_Click, number)
                              <!-- Switch facing "up", Air Blow ON-->
                             (L:407_ACond_Switch,number) 1 ==
                                if{
                                    <!-- Speed set to LOW -->
                                    (L:407_ACond_Speed_Control, bool) !
                                        if{
                                            2 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                    <!-- Air Blow ON, Speed set to HIGH -->
                                    (L:407_ACond_Speed_Control,bool)
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            2 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                  }
                             <!-- Switch in facing "down", Air Conditioner ON -->
                             (L:407_ACond_Switch,number) -1 ==
                                if{
                                    <!-- Speed set to LOW -->
                                    (L:407_ACond_Speed_Control,bool) !
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            2 (>L:Bell_407_AirCond_Low, number)
                                            0 (>L:Bell_407_AirCond_High, number)
                                          }
                                    <!-- Speed set to HIGH -->
                                    (L:407_ACond_Speed_Control,bool)
                                        if{
                                            0 (>L:Bell_407_Blow_Low, number)
                                            0 (>L:Bell_407_Blow_High, number)
                                            0 (>L:Bell_407_AirCond_Low, number)
                                            2 (>L:Bell_407_AirCond_High, number)
                                          }
                                  }
                  </callback_code>
              </mouserect>
      </part>
Have fun!
 
#90
Thanks! At least now I know I don't need it since the panel will be 2D only :cool:

Did it as Bill suggested it at:
https://www.fsdeveloper.com/forum/threads/switch-1-2-3-4-5-4-3-2-1.32219/
with (L:KNOBPOSITION,number) ++ N min (>L:KNOBPOSITION,number) for UpArrow and (L:KNOBPOSITION,number) -- 0 max (>L:KNOBPOSITION,number) for DownArrow, where N is the number of the knob/switch positions minus 1.

I assume I will be able to read the L:KNOBPOSITION current value when the knob is turned/switched so I don't need additional LVars to read the knob positions?

Also gotta add tooltips to UpArrow & DownArrow to show the position like this:
Position (%('1' '2' '3' '4' '5' 5 (L:KNOBPOSITION,number) case )%!s!)

Will that work?
 
Last edited:
#93
Sorry, I don't understand what you are asking. if you set the background color to 0,0,0 *and* have no panel bitmap listed then you will have a transparent background to your panel. If you *have* a panel bitmap listed, then you do *not* need the background color specified at all, and any area in the panel bitmap that is color 0,0,0 will be transparent. You do *not* need to specify an alpha channel.

Hope this helps,
 
#95
No, what you ask will not do that, AFAIK. Gauge bitmaps work the same way as panel bitmaps - the color 0,0,0 will make the area transparent. Why do you need an alpha, and cannot just make that area 0,0,0 black?
 
#96
Why do you need an alpha, and cannot just make that area 0,0,0 black?
I dit it both black and with added alpha. Just like this:
p.jpg
Tested it in FS9 and it looks like that if I put a reference to a file in the panel window section like this:

Code:
[Window**]
file=Image.bmp
size_mm=xx
position=x
visible=0
ident=xxxxx

gauge00=Image!Image,  0,0
either the black area or added alpha is transparent.

But if I remove the reference and put it in the XML gauge instead like this:
XML:
<Image Name="Image.bmp" ImageSizes="X,Y" Bright="Yes" />
it is transparent (either alpha or black area) only with Background_color=0,0,0:

Code:
[Window**]
Background_color=0,0,0
size_mm=xx
position=x
visible=0
ident=xxxxx

gauge00=Image!Image,  0,0
If the Background_color is specified other than 0,0,0 - no transparency, the area around the panel is just black.
 
#97
Hi

Jim and Luka helped me in this regard as well. You might want to read the entire thread; however, I summarized a method that worked for me in #7:
https://www.fsdeveloper.com/forum/threads/imagetool-mistery-solved.438124/

By the way, here it is the code for the 2D altimeter in the images used in the thread above. There, you will find how to implement the alpha image on a gauge:
HTML:
<Gauge Name="Altimeter" Version="1.0">
    <Size X="750" Y="750"/>
    <Image Name="429_altimeter_front_card.bmp"/>
    <!--
     Bell 429 gauges Version 1.0
     Credits:
     Code based on original gauges by Thomas Röhl, Jordan Moore, Uwe Inger, Ken Mitchell and Manuel González;
     thank you all for allowing me to use their free software to learn.
     Nick Pike for his amazing tutorials.
     New graphics and additional programming by Sergio Kauffman.
   
     Copyright 2016 Bill Leaming, Tom Aguilo, Jordan Moore, George Arana, Thomas Röhl, Ken Mitchell, Uwe Inger, Manuel Gonzalez
     and Sergio Kauffman, All Rights Reserved.
     This software may not be copied, distributed modified, or otherwise included in any other works without permission from the Authors.
     -->
 
       <!-- ==========================A N A L O G    A L T I M E T E R======================================= -->
          <!-- ======================= Altitude Digital Readout ============================================== -->
            <Element>
                <Position X="208" Y="247"/>
                    <Text X="340" Y="100" Length="5" Fixed="Yes" Font="Arial" Color="#FFFFFF" Adjust="Center" VerticalAdjust="Center" Bright="Yes">
                        <String>%((A:Indicated Altitude, feet))%!05d!</String>
                    </Text>
            </Element>
          <!-- ======================= Altitude dashed window (first digit only); Below 10,000 feet ================= -->
            <Element>
              <Position X="202" Y="245"/>
                  <Visible>(A:Indicated Altitude, feet) 10000 &lt;</Visible>
                        <Image Name="altitude_analog_dashed_window.bmp" Bright="Yes"/>
                    <Failures>
                      <SYSTEM_ELECTRICAL_PANELS Action="0"/>
                  </Failures>
           </Element>
          <!-- ======================= Kollsman Digital reading setting inHg==================================== -->
            <Element>
                <Position X="204" Y="516"/>
                    <Text X="143" Y="66" Length="5" Fixed="Yes" Font="Arial" Color="#FFFFFF" Adjust="Center" VerticalAdjust="Center" Bright="Yes">
                        <String>%((A:Kohlsman setting hg, inHg))%!2.2f!</String>
                    </Text>
            </Element>
          <!-- ======================= Kohlsman Digital reading setting mb /hPa==================================== -->
            <Element>
                <Position X="408" Y="516"/>
                    <Text X="163" Y="66" Length="5" Fixed="Yes" Font="Arial" Color="#FFFFFF" Adjust="Center" VerticalAdjust="Center" Bright="Yes">
                        <String>%((A:Kohlsman setting hg, inHg) 33.85 * near)%!4.0f!</String>
                    </Text>
            </Element>
        <!-- ======================= 100 ft Altitude Needle ===================================================== -->
           <Element>
              <Position X="375" Y="375"/>
              <Image Name="429_altimeter_needle100.bmp">
                 <Axis X="375" Y="375" PointsTo="East"/>
              </Image>
              <Rotate>
                   <Value>(P:Units of measure, enum) 2 == if{ (A:Indicated Altitude, meters) } els{ (A:Indicated Altitude, feet) } 100 /</Value>
                   <Failures>
                        <GAUGE_ALTIMETER Action="Freeze"/>
                        <SYSTEM_PITOT_STATIC Action="Freeze"/>
                        <SYSTEM_ELECTRICAL_PANELS Action="Freeze"/>
                   </Failures>
                         <Nonlinearity>
                            <Item Value="0" X="374" Y="66"/>
                            <Item Value="5" X="374" Y="684"/>
                         </Nonlinearity>
              </Rotate>
           </Element>
          <!--======================= Altimeter Highlight ============================= -->
            <Element>
                <Position X="0" Y="0"/>
                <Image Name="429_altimeter_highlight_alpha.bmp" Alpha="Yes"/>
            </Element>

</Gauge>
All the best,
Sergio.
 
Last edited:
If I put PANEL_ID_TOGGLE to a 2 position switch the switch sound gets corrupted in the position where PANEL_ID_TOGGLE is. Any help would be most appreciated.
Corrupted? Do you mean that you are listening something different of what is supposed to be heard? For example, white noise or sound artifacts? If it is so, I could lend a hand -prior to have the sound source file-. A simple toggle ON/OFF action shouldn't be a problem in order to trigger the sound.

Sergio.
 
Last edited:
Top