Gauge: dsd_xml_config.gau

Panel.cfg Syntax:
gauge22=dsd_xml_config!config,  5,5,5,, ./gauges/your_config_file_name.ini
gauge23=dsd_xml_config!display,  539,641,460,115

This gauge will read up to 100 values from the config file, and assign them to corresponding XML L:Vars, on panel load.  When the panel is unloaded, and when the flight is saved, the current values from the LVars will be written back to the config file.  The attached example .ini file shows default settings.  Specifying a value less than 100 will result in less memory usage and so is encouraged if possible.

Version 2.1 of the gauge will save L:Vars on a periodic basis.  Use the "Interval" configuration setting to specify the number of seconds between saves.  The default value is zero, resulting in no periodic saves, so if you want to use this feature, you will need to specify a positive value for this parameter.

Version 2.3: If you do not specify the name of an .ini file, the gauge will check its own fully qualified name (including the drive and path).  It will then substitute ".ini" in place of ".gau" in that fully qualified name, and use the result as the name of the .ini file.  This process is designed to make it easier to use multiple instances of the gauge without worrying about conflicting versions of the .ini file.  If you put the gauge in the aircraft's panel folder, you can easily have a separate instance of the gauge for each panel that requires it.  Also, the gauge can be renamed, and this feature will work the same way, just with the different base file name.

The attached .ini file is a sample only, any LVar names can be specified.   For example, a config entry like this:
Lvar_00=MyXML_Variable
will specify the XML variable (L:MyXML_Variable, number)
C gauges treat all LVars as floats, but if you are careful with the values you use, there is no reason why you can't specify enum or bool as the variable type within your own XML gauge.

Use the visible "display" gauge element to check the values and variables that the gauge is using.  Useful for debugging purposes only, it would not be included in your final project panel.

Use of this gauge in freeware projects is unrestricted.  Use in Commercial projects will require a licensing agreement with me.

Doug Dawson
douglassdawson@netscape.net
Ottawa, Canada
August 24 2013