WOF_ADD for A_OverlayAlpha

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

WOF_ADD for A_OverlayAlpha

Postby Jekyll Grim Payne » Fri May 20, 2022 4:57 am

It's very easy to implement fade-in/fade-out in ZScript, but I feel like adding it to the native function would be good for consistency, since other A_Overlay* manipulation functions use that parameter in some way.

My idea is to simply expand it to A_OverlayAlpha(int layer, double alph, int flags = 0) where the flags argument recognizes WOF_ADD and performs an incremental change instead of an absolute one.

I'd add PSPF_REMOVE as a flag option as well, to make it move to the "Null" state sequence if alpha <= 0 (similarly to FTF_REMOVE in A_FadeOut). Or it could be just another boolean argument.
User avatar
Jekyll Grim Payne
 
 
 
Joined: 21 Jul 2008
Discord: Agent_Ash#4401
Github ID: jekyllgrim
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia (Modern GZDoom)

Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 2 guests