【V3.0】XUi windows.xml の変更点 ― panel→rect・anchor統合・filledsprite廃止

windows.xml は V3.0 XUi刷新の主要パターンが全部出る、UI系で最も大きな変更ファイルです(ルート <windows> は不変)。フォルダは XUiXUi_InGame に移動しました。

主な変化

  • panelrect の大量置換<panel> 約260行が削除され rect(widgetコンテナ)へ。事実上 panel を全廃。disableautobackground 属性も多くが消滅。経路に panel を含む xpath は不一致になります。
  • anchor 値の命名統合(縦横の順序統一・Center省略)
    • LeftBottomBottomLeft / RightBottomBottomRight / LeftTopTopLeft / RightTopTopRight
    • CenterTopTop / CenterBottomBottom / RightCenterRight / CenterCenterCenter
  • filledspritesprite type="filled" fillspritepad="true":塗りバー(ステータスバー等)は通常の sprite に統合
  • globalopacity="true/false"globalopacitymod="0"(意味も変化)
  • バインディングの {値|once} 除去{staticonatlas|once}{staticonatlas} など(新バインディングシステム)
  • 新ビュー scrollview の使用を確認。表示制御は visible に一本化

MODへの影響

  • panel を経路に含む xpath、anchor 旧名のセレクタ、filledsprite[@name='...']globalopacity 条件、|once 完全一致条件はいずれも空振りします。
  • パッチファイルの配置も Config/XUi/windows.xmlConfig/XUi_InGame/windows.xml へ移す必要があります(旧パスのままだとマージ先が無く改変が無効化)。
  • panel→rect 化により、別ファイル/別MODで append している同名 rect がバニラ rect と衝突しやすくなります。移行後は同名要素の重複を横断チェックしてください。

参考:差分例

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

※実験版(B252相当)適用直後の調査に基づきます。

コメントする

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

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