Input file structure
The input file for the EM Settings generator is an XML file. For examples look at the two files called "settings.xml" in
{EM}/examples/settings/settings_simple and {EM}/example/settings/settings_with_widgets.
The XML file has the same stucture as the input files of the resource generator.
The following tags are valid:
-
Section
You have to specify at least one section in your XML file. This tag requires the attribute "name" to specify the name of the section.
-
Setting
In the "Setting" tag you have to give "type", "name" and "default" as attributes. Optionally you can specify a widget. See Supported Widgets for more information.
-
Prefix
This tag is optional and can be used to specify prefixes for the attributes in subsequent tags.
For example, if you specify a prefix 'name="audio_"' in this tag, and in a subsequent setting tag you have an attribute 'name="volume"', then this will result in the name "audio_volume".
Supported Types
The EM Settings Generator supports the following types for the settings items:
-
Integer
-
Boolean
-
Double
-
String
Supported Widgets
The EM Settings Generator supports the following widgets for the settings items:
-
Checkbox
-
Slider
-
Combobox
-
Textlist
Needed attributes for widgets
Some widgets require further attributes in order to work:-
Checkbox
Requires no further attributes.
-
Slider
The slider requires a minimum and a maximum value which have to be specified with "min" and "max".
-
Combobox
The Combobox requires a list of entries, which can be set using the attribute "list". The items of the list are separated by the character '|'.
-
Textlist
Same requirements as the Combobox.