#include <PopupNotification.hpp>
|
| | PopupNotification () |
| | Construct the popup feed anchored above the bottom-center ability bar.
|
| void | update (float dt, const HudGameState &state, HudTweenPool &tweens) override |
| | Consume this-frame popup messages and advance retained popup lifetimes.
|
| void | draw (HudContext &ctx, float drawX, float drawY) override |
| | Draw active popup pills centered around the resolved HUD anchor.
|
| virtual | ~HudWidget ()=default |
◆ PopupNotification()
| PopupNotification::PopupNotification |
( |
| ) |
|
Construct the popup feed anchored above the bottom-center ability bar.
◆ draw()
| void PopupNotification::draw |
( |
HudContext & | ctx, |
|
|
float | drawX, |
|
|
float | drawY ) |
|
overridevirtual |
Draw active popup pills centered around the resolved HUD anchor.
Implements HudWidget.
◆ update()
Consume this-frame popup messages and advance retained popup lifetimes.
Implements HudWidget.
◆ entries_
| std::vector<Entry> PopupNotification::entries_ |
|
private |
◆ entryFontSize
| float PopupNotification::entryFontSize = 13.f |
Popup text size in 1080p-scaled HUD units.
◆ entryGap
| float PopupNotification::entryGap = 6.f |
Vertical spacing between stacked popup pills.
◆ entryHeight
| float PopupNotification::entryHeight = 30.f |
Height of each popup pill in 1080p-scaled HUD units.
◆ entryLifetime
| float PopupNotification::entryLifetime = 4.f |
Seconds each popup remains alive.
◆ fadeOut
| float PopupNotification::fadeOut = 0.65f |
Seconds used for the final fade-out.
◆ maxEntries
| int PopupNotification::maxEntries = 3 |
Maximum simultaneous popup pills retained.
The documentation for this struct was generated from the following files: