library.listAddOnLibraries: Difference between revisions
Jump to navigation
Jump to search
m (Turn off 'proposed') |
m (Added new Category tag) |
||
Line 8: | Line 8: | ||
|usage= | |usage= | ||
< | <source lang="mtmacro" line> | ||
library.listAddOnLibraries() | library.listAddOnLibraries() | ||
</ | </source> | ||
'''Parameters''' | '''Parameters''' | ||
{{param|None|-}} | {{param|None|-}} | ||
Line 16: | Line 16: | ||
|example= | |example= | ||
List loaded Add-Ons. | List loaded Add-Ons. | ||
< | <source lang="mtmacro" line> | ||
Add-On Libraries Loaded:<br> | Add-On Libraries Loaded:<br> | ||
<pre>[r: json.indent(library.listAddOnLibraries(),2)]</pre> | <pre>[r: json.indent(library.listAddOnLibraries(),2)]</pre> | ||
</ | </source> | ||
Returns: | Returns: | ||
< | <source lang="mtmacro"> | ||
Add-On Libraries Loaded: | Add-On Libraries Loaded: | ||
[{ | [{ | ||
Line 35: | Line 35: | ||
"allowsUrlAccess": true | "allowsUrlAccess": true | ||
}] | }] | ||
</ | </source> | ||
|also= | |also= | ||
Line 44: | Line 44: | ||
}} | }} | ||
[[Category:Library Function]] | [[Category:Library Function]] | ||
[[Category:Add-on Library Functions]] |
Revision as of 03:34, 11 February 2024
library.listAddOnLibraries() Function
• Introduced in version 1.11.0
List Add-On libraries loaded from
.mtlib
files. Information is returned as an array of JSON objects.Usage
library.listAddOnLibraries()
Parameters
None
- -
Example
List loaded Add-Ons.
Add-On Libraries Loaded:<br>
<pre>[r: json.indent(library.listAddOnLibraries(),2)]</pre>
Returns:
Add-On Libraries Loaded:
[{
"name": "some-lib",
"namespace": "net.rptools.addon.some-lib",
"version": "1.0.0",
"website": "www.rptools.net",
"gitUrl": "github.com/RPTools/maptool",
"authors": ["RPTools Team"],
"license": "GPL 3.0",
"description": "My new test library for stuff",
"shortDescription": "test library",
"allowsUrlAccess": true
}]
See Also
Version Changes
- 1.11.0 - Function added