Custom flame overlay?

Started by AileTheAlien, June 30, 2018, 09:48:56 PM

Previous topic - Next topic

AileTheAlien

Is there a way to set a custom flame overlay graphic, to use in your mod?

For example, it's easy to make a new "portable camping stove", and make it have an animated fire over-top of it. It's the same setting that the existing camp-fire, and wooden torches use:

<li Class="CompProperties_FireOverlay">
    <fireSize>0.7</fireSize>
</li>


However, I want something that looks like a propane stove, with a circular blue flame. (I'm making portable camping stoves for my first useful / not-broken mod.) I couldn't find anything in the modding tutorials on the wiki, or in this forum, but I find it hard to believe I'm the first person to need this. Related, is there a way to have item glows animated? If I can't have a custom animated flame on top, I want to fall back to the item glowing different radii, and different colors, in a simple loop, so it at least looks a little bit better, than a static image in the game. :)

Thanks!

EDIT:
Besides just being useful for my Coleman-style stove, this would be neat, for any number of new items. (Either the custom animated image, or the animated item glow.) For example, make a mod with a different science-bench and advanced science-bench, that look like 1950s-movie-style gadgets. Blinking lights everywhere, or maybe a table with a bunsen burner and a Jacob's Ladder on top. Or make a sci-fi psyonic mod, where your pawns' research bench is called a "elder god's worship station", and it looks like one of those lightning balls that they sell in science-centers / museums for children. (I mean, I'm an adult, which means I could buy one. I guess they're not strictly for children. Wait, I have an Amazon account... :)

dninemfive

There won't be an XML tag for this, since CompProperties_FireOverlay is a hardcoded class, but if you're not averse to C# you can easily inherit that class and change whatever you need.