Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Graphic by Style

juanosarg edited this page Feb 3, 2022 · 1 revision

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>

VFE Core

General Comp classes

General DefModExtensions

Item Processor

PipeSystem

Custom Structure Generation

Multi Verb Combat Framework - MVCF

Animal Behaviours

Apparel

Cuisine

Furniture

Plants

Clone this wiki locally