I'm trying to make a 2D pop up gauge to control visibility of some ground equipment in the external mdl and also the vc mdl - at least where physically visible.
The gauge uses simple switches to set the L:var, but the part isn't controlled by it.
<PartInfo>
<Name>ge_equipment</Name>
<Visibility>
<Parameter>
<Code>(L:ge_equipment, bool) 1 == if{ 1 } els{ 0 }</Code>
</Parameter>
</Visibility>
</PartInfo>
<Gauge Name="GE equipment" Version="1.0">
<Element>
<Select>
<Value>(L:ge_equipment, bool)</Value>
<Case Value="0">
<Image Name="ECU_SW_OFF.bmp" />
</Case>
<Case Value="1">
<Image Name="ECU_SW_ON.bmp" />
</Case>
</Select>
</Element>
<Mouse>
<Cursor Type="Hand"/>
<Click>(L:ge_equipment,bool) ! (>L:ge_equipment,bool)</Click>
</Mouse>
</Gauge>
What am I doing wrong, or can L:vars not be passed this way?
The gauge uses simple switches to set the L:var, but the part isn't controlled by it.
<PartInfo>
<Name>ge_equipment</Name>
<Visibility>
<Parameter>
<Code>(L:ge_equipment, bool) 1 == if{ 1 } els{ 0 }</Code>
</Parameter>
</Visibility>
</PartInfo>
<Gauge Name="GE equipment" Version="1.0">
<Element>
<Select>
<Value>(L:ge_equipment, bool)</Value>
<Case Value="0">
<Image Name="ECU_SW_OFF.bmp" />
</Case>
<Case Value="1">
<Image Name="ECU_SW_ON.bmp" />
</Case>
</Select>
</Element>
<Mouse>
<Cursor Type="Hand"/>
<Click>(L:ge_equipment,bool) ! (>L:ge_equipment,bool)</Click>
</Mouse>
</Gauge>
What am I doing wrong, or can L:vars not be passed this way?

