Jump to content
Sign in to follow this  
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

Hi Bob Maybe you need ENG1 ANTI ICE bool in the value


Paul EGLD

Share this post


Link to post
Share on other sites

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

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>


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...