October 6, 200817 yr 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.
October 7, 200817 yr 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
October 7, 200817 yr Author Hi Kenny. OK. Thanks. I'll try that as pve suggested the same thing. Best regards, Bob.
October 7, 200817 yr 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.
October 7, 200817 yr 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