Hello All:
I am having some difficulties in getting my first xml gauge to work. The bmp's display on the plane after I cab the codes and place it. However the gauge does not work. Can someone tell me what changes that I need to make?
Here is the code for the switch that does switch on and off but does not turn the other gauge on.
<Gauge Name="380periscope" Version="1.0">
<!-- start the on and off button -->
<Element>
<Select>
<Value> (L:ThreeEightyPeriscopeSwitch, bool)</Value>
<Case Value="0">
<Image Name="button_off.bmp" UseTransparency="Yes" ImageSizes="54,54"/>
</Case>
<Case Value="1">
<Image Name="button_on.bmp" UseTransparency="Yes" ImageSizes="54,54"/>
</Case>
</Select>
</Element>
<Mouse>
<Area Left="0" Right="54" Top="0" Bottom="54">
<Tooltip ID="380PERISCOPE ON/OFF"/>
<Cursor Type="Hand"/>
<Click>
(L:ThreeEightyPeriscopeSwitch, bool) ! (>L:ThreeEightyPeriscopeSwitch, bool)
</Click>
</Area>
</Mouse>
</Gauge>
Here is the code for the primary gauge:
<Gauge Name="380periscope" Version="1.0">
<Image Name="mainCRtransparent.bmp" />
<Size X="125" Y="171"/>
<!-- ======================= The View =================== -->
<Element>
<Position X="123" Y="169"/>
<CustomDraw Name="fs9view:view" X="123" Y="169" Zoom="5.0" Pitch="0" Bank="0" Heading="0" OffsetUp="10" OffsetForward="-10.0">
<On>(G:Var1) 0 ></On>
<OffsetRight>(G:Var1) 0.00 *</OffsetRight>
</CustomDraw>
</Element>
<!-- ======================= Viewport Window ================== -->
<Element>
<Size X="125" Y="171"/>
<Visible>(A:Circuit general panel on, bool)</Visible>
<Element>
<Visible>(L:ThreeEightyPeriscopeSwitch, bool)</Visible>
<Position X="0" Y="0"/>
<Element>
<Select>
<Value> (L:ThreeEightyPeriscopeSwitch, bool)</Value>
<Case Value="0">
<Image Name="mainCR.bmp" UseTransparency="Yes" />
</Case>
<Case Value="1">
<Image Name="mainCRtransparent.bmp" UseTransparency="Yes" />
</Case>
</Select>
</Element>
</Gauge>
Also, how would I code the primary gauge so it will activate with the switch.
Any relevant Help Welcome
ty Recency