README.add-ons: minor change
The property-rule configuration file was probably a bad example, because I believe the path has to be specified inside a PropertyList file (so far). It can thus be done with the '[addon=ADDON_ID]relative/path' syntax so as to ensure the file is found by flightgear::addons::ResourceProvider, however in this particular case, addons.Addon.resourcePath() is probably not going to be very useful.
This commit is contained in:
parent
acd54efff7
commit
9556b901ee
1 changed files with 3 additions and 4 deletions
|
@ -553,10 +553,9 @@ Member functions (methods) of addons.Addon objects:
|
|||
Return a resource path suitable for use with the
|
||||
simgear::ResourceManager. 'relPath' must be
|
||||
relative to the add-on base directory, and
|
||||
mustn't start with a '/'. You should use this
|
||||
method to load for instance a property-rule
|
||||
configuration file, or an image to display in a
|
||||
Canvas widget.
|
||||
mustn't start with a '/'. You can use this
|
||||
method for instance to specify an image file for
|
||||
display in a Canvas widget.
|
||||
|
||||
In you want a full path to the resource file
|
||||
(e.g., for troubleshooting), call resolvepath()
|
||||
|
|
Loading…
Add table
Reference in a new issue