• 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 combining two different gauges

Messages
1,468
Country
italy
Is it possible to combine these two gauges?
Currently as seen here they are both separately activated by a click. What I have in mind if possible is:-
1. is to click shut the doors
2. Some time later (say a minute) the elements of the second which triggers a light and plays a sound to be activated automatically without being clicked.
Can this be done and if so how? Many thanks
vololiberista
Code:
<Gauge Name="Doorcontrol" Version="0.1">

<!-- DISPLAY =============================================== -->
<!-- Main Exit - Display -->
<Element>
		<Visible>(A:CANOPY OPEN,enum) 0 &gt; (A:CANOPY OPEN,enum) 1 &lt; &amp;&amp;</Visible>
		<Image Name="BLUE_ON.bmp" Bright="Yes"/>
		<Position X="4.5" Y="0.5"/>
</Element>
<Element>
		<Visible>(A:CANOPY OPEN,enum) 1 ==</Visible>
		<Image Name="RED_ON2.bmp"  Bright="Yes"/>
		<Position X="1.5" Y="52.0"/>
</Element>

	
<!-- MOUSE BUTTONS ==================================================== -->	
	<Mouse>
<Help_none/>

<!-- Main Exit - Button -->
	<Area Left="6" Top="6" Width="30" Height="65">
		 <Click> (&gt;K:TOGGLE_AIRCRAFT_EXIT)  1 (>L:Sound_door,enum)</Click>
		<Cursor Type="Hand"/>
    </Area>


</Mouse>
</Gauge>
Code:
<Gauge Name="Cabin call 1" Version="1.0">
<Element>
      <Select>
         <Value>(L:CABIN CALL,number)</Value>
         <Case Value="0">
            <Image Name="SWAP.bmp"/>
         </Case>
         <Case Value="1">
            <Image Name="SWAP.bmp"/>
         </Case>
      </Select>
   </Element>
   <Mouse>
         <Tooltip>Cabin call (Pre-Taxi Check)</Tooltip>
         <Cursor Type="Hand"/>
	<Click Repeat="Yes">1
    (L:CABIN CALL,number) ! (&gt;L:CABIN CALL,number)
     (L:CABIN CALL,number) 1 ==
 if{
            (P:local time, seconds) 0.1 + (>L:CAB LIGHT 1,number)
            (P:local time, seconds) 20.5 + (>L:CAB LIGHT 2,number)
       }
1 (>L:Sound_mes1,enum)
</Click>
   </Mouse>
</Gauge>
 
You can merge Gauges together without problem. One would just stack the Element sections and the Mouse click zones, and check through the codes to make sure they do not share the exact same command strings. If they do, they will of course have the same result on the click zone.

Small note, you cannot 'overlap' a click zone. If you do, the clickzone with either not work or the gauge will malfunction, (if I remember correctly). You 'can' overlap Clickzones 'if' you use visibility-active click zones. One places a <Visible> string with a 'condition' in a 'clickzone' paragraph (block) that would allow that clickzone to function for a 'active' visible control instance.


Bill
 
Last edited:
Back
Top