Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
Simple fuel boost pump switch/solved (Read 214 times)
Mar 19th, 2006 at 7:00am

oldliner52   Offline
Colonel
jet mechanic

Posts: 23
*****
 
Hi everybody, here is my problem:
I want to create a simple fuel boost pump switch in 2D cockpit, like this:
<Gauge Name="Fuel Pump Switch" Version="1.0">
  <Element>
     <Select>
        <Value>(A:General fuel pump switch,bool)</Value>
        <Case Value="0">
           <Image Name="switch_Off.bmp" ImageSizes="29,40"/>
        </Case>
        <Case Value="1">
           <Image Name="switch_on.bmp" ImageSizes="29,40"/>
        </Case>
     </Select>
  </Element>
  <Mouse>
     <Help ID="HELPID_GAUGE_BOOST_PUMP_SWITCH"/>
     <Tooltip ID="">Fuel Boost Pump Switch</Tooltip>
     <Cursor Type="Hand"/>
     <Click Event="TOGGLE_ELECT_FUEL_PUMP1"/>
  </Mouse>
</Gauge>
All is good! when I click on the switch, fuel pressure grows up, but the switch doesn't flip to "on" position. Sure, I done a mistake but I can't find where.
The two bmp (switch_off and switch_on) are present and work well with another gauges (battery and pitot heat).
Many thanks for help,
Regards, Michel.
« Last Edit: Mar 20th, 2006 at 8:58pm by oldliner52 »  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print