June 1, 201214 yr I would like to place the switch to the right and put the switch directly below the gauge like in the real aircraft. What values need to be edited? <Gauge Name="fuelqty" Version="1.0"> <Image Name="fuelqty.bmp"/> <Element> <Position X="113" Y="113"/> <Image Name="fuelqty_needle.bmp" PointsTo="east"> <Axis X="44" Y="10"/> </Image> <Rotate> <Value Minimum="0" Maximum="7000">(L:Fuel tank, enum) 0 == if{ (A:Fuel tank left tip quantity, gallons) 6.6 * } (L:Fuel tank, enum) 1 == if{ (A:Fuel tank left main quantity, gallons) 6.6 * } (L:Fuel tank, enum) 2 == if{ (A:Fuel tank center quantity, gallons) 6.6 * } (L:Fuel tank, enum) 3 == if{ (A:Fuel tank right main quantity, gallons) 6.6 * } (L:Fuel tank, enum) 4 == if{ (A:Fuel tank right tip quantity, gallons) 6.6 * } (L:Fuel tank, enum) 5 == if{ (A:Fuel total quantity, gallons) 6.6 * }</Value> <Nonlinearity> <Item Value="0" X="66" Y="189"/> <Item Value="7000" X="159" Y="189"/> </Nonlinearity> <Delay DegreesPerSecond="180"/> </Rotate> </Element> <Element> <Position X="0" Y="0"/> <Select> <Value>(L:Fuel tank,enum)</Value> <Failures> <SYSTEM_ELECTRICAL_PANELS Action="0"/> </Failures> <Case Value="0"> <Image Name="fuelqty_0.bmp"/> </Case> <Case Value="1"> <Image Name="fuelqty_1.bmp"/> </Case> <Case Value="2"> <Image Name="fuelqty_2.bmp"/> </Case> <Case Value="3"> <Image Name="fuelqty_3.bmp"/> </Case> <Case Value="4"> <Image Name="fuelqty_4.bmp"/> </Case> <Case Value="5"> <Image Name="fuelqty_5.bmp"/> </Case> </Select> </Element> <Mouse> <Area Left="244" Right="328" Top="38" Bottom="179"> <Click>(L:Fuel tank,enum) 0 > if{ (L:Fuel tank,enum) 1 - (>L:Fuel tank,enum)</Click> <Cursor Type="DownArrow" Repeat="Yes"/> </Area> <Area Left="329" Right="423" Top="38" Bottom="179"> <Click>(L:Fuel tank,enum) 5 < if{ (L:Fuel tank,enum) 1 + (>L:Fuel tank,enum)</Click> <Cursor Type="UpArrow" Repeat="Yes"/> </Area> </Mouse> </Gauge> I would like the switch to look like this.
June 1, 201214 yr You 'll have to experiment with the x=".." and y=".." coordinates in the <Position> tags i think. Jan "Beatus ille qui procul negotiis..."
June 1, 201214 yr Author I just want to move the switch. So which position value would that be? I assume I ll have to edit the area value as well under the mouse value correct?
June 1, 201214 yr It is the second <pos> and yes you must edit the click areas too. Jan "Beatus ille qui procul negotiis..."
June 2, 201214 yr Author What value is the click areas? Is it the area value? I do not understand the left, right, top, bottom numerical format. Do these values rotate the knob?
June 2, 201214 yr <Area Left="..." Right="..." Top="..." Bottom="..."> are the coordinates of the area in your background bitmap, fuelqty.bmp, where you can click the knob. Jan "Beatus ille qui procul negotiis..."
June 2, 201214 yr Have a look at this reference which I use a lot:- http://www.fs2x.com/Tutorials_files/XML%20Gauge%20Programming%20for%20FS2004.%20Chapter%201.%20Main%20Body%20Sections%20V2_0.pdf Ted.
June 2, 201214 yr Moderator You would also have to edit the background image if you wish the switch to be below the gauge face as shown in your example picture! Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
Create an account or sign in to comment