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

overhead gauges not working when clicked, help?

Messages
257
Country
us-newyork
hi, everyone!! i am nearly done with the A300 for my P3D. i am doing and i had gotten to get some switches clickable, the engine start and the selcal + call switch . If I do the engine anti-ice or the pitot heat (tool tip), it won't change to pitot-norm. what is off in red (minus the selcal+call switches) is what i have been trying to work on, amongst the other systems. How do i fix this?
1747112241501.png



here is the code for the xml of the pitot probe heat (F/O side) pitot is spaced out (because of the emoji it generates):

<Gauge Name="A300pitotfo" Version="1.0">
<Image Name="offswitch.bmp"/>

<Element>
<Visible>(A: PITOT HEAT SWITCH:1, bool) 1 ==</Visible>
<Element>
<Visible>(A: PITOT HEAT SWITCH:1, bool) 1 ==</Visible>
<Image Name="pitotnorm.bmp"/>
</Element>
</Element>

<Mouse>
<Tooltip>Pitot Heat</Tooltip>
<Cursor Type="Hand"/>
<Click>
(>K: PITOT_HEAT_TOGGLE)
</Click>
</Mouse>

<Element>
<Select>
<Value>
(A:ELECTRICAL MASTER BATTERY, bool) 0 == if{ 1 (>L:ADR1, bool) } else{ 0 (>L:ADR1, bool) }
</Value>
</Select>
</Element>
</Gauge>

what I'm trying to get it to show:
1747112195774.png
 
Here is what worked for me:

XML:
<Gauge Name="A300pitotfo" Version="1.0">

<Element>
      <Select>
         <Value>(A:Pitot heat,bool)</Value>
         <Case Value="0">
           <Image Name="offswitch.bmp"/>
         </Case>
         <Case Value="1">
           <Image Name="pitotnorm.bmp"/>
         </Case>
      </Select>
</Element>

<Element>
<Select>
<Value>
(A:ELECTRICAL MASTER BATTERY, bool) 0 == if{ 1 (>L:ADR1, bool) } else{ 0 (>L:ADR1, bool) }
</Value>
</Select>
</Element>

<Mouse>
<Tooltip>Pitot Heat</Tooltip>
<Cursor Type="Hand"/>
<Click>
(>K:PITOT_HEAT_TOGGLE)
</Click>
</Mouse>

</Gauge>

Hope this helps,
 
Here is what worked for me:

XML:
<Gauge Name="A300pitotfo" Version="1.0">

<Element>
      <Select>
         <Value>(A:Pitot heat,bool)</Value>
         <Case Value="0">
           <Image Name="offswitch.bmp"/>
         </Case>
         <Case Value="1">
           <Image Name="pitotnorm.bmp"/>
         </Case>
      </Select>
</Element>

<Element>
<Select>
<Value>
(A:ELECTRICAL MASTER BATTERY, bool) 0 == if{ 1 (>L:ADR1, bool) } else{ 0 (>L:ADR1, bool) }
</Value>
</Select>
</Element>

<Mouse>
<Tooltip>Pitot Heat</Tooltip>
<Cursor Type="Hand"/>
<Click>
(>K:PITOT_HEAT_TOGGLE)
</Click>
</Mouse>

</Gauge>

Hope this helps,
Thanks! I will try it
 
Here is what worked for me:

XML:
<Gauge Name="A300pitotfo" Version="1.0">

<Element>
      <Select>
         <Value>(A:Pitot heat,bool)</Value>
         <Case Value="0">
           <Image Name="offswitch.bmp"/>
         </Case>
         <Case Value="1">
           <Image Name="pitotnorm.bmp"/>
         </Case>
      </Select>
</Element>

<Element>
<Select>
<Value>
(A:ELECTRICAL MASTER BATTERY, bool) 0 == if{ 1 (>L:ADR1, bool) } else{ 0 (>L:ADR1, bool) }
</Value>
</Select>
</Element>

<Mouse>
<Tooltip>Pitot Heat</Tooltip>
<Cursor Type="Hand"/>
<Click>
(>K:PITOT_HEAT_TOGGLE)
</Click>
</Mouse>

</Gauge>

Hope this helps,
ran into an issue with the fuel pumps, sent you a message
 
Hi,

Does else{ 0 (&gt;L:ADR1, bool) } actually work?

I understood it should be els{ 0 (&gt;L:ADR1, bool) }

The gauge doesn't actually seem to object to the else{ version, but I have found that the command following it just didn't take place.

Things may have changed...

Walter
 
Back
Top