Pawn Overlay - AndroidQuazar/VanillaExpandedFramework GitHub Wiki
CompPawnOverlay is a comp class that allows you to add graphical overlays to any pawn, providing an easy way to add very, VERY low lag animations and effects. The overlays move with the pawn and can be made to have different facings.
public List<GraphicData> graphicElements;
It is a comp class, so you just add it in XML in the <comps>
tag. For example, this code adds the graphical overlays to the Svarog in Bastyon
<li Class="AnimalBehaviours.CompProperties_PawnOverlay">
<graphicElements>
<!--========== Layer One Graphics ==========-->
<li>
<texPath>Things/Special/Svarog/Layer1/East/East</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<shaderType>TransparentPlant</shaderType>
<drawOffset>(0.00, 0.00, 0.00)</drawOffset>
<drawSize>3.00</drawSize>
</li>
<li>
<texPath>Things/Special/Svarog/Layer1/West/West</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<shaderType>TransparentPlant</shaderType>
<drawOffset>(0.00, 0.00, 0.00)</drawOffset>
<drawSize>3.00</drawSize>
</li>
<li>
<texPath>Things/Special/Svarog/Layer1/South/South</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<shaderType>TransparentPlant</shaderType>
<drawOffset>(0.00, 0.00, 0.00)</drawOffset>
<drawSize>3.00</drawSize>
</li>
<li>
<texPath>Things/Special/Svarog/Layer1/North/North</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<shaderType>TransparentPlant</shaderType>
<drawOffset>(0.00, 0.00, 0.00)</drawOffset>
<drawSize>3.00</drawSize>
</li>
<!--========== Layer Two Graphics ==========-->
<li>
<texPath>Things/Special/Svarog/Layer2/East/East</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<shaderType>TransparentPlant</shaderType>
<drawOffset>(0.00, 0.00, 0.00)</drawOffset>
<drawSize>3.00</drawSize>
</li>
<li>
<texPath>Things/Special/Svarog/Layer2/West/West</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<shaderType>TransparentPlant</shaderType>
<drawOffset>(0.00, 0.00, 0.00)</drawOffset>
<drawSize>3.00</drawSize>
</li>
<li>
<texPath>Things/Special/Svarog/Layer2/South/South</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<shaderType>TransparentPlant</shaderType>
<drawOffset>(0.00, 0.00, 0.00)</drawOffset>
<drawSize>3.00</drawSize>
</li>
<li>
<texPath>Things/Special/Svarog/Layer2/North/North</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<shaderType>TransparentPlant</shaderType>
<drawOffset>(0.00, 0.00, 0.00)</drawOffset>
<drawSize>3.00</drawSize>
</li>
</graphicElements>
</li>
</comps>