- Messages
- 1,084
- Country

A/P (autopilot) warning light: Illuminated red flashing light warns pilot that the autopilot system is disengaged. This light is extinguished by activating the autopilot.
Below is the code for the autopilot master switch I found without any problem and installed. Next is the code I found here for a blinking light which I modified thank you MijoBerlin. The AP Warning gauge appears in FS Panel Designer but not on the panel when in FSX. I also need it to be conditional as the description above. Once someone can do the code for me for this I can modify it for 50 (no joke) other panel warning and caution lights. Caution lights do not blink, steady amber That may be a lot easier for me to do I hope. I can write XML code for simple switches and/or lights.
I am learning JUST enough XML code to get me in trouble LOL.
Below is the code for the autopilot master switch I found without any problem and installed. Next is the code I found here for a blinking light which I modified thank you MijoBerlin. The AP Warning gauge appears in FS Panel Designer but not on the panel when in FSX. I also need it to be conditional as the description above. Once someone can do the code for me for this I can modify it for 50 (no joke) other panel warning and caution lights. Caution lights do not blink, steady amber That may be a lot easier for me to do I hope. I can write XML code for simple switches and/or lights.
Code:
<Gauge Name="APS" Version="1.0">
<Element>
<Select>
<Value>(A:Autopilot master,bool)</Value>
<Case Value="0">
<Image Name="APS_off.bmp" ImageSizes="18,18"/>
</Case>
<Case Value="1">
<Image Name="APS_on.bmp" ImageSizes="18,18"/>
</Case>
</Select>
</Element>
<Mouse>
<Help ID="HELPID_GAUGE_AUTOPILOT_MASTER"/>
<Tooltip ID="APS Master Switch"/>
<Cursor Type="Hand"/>
<Click Event="AP_MASTER"/>
</Mouse>
</Gauge>
Code:
Gauge Name="AP_Warning" Version="1.0">
<Element>
<Visible>(P:Absolute time,seconds) 2 % 1 1 * > ! // no funktion --> and (L:ibf_test_r,bool) 50 == </Visible>
<Position X="434" Y="52"/>
<Select>
<Value>(L:ibf_test_r,bool) 1 == if{ (A:Avionics master switch, bool) (A:Electrical master battery, bool) 1 == && }</Value>
<Case Value="1">
<Image Name="AP_Warning_On.bmp"/>
</Case>
</Select>
</Element>
</Gauge>
I am learning JUST enough XML code to get me in trouble LOL.



