|
resonance 1.0.1
|
Full-screen fade of the head-up display. More...
#include <hudscreenflash.h>
Public Member Functions | |
| HudScreenFlash () | |
| Resolve the rectangle and show it fully opaque. | |
| void | Start (float flDuration, int nFadeIn) |
| Start a fade. | |
| void | SetFrame () |
| Set the rectangle's alpha for the current time and show it. | |
Full-screen fade of the head-up display.
The class is not polymorphic and emits no RTTI. No descriptor, tag, or file path identifies it, and its name is inferred from HUD screen rect, the one object it resolves. The head-up display panel embeds one at +0x40.
The fade is a black rectangle over the whole screen whose vertex alpha runs between 0 and 1 over a duration, timed by the free-running clock rather than by the song position.
| HudScreenFlash::HudScreenFlash | ( | ) |
Resolve the rectangle and show it fully opaque.
| void HudScreenFlash::Start | ( | float | flDuration, |
| int | nFadeIn ) |
Start a fade.
A duration below 1 is raised to 1. Overlay's FadeGameMsg handler is the caller. The title is inferred.
| flDuration | The time the fade takes, in milliseconds. |
| nFadeIn | Non-zero to fade from opaque to clear, and zero to fade from clear to opaque. |
| void HudScreenFlash::SetFrame | ( | ) |
Set the rectangle's alpha for the current time and show it.
Does nothing before the fade starts. Once the fade has run its duration, the alpha stays at its end value and the fade is marked finished.