- Messages
- 1,035
- Country

I have spent 2 days trying to get this to rotate properly and frankly I am worse off now than when I started. Can someone please correct this XML code so that it will be positioned properly and rotate properly. In FSPanel Studio I have the gauge handle exactly where it belongs in the center of the background bmp but when I open it up in FSX it gets more off center every time. It DOES rotate properly BUT the handle is all "discomboobilated" sorry for being so technical with the error. LOL! Here is the code that I have modified:
Code:
<Gauge Name="fuel_gauge_selector" Version="1.0">
<Image Name="fuel_gauge_selector_background.bmp"/>
<Element>
<Position X="60" Y="20"/>
<Image Name="fuel_gauge_selector_knob.bmp" PointsTo="North" UseTransparency="Yes">
<Axis X="30" Y="10"/>
</Image>
<Rotate>
<Value>(L:Fuel Gauge Switch, enum)</Value>
<Nonlinearity>
<Item Value="0" X="22" Y="42"/>
<Item Value="1" X="48" Y="20"/>
<Item Value="2" X="76" Y="42"/>
<Item Value="3" X="42" Y="22"/>
</Nonlinearity>
<Delay DegreesPerSecond="360"/>
</Rotate>
</Element>
<Mouse>
<Help ID="HELPID_SPITFIRE_FUEL_SELECTOR"/>
<Tooltip ID="TOOLTIPTEXT_FUEL_GAUGE_SELECTOR"/>
<Area Left="0" Right="0" Width="100" Height="100">
<Area Right="50">
<Cursor Type="DownArrow"/>
<Click>(L:Fuel Gauge Switch, enum) -- d 0 < if{ 0 } (>L:Fuel Gauge Switch, enum)</Click>
</Area>
<Area Left="51">
<Cursor Type="UpArrow"/>
<Click>(L:Fuel Gauge Switch, enum) ++ d 2 > if{ 2 } (>L:Fuel Gauge Switch, enum)</Click>
</Area>
</Area>
</Mouse>
Here is a link to the folder with the bmps and the xml code: https://www.mediafire.com/file/jkvn6caxowrqgzv/fuel_gauge_selector.zip/file
</Gauge>




