【V3.0】controls.xml → templates.xml ― ルート要素リネームに注意

controls.xmltemplates.xml にリネームされ、ルート要素も <controls><templates> に変わりました。XUiコントローラークラスとXMLテンプレートの混同を解消する変更です。フォルダも XUiXUi_InGame へ。

主な変化

  • ルート要素<controls><templates>(最重要)
  • ファイル名controls.xmltemplates.xml
  • panel → rect:テンプレ内の <panel disableautobackground="true"><rect> へ(active_buff_entryplayers_header など)
  • テンプレ削除debugsliderbackpack_item_stackitem_stack に統合)、prefab_folder_entry、旧 item_stack/category_icon(再定義のため)
  • テンプレ新規drag_item_stackequipment_stack、看板エディタ刷新の sign_* 系一式、spawn_block_selection_entry
  • item_stack のサイズ式化:固定 width="78" 等が cell_size="[itemStack:width]"${3+cell_size} のような算術式バインディングに。globalopacityglobalopacitymod、durability 表示が permadurability 等へ拡張
  • {値|once}|once 除去、width="100%" の一部削除、collider_scale 削除

MODへの影響

  • /controls 始まりの xpath は全件ルートで空振りします。先頭の /controls/templates に全置換してください(例 /controls/recipe_entry/rect/label/templates/recipe_entry/rect/label)。
  • パッチ配置も Config/XUi/controls.xmlConfig/XUi_InGame/templates.xml へ。
  • active_buff_entry などは親が panelrect になったため、経路に panel を含む指定は要書き換え。
  • 廃止テンプレ(backpack_item_stackdebugslider)に依存していた改変は移植が必要です。

参考:差分例

-<controls>
+<templates>
    <active_buff_entry>
-       <panel ... controller="ActiveBuffEntry" disableautobackground="true" ...>
+       <rect ... controller="ActiveBuffEntry" ...>
-           <sprite depth="2" name="Icon" sprite="{bufficon|once}" .../>
+           <sprite depth="2" name="Icon" sprite="{bufficon}" .../>
-       </panel>
+       </rect>
    </active_buff_entry>

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

コメントする

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

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