Action defaults / Usage |
Global action defaults are defined in an XML file with the 4ad extension. By default, the runtime system searches for a file named default.4ad in the current directory. If the file does not exist, it searches in the directories defined by the FGLRESOURCEPATH (or DBPATH) environment variable. If no file was found using the environment variable(s), standard action default settings are loaded from the FGLDIR/lib/default.4ad file.
You can override the default search by loading a specific action defaults file with the ui.Interface.loadActionDefaults() method. This method accepts a filename with or without the 4adextension. If you omit the file extension (recommended), the runtime system adds the extension automatically. If the file does not exist, it searches in the directories defined by the FGLRESOURCEPATH (or DBPATH) environment variable(s).