Skip to content

ModExt_FlickableTexture

flango edited this page Jan 9, 2023 · 6 revisions

×× Buildings with flickable textures ××

Makes a building with this modExtension change its texture when flicked on/off.

The building must have a CompProperties_Flickable for swapping to work and a couple of textures - one for the enabled state (original file name), one for disabled (original file name + "_Off").

Preview image (Credits to Sovereign for these cool textures.)


Type: ModExtension

XML Node: ThingDef/modExtensions/li


Example:

<ThingDef ParentName="BuildingBase" >
    <defName>my_flickable_building</defName>
    <label>my flickable building</label>
    ...
    <graphicData>
        <texPath>Things/Building/MyFlickableBuilding</texPath>
        <graphicClass>Graphic_Single</graphicClass>
    </graphicData> 
    ...
    <comps>
        <li Class="CompProperties_Flickable"/> <!-- Necessary! -->
    </comps>
    <modExtensions>
        <li Class="flangoCore.ModExt_FlickableTexture"/>
    </modExtensions>
</ThingDef>

🦩 Home

🚧 - 404 Page not found.
🖼 - Preview needed.

🟡 - Works but has some TODOs.
🟠 - Basic functionality implemented.
🔴 - Not working properly.
❓ - Not tested.


--== XML ==--

💡 Abilities

General

Ability Givers

Equipment Abilities

🟡 Should recode some stuff 🟡

🌳 Skill Trees

🟠 WIP, work/kill XP gain not implemented 🟠

Defs

Comps

🏘 Buildings

⚙ Comps

🏹 Equipment

General

Weapons

Projectiles

🧪 Hediffs

🧍‍♂‍ Pawn behaviors

📊 Stats

🎲 Misc

🧔 Vanilla Expanded

✨ Debug (Dev Mode)


--== C# ==--

📂 Shared Classes

🧬 Patches


Clone this wiki locally