Jump to content

Recommended Posts

Hi Everyone,

 

I've been playing the game for a few weeks now and absolutely love it, so much so I've recently started looking at creating some mods, with my first mod being an updated thermometer.

 

I have managed to replace the existing thermometer with my own design, using the animation percentage to display the correct value on the scale.  However I wish for my thermometer to work slightly differently.

 

My design has 6 climates (freezing, cold, mild, warm, hot, and scorching) with each climate relating to a specific temperature band.  For each band there is an animation, however the animations should only play if the climate is in a new band (i.e. changing from mild to warm).  Currently the animations keep on playing, and I cannot find a way to only play the animations on a climate band change.

 

I have attached all of my files below - please be gentle, my coding is problably rediculously messy as I've never tried to code in Lua before and its all a bit confusing.  The artwork and animations are still in their early versions as well, and need some tweaking :-).

 

Once installed, the thermometer can be found in the "STRUCTURES" tab and doesn't yet have a tab icon added.  It only requires 1 twig to build currently for testing purposes.

 

Any help will be greatly appreciated.

Thanks
Mark

thermometer.zip

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...