Switch Apparel - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

CompSwitchApparel allows switching between different apparels, but only if they have the same layers and bodypartgroups.

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag of the apparel item you want to be able to be swapped.

<comps>
	<li Class="VanillaApparelExpanded.CompProperties_SwitchApparel">
		<SwitchTo></SwitchTo>                   //ThingDef to switch to
		<graphicPath></graphicPath>             //graphicPath for the gizmo icon (default is UI/Gizmo/Switch)		
		<Label></Label>                         //description label for the gizmo
	</li>
</comps>
⚠️ **GitHub.com Fallback** ⚠️