-
Notifications
You must be signed in to change notification settings - Fork 3
Move
Nightinggale edited this page Sep 15, 2018
·
1 revision
It moves xml elements around to make them appear in a different order ingame.
Say you add a bed and you want to place it together with the vanilla beds in the build menu rather than attaching it to the end.
| Tag | Mandatory | Type | Description |
|---|---|---|---|
| patchName | no | string | Name of patch for log/profiling |
| xpath | yes | string | Xpath search for the Def to attach to |
| followers | yes | list of strings | Xpath searches for Defs to follow xpath |
| Log writing | no |
Xpath is found and at least one member of followers will find at least one def.
<li Class="ModCheck.Move">
<patchName>Move all beds together</patchName>
<xpath>Defs/ThingDef[defName="StandardBed"]</xpath>
<followers>
<li>Defs/ThingDef[defName="NewBedA"]</li>
<li>Defs/ThingDef[defName="NewBedB"]</li>
<li>Defs/ThingDef[defName="NewBedC"]</li>
</followers>
</li>Following this the build menu will have StandardBed, NewBedA, NewBedB, NewBedC in that order regardless of where vanilla would place them.