rimworld-animations/1.5/Patches/AnimationPatch_PawnRenderTree_OffsetSubWorker.xml
c0ffee 32f3b1522f added:
offsets, dynamically set in animation
animation prop graphics, absolute positioning, changing textures, can be used in animation
2024-04-21 18:49:24 -07:00

27 lines
748 B
XML

<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<!-- add offset rendersubworker to all pawn render tree defs -->
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationConditional">
<xpath>/Defs/PawnRenderTreeDef/root/subworkerClasses</xpath>
<success>Always</success>
<nomatch Class="PatchOperationAdd">
<xpath>/Defs/PawnRenderTreeDef/root</xpath>
<value>
<subworkerClasses />
</value>
</nomatch>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/PawnRenderTreeDef/root/subworkerClasses</xpath>
<value>
<li>Rimworld_Animations.PawnRenderSubWorker_ChangeOffset</li>
</value>
</li>
</operations>
</Operation>
</Patch>