Lua/FFI function changes
| | |
---|
Lua | GetComponentFactionName() | removed - use FFI GetOwnerDetails() |
Lua | GetFactionDetails() | removed - use FFI GetFactionDetails() / Lua GetLibraryEntry() |
Lua | GetRelationComponentStatus() | removed - use FFI GetRelationStatus() |
Lua | GetRelationFactionStatus() | removed - use FFI GetFactionRelationStatus() |
Lua | GetTradeShipList() | changed - removed cargoplanned field, use FFI GetCargoSpaceUsedAfterShoppingList() |
FFI | int RelationStatus GetRelationStatus() | changed - return value changed |
ui.xml change
To add multi environment support for addons (see
Jira |
---|
server | Egosoft JIRA |
---|
key | XRUIMOD-6 |
---|
|
) we changed the format of the ui.xml file slightly.
Following describes how to convert the old format to the new format:
Code Block |
---|
title | ui.xml format <= 3.50 Beta 2 |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<addon name="foo" viewtype="detailmonitor" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../ui/core/addon.xsd">
<file name="file1.lua" />
<file name="file2.lua" />
<dependency name="foo_dependency" />
<savedvariable name="foo_MyData" storage="userdata" />
</addon> |
Code Block |
---|
title | ui.xml format >= post 3.50 Beta 2 |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<addon name="foo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../ui/core/addon.xsd">
<environment type="detailmonitor">
<file name="file1.lua" />
<file name="file2.lua" />
<dependency name="foo_dependency" />
<savedvariable name="foo_MyData" storage="userdata" />
</environment>
</addon> |