Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

XML Gauge Help Please?

Featured Replies

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.

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

Paul EGLD

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

Regards...Ken Greer EGPH

  • Author

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.

  • Moderator

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

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.