#include <HealthArmorBar.hpp>
◆ HealthArmorBar()
| HealthArmorBar::HealthArmorBar |
( |
| ) |
|
◆ draw()
| void HealthArmorBar::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.
◆ armorFill_
| float HealthArmorBar::armorFill_ = 0.f |
|
private |
◆ barHeight
| float HealthArmorBar::barHeight = 20.f |
◆ barSpacing
| float HealthArmorBar::barSpacing = 6.f |
◆ barWidth
| float HealthArmorBar::barWidth = 260.f |
◆ displayArmor_
| int HealthArmorBar::displayArmor_ = 0 |
|
private |
◆ displayHealth_
| int HealthArmorBar::displayHealth_ = 100 |
|
private |
◆ fontSize
| float HealthArmorBar::fontSize = 22.f |
◆ healthFill_
| float HealthArmorBar::healthFill_ = 1.f |
|
private |
◆ lastArmor_
| int HealthArmorBar::lastArmor_ = 0 |
|
private |
◆ lastHealth_
| int HealthArmorBar::lastHealth_ = 100 |
|
private |
◆ textPadding
| float HealthArmorBar::textPadding = 8.f |
The documentation for this struct was generated from the following files: