|
resonance 1.0.1
|
Closing sequence of the head-up display after a campaign is won. More...
#include <hudwinmessage.h>
Public Types | |
| enum | State { kStateIdle = 0 , kStateStart = 1 , kStateCongrats = 2 , kStateTeam = 3 , kStateThanks = 4 , kStatePrompt = 5 } |
| Steps of the closing sequence. More... | |
Public Member Functions | |
| HudWinMessage () | |
| Resolve the two messages and start idle. | |
| void | SetFrame (float flTime) |
| Advance the message animation and step the sequence. | |
| void | HidePrompt () |
| Hide the prompt to exit. | |
| void | Draw () |
| Draw the two messages over the frame feedback while the sequence runs. | |
Public Attributes | |
| int | mState |
| The step of the sequence. | |
Closing sequence of the head-up display after a campaign is won.
The class is not polymorphic and emits no RTTI. No descriptor, tag, or file path identifies it, and its name is inferred from HUD winmsg, the message it animates. The head-up display panel embeds one at +0x134.
Overlay's WinMsg handler starts the sequence by setting mState to kStateStart. SetFrame() then sets up the frame feedback, and shows three messages in turn, a congratulation for the session's difficulty, then two credits, and finally the prompt to exit.
| enum HudWinMessage::State |
Steps of the closing sequence.
| Enumerator | |
|---|---|
| kStateIdle | Nothing shows. |
| kStateStart | The next SetFrame() shows the congratulation. |
| kStateCongrats | The congratulation shows. |
| kStateTeam | The first credit shows. |
| kStateThanks | The second credit shows. |
| kStatePrompt | The prompt to exit shows. |
| HudWinMessage::HudWinMessage | ( | ) |
Resolve the two messages and start idle.
| void HudWinMessage::SetFrame | ( | float | flTime | ) |
Advance the message animation and step the sequence.
The congratulation shows at 2.5 times the message font size, the first credit 10000 units of time later at twice the size, the second credit 10000 units after that at 1.7 times the size, and the prompt 8000 units after that. Each message stays for 8000 units between its fades. The European release looks every text up in the current language, and for a difficulty other than True, Super, or Mega it shows an empty congratulation where the North American release shows Yup.
| flTime | The current time. |
| void HudWinMessage::HidePrompt | ( | ) |
Hide the prompt to exit.
The out-of-line copy has no caller. The title is inferred.
| void HudWinMessage::Draw | ( | ) |
Draw the two messages over the frame feedback while the sequence runs.
Overlay::Draw() inlines the body, and this copy has no caller. The title is inferred.
| int HudWinMessage::mState |
The step of the sequence.
+0x04
Public because Overlay's WinMsg handler at 0x0041e020 writes kStateStart into it directly, and Overlay::Draw() tests it, and the image has no accessor for it.