Modifying an existing gauge should be easy... I think;Have not tried though.
Modifying a gauge for personal use shoud be ok I guess.
Example for Vega asi gauge.
1. Open fs9 folder..\Aircraft\lockheed_vega\panel\lockheed_vega.cab (doubleclicking should open the .cab file, otherwise use winzip or another decompressor)
2. Copy the files
asi.xml
asi_background.bmp
asi_needle.bmp
to a new folder. Call this folder "TAS gauge" for example.
(You probably have to extract these from the .cab to some place first.)
3. Rename asi.xml to TAS.xml (just for the looks) in this folder.
4. Open TAS.xml with notepad and edit the following lines:
a) <
Gauge Name="asi" Version="1.0">
change to
<
Gauge Name="TAS" Version="1.0"> (just for the looks)
b)
(A:Airspeed select indicated or true, mph)
change to
(A:AIRSPEED TRUE, mph) or
(A:AIRSPEED TRUE, knot)
(Parameters in the "Parameters.doc" in the Panel and Gauges sdk.)
Note the images referenced by the gauge (within the <image> tags, in italics below). These have to be in the same folter as the .xml file.
Save and you're done.
Control the TAS file has extension .xml, otherwise manually change extension to .xml.
Code:
<[B]Gauge Name="asi"[/B] Version="1.0">
[I]<Image Name="asi_background.bmp"/>[/I]
<!-- ======================= Airspeed Needle ===================== -->
<Element>
<Position X="56.4" Y="57.4"/>
[I] <Image Name="asi_needle.bmp" PointsTo="North">[/I]
<Axis X="4.39999" Y="47.4"/>
</Image>
<Rotate>
<Value Minimum="0" Maximum="300">
[B] (A:Airspeed select indicated or true, mph) [/B]
</Value>
<Failures>
<SYSTEM_PITOT_STATIC Action="0"/>
<GAUGE_AIRSPEED Action="Freeze"/>
</Failures>
<Nonlinearity>
<Item Value="0" X="57" Y="5"/>
<Item Value="40" X="93" Y="21"/>
<Item Value="60" X="104" Y="37"/>
<Item Value="80" X="108" Y="57"/>
<Item Value="100" X="104" Y="77"/>
<Item Value="120" X="93" Y="94"/>
<Item Value="140" X="77" Y="104"/>
<Item Value="160" X="57" Y="108"/>
<Item Value="200" X="20" Y="93"/>
<Item Value="240" X="5" Y="57"/>
<Item Value="300" X="37" Y="10"/>
</Nonlinearity>
<Delay DegreesPerSecond="25"/>
</Rotate>
</Element>
<Mouse>
<Help ID="HELPID_GAUGE_AIRSPEED"/>
<Tooltip ID="TOOLTIPTEXT_AIRSPEED_MPH" MetircID="TOOLTIPTEXT_AIRSPEED_KILOS"/>
</Mouse>
</Gauge>
5. For the looks a few changes to the .xml file are possible like adjusting the help popups ect.
The "asi_background.bmp" image has a marking as "mph". If you display knots you may want to edit the .bmp file.
But all this is optional.
6. Put the "TAS gauge" folder into the main \Gauges folder (for the gauge to be available for all acft)
or
into the panel folder for the gauge only to be available to a specific aircraft.
(No need for cabbing the folder.)
7. Add the gauge to your panel.cfg in the normal way.
Note native size of the gauge is 114x114 pixel, the size of "asi_background.bmp".
e.g.
gauge00=TAS Gauge!TAS,0,0,114,114
I believe this should work.
Gunter