Option for LuaRendering to flash like alerts

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
PennyJim
Fast Inserter
Fast Inserter
Posts: 121
Joined: Wed Jan 18, 2023 3:49 am
Contact:

Option for LuaRendering to flash like alerts

Post 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.
protocol_1903
Fast Inserter
Fast Inserter
Posts: 234
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: Option for LuaRendering to flash like alerts

Post 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.
If you need to reach me, message me on discord.

I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
MrSmoothieHuman
Fast Inserter
Fast Inserter
Posts: 103
Joined: Sat Aug 05, 2023 1:20 am
Contact:

Re: Option for LuaRendering to flash like alerts

Post by MrSmoothieHuman »

+1
coder? i hardly know her!
Osmo
Long Handed Inserter
Long Handed Inserter
Posts: 64
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: Option for LuaRendering to flash like alerts

Post 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.
Post Reply

Return to “Modding interface requests”