Archived

This topic is now archived and is closed to further replies.

Bob Familton

XML Gauge Help Please?

Recommended Posts

I am trying to make an XML gauge that will allow me to fire my guns on a plane. It has to toggle the Carb Heat (H on the keyboard). Here is my gauge:(A:General eng1 anti ice position,bool)Gun ControlIt does not work. What am I doing wrong? I am no XML expert at all. Thanks, regards, Bob.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi Bob.I am no expert either but I received some help from the guys regarding a gauge I was attempting. I think that the ENG1 ANTI ICE variable you declared in the entry needs also to be declared in the CLICK line along with the bool part So take a look at my CAB Files post and my Simple on/off switch post a few posts down and see if that info helps you out.Regards...Kenny

Share this post


Link to post
Share on other sites

Hi Kenny. OK. Thanks. I'll try that as pve suggested the same thing. Best regards, Bob.

Share this post


Link to post
Share on other sites

I tried all the suggestions given. It still does not work. I put the Cessna182rg!Carb_Heat gauge next to it in my panel. When I click on that gauge the switch in my gauge toggles once each time I click on the Cessna gauge and the guns fire. My gauge does not toggle when clicked on by itself and does not fire the guns. Regards, Bob.

Share this post


Link to post
Share on other sites

The missing "(" and the wrong key event are the problems. There is NO such key event command as "CARB_HEAT_TOGGLE"...

<Gauge Name="Gun Control Switch" Version="1.0">   <Element>	   <Select>		 <Value> (A:General eng1 anti ice position,bool)</Value>		 <Case Value="0">			  <Image Name="switch_off.bmp"/>		 </Case>		 <Case Value="1">			  <Image Name="switch_on.bmp"/>		 </Case>	   </Select>   </Element>   <Mouse>	  <Tooltip>Gun Control</Tooltip>	  <Cursor Type="Hand"/>	  <Click Event="ANTI_ICE_TOGGLE_ENG1"/>   </Mouse></Gauge>

Share this post


Link to post
Share on other sites