rigs-of-rods icon indicating copy to clipboard operation
rigs-of-rods copied to clipboard

Flares3 Behavior

Open NightFuryVG opened this issue 1 year ago • 2 comments

I noticed when Flares 3 was implemented, they shrink and expanded to show you that the flare turning on and off instead of fading in and out like the DIY method before this update. Was there a technical limitation, or is this just an early implementation flaw?

https://github.com/RigsOfRods/rigs-of-rods/assets/82725929/4f4d4203-4224-446a-8e2f-67ac8087ff55

NightFuryVG avatar Dec 02 '23 20:12 NightFuryVG

Hi, thanks for the video. It was simply a choice, flare scaling was already used for other things. I can add fading also, just not sure how the configuration syntax should be. You probably want flares to scale at least a little. Maybe this:

set_flare_fading_defaults   scaleMin, scaleMax,   opacityMin, opacityMax

This lets you combine both effects, fine-tuning how much it should blend and resize. Examples

; only scales like now
set_flare_fading_defaults   0, 1
; only fades
set_flare_fading_defaults   1,1,    0,1
; fades and also scales a bit
set_flare_fading_defaults 0.6, 1,    0,1

ohlidalp avatar Feb 12 '24 20:02 ohlidalp

I'mma be honest, I've seen the word syntax and immediately thought of software code

NightFuryVG avatar Apr 03 '24 00:04 NightFuryVG