Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
Shadin Fuel Management Gauge (Read 112 times)
Mar 26th, 2004 at 8:52am

Jaybe   Offline
Colonel
I love YaBB 1G - SP1!

Posts: 12
*****
 
I need some help from one of you XML Guru's
This gauge works ok in FS9 but what I need is a code change so the gauge will decrement fuel quanity as well as add. The mouseover naturally gives only +.

<Element>
     <Position X="209" Y="213"/>
     <Select>
        <Value>(L:addfuel,bool) if{ (L:addfuelcount,number) 1 + (&gt;L:addfuelcount,number) (L:addfuelcount,number) 3 == if{ 0 (&gt;L:addfuel,bool) 0 (&gt;L:addfuelcount,number) } } (L:addfuel,bool)</Value>
        <Case Value="0">
           <Image Name="HW_Shadin_add.bmp" Luminous="Yes" ImageSizes="32,30"/>
        </Case>
        <Case Value="1">
           <Image Name="HW_Shadin_add_up.bmp" Luminous="Yes" ImageSizes="32,30"/>
        </Case>
     </Select>
   </Element>

Thanks,,John
 
IP Logged
 
Reply #1 - Mar 26th, 2004 at 11:02am

garymbuska   Offline
Colonel
I would rather be flying
Jacksonville, Florida

Gender: male
Posts: 2850
*****
 
Jaybe I am not sure if this will work but nothing ventured nothing gained. Use this line in place of the other on like it
   <Element>
    <Position X="209" Y="213"/>
    <Select>
      <Value>(L:minusfuel,bool) if{ (L:minusfuelcount,number) 1 - (&gt;L:minusfuelcount,number) (L:minusfuelcount,number) 3 == if{ 0 (&gt;L:minusfuel,bool) 0 (&gt;L:minusfuelcount,number) } } (L:minusfuel,bool)</Value>
and then the rest of the code .
Not sure but you might have to use a different perameter other than (L)

This is basically the same thing you had but in reverse instead but in theory should work the 1+ adds so the 1- should subtract. I used minusfuel instead of addfuel just to keep things clear as to what it is doing.
 Hope it helps I am not a expert at XML but I use to be a programmer so I have an idea of what it is doing .
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print