Page 1 of 1

Option for LuaRendering to flash like alerts

Posted: Sun Jun 01, 2025 7:44 pm
by PennyJim
I've had a couple instances of making a LuaRenderObject to specifically mimic a custom alert. Of course combined with adding the custom alert to every player on a force.

A single static sprite isn't the most obvious, nor does it really mimic alerts all that well. I'd like some way to tap into the same flashing behavior that the rest of the alerts follow, so my faked flashing isn't paused when the game time is paused (like editor mode) and is perfectly in sync with everything else flashing.

I would not be upset if this only comes to the Sprite render objects, but I see no reason not to add it to every object if you can.

Re: Option for LuaRendering to flash like alerts

Posted: Mon Jun 02, 2025 2:19 am
by protocol_1903
+1, I am going to be implementing an alert in the coming weeks and I thought this was already a feature but apparently not. I'd also like to use this in another mod where pausing in editor mode makes it break. Alternatively, a 'paused_tick' or some other type of on_tick event that supports ticks generated while the game is paused would be extremely useful for this and other scenarios.

Re: Option for LuaRendering to flash like alerts

Posted: Mon Jun 02, 2025 12:41 pm
by MrSmoothieHuman
+1

Re: Option for LuaRendering to flash like alerts

Posted: Mon Jun 02, 2025 10:47 pm
by Osmo
+1 While possible to recreate already, it would be nice to have them syncronized without on_tick stuff, and would also be more performant.

Re: Option for LuaRendering to flash like alerts

Posted: Tue Jun 10, 2025 7:25 am
by Genhis
For 2.0.56, I added blink_interval.