Lua/FFI function changes

type
breaking change
note
LuaGetComponentFactionName()removed - use FFI GetOwnerDetails()
LuaGetFactionDetails()removed - use FFI GetFactionDetails() / Lua GetLibraryEntry()
LuaGetRelationComponentStatus()removed - use FFI GetRelationStatus()
LuaGetRelationFactionStatus()removed - use FFI GetFactionRelationStatus()
LuaGetTradeShipList()changed - removed cargoplanned field, use FFI GetCargoSpaceUsedAfterShoppingList()
FFIint RelationStatus GetRelationStatus()changed - return value changed

ui.xml change

To add multi environment support for addons (see ) we changed the format of the ui.xml file slightly.

Following describes how to convert the old format to the new format:

<?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>
<?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>