Sign in to follow this  
DC-3 Hack

Four Tank Fuel Gauge

Recommended Posts

Can one of you kind souls tell an old dumb guy why the tooltips won't read on this? Tanks are; LeftMainRightMainLeftAuxRightAuxThis message box sure scatters the code around huh!!!Thanks John

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

>Can one of you kind souls tell an old dumb guy why the>tooltips won't read on this? Tanks are;> >LeftMain>RightMain>LeftAux>RightAux>>> > > -SNIP- removed for brevity...> >>This message box sure scatters the code around huh!!!>>Thanks John You might try something like this, John. Although a bit "wordier", I know that it does work. Replace your "" with this: Left Main Tank (%((A:Fuel tank left main quantity, gallons) 6.7 * flr)%!d! lbs) Paul

Share this post


Link to post
Share on other sites

Paul thanks very much. That string works like a champ. Uhhh,, what part of the brackets would I have to remove to read in gallons. Some of the folks in DC3 Airways like gallons readout, for myself I had rather have lbs so I will use it as is. I made this four tank gauge maybe a year ago after one of our pilots took a pic of it in a DC3. I made it from the pic.John

Share this post


Link to post
Share on other sites

Left Main Tank (%((A:Fuel tank left main quantity, gallons))%!d! gals)

Share this post


Link to post
Share on other sites

>Paul thanks very much. That string works like a champ. Uhhh,,>what part of the brackets would I have to remove to read in>gallons. Some of the folks in DC3 Airways like gallons>readout, for myself I had rather have lbs so I will use it as>is. I made this four tank gauge maybe a year ago after one of>our pilots took a pic of it in a DC3. I made it from the pic.>>John Lets see if I can do this without screwing it up :) Left Main Tank (%(A:Fuel tank left main quantity, gallons) %!d! Gal)I think that will do it...the "6.7 * flr" part converts the gallonsreturned by the "(A:Fuel tank left main quantity, gallons)" partof the statement to pounds ( multiples gallaons by 6.7 )The "!d! lbs" part defines the numeriacl string conversion andadds the text "lbs", so the becomes "!d! Gal" for your use."Gal" can be "Gallons" if you wish.Here's a statement that will display the fuel state in percent:Right Tank (%((A:FUEL RIGHT QUANTITY, gallons) (A:FUEL RIGHT CAPACITY, gallons) / 100 * near)%!d!%%)By looking at various structures in the XML code you can begin tounderstand what does what :) Paul

Share this post


Link to post
Share on other sites

Bill is........ THE MASTER of the tooltips :-)Regards,Roman[a href=http://www.wheelchairaviators.org][/a]

Share this post


Link to post
Share on other sites

Thanks Bill and Paul. After a bit I think I could replace the 6.7 with 1.0 and it would prob work. And Paul your right, by looking at the string it comes to make sense even to me. LOL I wish there was a better tutorial on this than the MS sdk.John

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