Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

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 XRUIMOD-6 - Getting issue details... STATUS ) we changed the format of the ui.xml file slightly.

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

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>
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>
  • No labels