Graphic by Style - AndroidQuazar/VanillaExpandedFramework GitHub Wiki

CompGraphicByStyle allows an animal to be affected by an ideoligion style, as usually pawns are not affected by styles, only buildings and other items.

At the moment this only allows a single style per animal, but I'll change that if it's needed

    public StyleCategoryDef style;
    public string newImagePath;
    public string dessicatedTxt;
    public int changeGraphicsInterval = 2000;

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag of the animal you want to be change styles. For example, this allows the VFE - Mechanoids pawns to have the Steampunk style from Alpha Memes

<comps>
	<li Class="AnimalBehaviours.CompProperties_GraphicByStyle">
		<style>AM_SteampunkRevival</style>
		<newImagePath>Things/Pawn/AM_Steampunk_Autocleaner/AM_Steampunk_Autocleaner</newImagePath>
		<changeGraphicsInterval>3000</changeGraphicsInterval>
	</li>
</comps>
⚠️ **GitHub.com Fallback** ⚠️