Search the archive:
Simviation Main Site
|
Site Search
|
Upload Images
Simviation Forum
›
Design Forums
›
Scenery & Panel Design
› Shadin Fuel Management Gauge
(Moderators: Mitch., Fly2e, ozzy72, beaky, Clipper, JBaymore, Bob70, BigTruck)
‹
Previous Topic
|
Next Topic
›
Pages: 1
Shadin Fuel Management Gauge (Read 112 times)
Mar 26
th
, 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 + (>L:addfuelcount,number) (L:addfuelcount,number) 3 == if{ 0 (>L:addfuel,bool) 0 (>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
Back to top
IP Logged
Reply #1 -
Mar 26
th
, 2004 at 11:02am
garymbuska
Offline
Colonel
I would rather be flying
Jacksonville, Florida
Gender:
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 - (>L:minusfuelcount,number) (L:minusfuelcount,number) 3 == if{ 0 (>L:minusfuel,bool) 0 (>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 .
Back to top
IP Logged
Pages: 1
‹
Previous Topic
|
Next Topic
›
« Home
‹ Board
Top of this page
Forum Jump »
Home
» 10 most recent Posts
» 10 most recent Topics
Current Flight Simulator Series
- Flight Simulator X
- FS 2004 - A Century of Flight
- Adding Aircraft Traffic (AI) & Gates
- Flight School
- Flightgear
- MS Flight
Graphic Gallery
- Simviation Screenshots Showcase
- Screenshot Contest
- Edited Screenshots
- Photos & Cameras
- Payware Screenshot Showcase
- Studio V Screenshot Workshop
- Video
- The Cage
Design Forums
- Aircraft & 3D Design
- Scenery & Panel Design ««
- Aircraft Repainting
- Designer Feedback
General
- General Discussion
- Humour
- Music, Arts & Entertainment
- Sport
Computer Hardware & Software Forum
- Hardware
- Tweaking & Overclocking
- Computer Games & Software
- HomeBuild Cockpits
Addons Most Wanted
- Aircraft Wanted
- Other Add-ons Wanted
Real World
- Real Aviation
- Specific Aircraft Types
- Autos
- History
On-line Interactive Flying
- Virtual Airlines Events & Messages
- Multiplayer
Simviation Site
- Simviation News & Info
- Suggestions for these forums
- Site Questions & Feedback
- Site Problems & Broken Links
Combat Flight Simulators
- Combat Flight Simulator 3
- Combat Flight Simulator 2
- Combat Flight Simulator
- CFS Development
- IL-2 Sturmovik
Other Websites
- Your Site
- Other Sites
Payware
- Payware
Old Flight Simulator Series
- FS 2002
- FS 2000
- Flight Simulator 98
Simviation Forum
» Powered by
YaBB 2.5 AE
!
YaBB Forum Software
© 2000-2010. All Rights Reserved.