[V3.0] windows.xml XUi Changes — panel→rect, anchor Consolidation, filledsprite Removal

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 XUiXUi_InGame.

Main Changes

  • Mass replacement of panelrect: Around 260 lines of <panel> were removed and converted to rect (a widget container), effectively eliminating panel entirely. Many disableautobackground attributes have also disappeared. Any xpath whose path includes panel will no longer match.
  • Naming consolidation of anchor values (unified vertical/horizontal order, Center omitted)
    • LeftBottomBottomLeft / RightBottomBottomRight / LeftTopTopLeft / RightTopTopRight
    • CenterTopTop / CenterBottomBottom / RightCenterRight / CenterCenterCenter
  • filledspritesprite type="filled" fillspritepad="true": Fill bars (status bars, etc.) have been merged into the regular sprite
  • globalopacity="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 under visible

Impact on MODs

  • xpaths that include panel in their path, selectors using old anchor names, filledsprite[@name='...'], globalopacity conditions, and exact-match |once conditions will all fail to match.
  • Patch files also need to be moved from Config/XUi/windows.xmlConfig/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 rect appended 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

コメントする

お名前(ニックネーム)だけで投稿できます。ログイン・メール登録は不要です。お気軽にどうぞ。

※ AIの回答は管理者の確認後に表示されます。内容は不正確な場合があります。