#include <ShotgunPelletWidget.hpp>
|
| HudShotgunBlast | latest_ {} |
| | Cached copy of the last blast we displayed.
|
| float | alpha_ = 0.f |
| | Current widget opacity.
|
| float | age_ = 0.f |
| | Seconds since the latest blast was staged.
|
| bool | primed_ = false |
| | False until the first blast arrives.
|
◆ ShotgunPelletWidget()
| ShotgunPelletWidget::ShotgunPelletWidget |
( |
| ) |
|
◆ draw()
| void ShotgunPelletWidget::draw |
( |
HudContext & | ctx, |
|
|
float | drawX, |
|
|
float | drawY ) |
|
overridevirtual |
Emit geometry into the draw context.
- Parameters
-
| ctx | Immediate-mode draw API. |
| drawX | Resolved pixel X (anchor + offset already applied). |
| drawY | Resolved pixel Y. |
Implements HudWidget.
◆ update()
Called each frame before draw(). Update animation, consume events.
Implements HudWidget.
◆ age_
| float ShotgunPelletWidget::age_ = 0.f |
|
private |
Seconds since the latest blast was staged.
◆ alpha_
| float ShotgunPelletWidget::alpha_ = 0.f |
|
private |
◆ dotRadius
| float ShotgunPelletWidget::dotRadius = 3.5f |
Pixel radius of each pellet dot at uiScale=1.
◆ fadeDuration
| float ShotgunPelletWidget::fadeDuration = 0.55f |
Linear fade-out duration after the hold.
◆ holdDuration
| float ShotgunPelletWidget::holdDuration = 0.45f |
Full opacity hold time after a blast.
◆ latest_
Cached copy of the last blast we displayed.
◆ primed_
| bool ShotgunPelletWidget::primed_ = false |
|
private |
False until the first blast arrives.
◆ radius
| float ShotgunPelletWidget::radius = 18.f |
Pixel radius of the outer ring at uiScale=1.
The documentation for this struct was generated from the following files: