windows.xml is the largest UI-related change file, showcasing every major pattern of the V3.0 XUi overhaul (the root <windows> is unchanged). The folder has moved from XUi → XUi_InGame.
Main Changes
- Mass replacement of
panel→rect: Around 260 lines of<panel>were removed and converted torect(a widget container), effectively eliminating panel entirely. Manydisableautobackgroundattributes have also disappeared. Any xpath whose path includespanelwill no longer match. - Naming consolidation of
anchorvalues (unified vertical/horizontal order, Center omitted)LeftBottom→BottomLeft/RightBottom→BottomRight/LeftTop→TopLeft/RightTop→TopRightCenterTop→Top/CenterBottom→Bottom/RightCenter→Right/CenterCenter→Center
filledsprite→sprite type="filled" fillspritepad="true": Fill bars (status bars, etc.) have been merged into the regularspriteglobalopacity="true/false"→globalopacitymod="0"(the meaning has changed too)- Removal of
{value|once}in bindings: e.g.{staticonatlas|once}→{staticonatlas}(new binding system) - Confirmed use of the new view
scrollview. Display control is now unified undervisible
Impact on MODs
- xpaths that include
panelin their path, selectors using oldanchornames,filledsprite[@name='...'],globalopacityconditions, and exact-match|onceconditions will all fail to match. - Patch files also need to be moved from
Config/XUi/windows.xml→Config/XUi_InGame/windows.xml(leaving them at the old path means there is no merge target and the modifications are nullified). - With the panel→rect conversion, a same-named
rectappended in another file/MOD is more likely to collide with a vanilla rect. After migrating, do a cross-check for duplicate elements sharing the same name.
Reference: Diff Examples
- <window name="HUDLeftStatBars" anchor="LeftBottom">
+ <window name="HUDLeftStatBars" anchor="BottomLeft">
- <filledsprite depth="4" name="BarContent" type="filled" fill="{statfill}"/>
+ <sprite depth="4" name="BarContent" type="filled" fillspritepad="true" fill="{statfill}"/>
- <panel width="168" height="46" name="item" disableautobackground="true" ...>
+ <rect width="168" height="46" name="item" ...>
*Based on investigation immediately after applying the experimental version (equivalent to B252).
Related: List of MOD-making articles