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.

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
December 30, 2011