|
resonance 1.0.1
|
Song position bar of the head-up display, one labelled block per section of the level. More...
#include <hudposition.h>
Public Member Functions | |
| HudPosition (PlayMap *pPlayMap) | |
| Build one block and one label per section of a play map. | |
| ~HudPosition () | |
| Delete every block and label and reset the container's origin. | |
| void | SetFrame (float flFrame) |
| Restyle the blocks for a new song position once the bar changes. | |
| void | Update () |
| Style every section block for the current bar. | |
Song position bar of the head-up display, one labelled block per section of the level.
The class is not polymorphic and emits no RTTI. No descriptor, tag, or file path identifies it, and its name is inferred from the pos objects it resolves. The head-up display panel embeds one at +0x00.
The constructor clones one block mesh and one label per section of the play map into the <layout> pos.view container, side by side, with the shared animation HUD pos.msnm sizing each block before it is cloned. As the song moves from bar to bar, the blocks before the current section take the past material, the current one takes the current material at a larger scale, and the rest take the plain material. The repeat marker sits on the current section while the play map reports that section as repeating.
| HudPosition::HudPosition | ( | PlayMap * | pPlayMap | ) |
Build one block and one label per section of a play map.
| pPlayMap | The play map of the level, from Globals::GetPlayMap(). |
| HudPosition::~HudPosition | ( | ) |
Delete every block and label and reset the container's origin.
The head-up display panel's implicit destructor calls this one, and Overlay's destructor inlines the panel's.
|
inline |
Restyle the blocks for a new song position once the bar changes.
The head-up display panel inlines the body, and no out-of-line copy exists.
| flFrame | The song position, in MIDI ticks. |
| void HudPosition::Update | ( | ) |
Style every section block for the current bar.
Gives each block the material, the scale, and the label font for its place relative to the section of mBar, and places the repeat marker on that section when the play map reports it as repeating. Public because Overlay's AdvanceSectionToggleMsg handler at 0x0041f440 calls it. The title is inferred.