Skip to end of metadata
Go to start of metadata

ui.xml changes

In order to make UI modding available, we have had to update the handling of the ui.xml file. In 3.20 your ui.xml file used a patch facility to hook into the UI system. In 3.50 your ui.xml file is now directly interpreted by the UI engine.

Here's a quick example on how to convert the 3.20 ui.xml file to a matching 3.50 one:

pre 3.50 ui.xml file

 

<?xml version="1.0" encoding="utf-8"?>
<diff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <add sel="/addon[@name='ego_detailmonitor']/dependency" pos="before">
    <file name="foo.lua" />
  </add>
</diff>

 

post 3.50 ui.xml file

 

<?xml version="1.0" encoding="UTF-8"?>
<addon name="my_addon" viewtype="detailmonitor" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../core/addon.xsd">
    <file name="foo.lua" />
    <dependency name="ego_detailmonitor" />
</addon>

line 2: ensure the name attribute is set to your own addon's name
line 4: add the dependency to the Egosoft addon, you hook into

XPL and Lua byte code support removed

If you provided your scripts in byte code or with a file extension other than ".lua" (for instance ".xpl"), you will have to rename the file and provide the Lua script in plain-text.

Note that this also works in versions prior to 3.50. So if you provided the Lua scripts already with these specifications for 3.20, there's no need to change anything.

  • No labels