#include <BuyMenu.hpp>
◆ BuyMenu()
◆ draw()
| void BuyMenu::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.
◆ toggle()
| void BuyMenu::toggle |
( |
bool | isBuyPhase | ) |
|
◆ update()
Called each frame before draw(). Update animation, consume events.
Implements HudWidget.
◆ fontSize
| float BuyMenu::fontSize = 20.f |
◆ isBuyPhase_
| bool BuyMenu::isBuyPhase_ = false |
|
private |
◆ itemHeight
| float BuyMenu::itemHeight = 34.f |
◆ openAlpha_
| float BuyMenu::openAlpha_ = 0.f |
|
private |
◆ panelHeight
| float BuyMenu::panelHeight = 380.f |
◆ panelWidth
| float BuyMenu::panelWidth = 450.f |
The documentation for this struct was generated from the following files: