|
group2 0.1.0
CSE 125 Group 2
|
Center-screen radial menu shown while the emote wheel is held open. More...
#include <EmoteWheelWidget.hpp>
Public Member Functions | |
| EmoteWheelWidget () | |
| void | update (float dt, const HudGameState &state, HudTweenPool &tweens) override |
| Called each frame before draw(). Update animation, consume events. | |
| void | draw (HudContext &ctx, float drawX, float drawY) override |
| Emit geometry into the draw context. | |
| Public Member Functions inherited from HudWidget | |
| virtual | ~HudWidget ()=default |
Public Attributes | |
| float | radius = 150.f |
| Ring radius from center to sector label. | |
| float | sectorRadius = 46.f |
| Radius of each emote node. | |
| float | labelFontSize = 15.f |
| Emote label text size. | |
| float | titleFontSize = 18.f |
| Center "EMOTE" caption size. | |
| Public Attributes inherited from HudWidget | |
| bool | visible = true |
| HudAnchor | anchor = HudAnchor::TopLeft |
| float | offsetX = 0.f |
| float | offsetY = 0.f |
| float | width = 0.f |
| float | height = 0.f |
| HudColor | tint {1.f, 1.f, 1.f, 1.f} |
| float | uiScale_ = 1.f |
| Set by Hud each frame (screenH / 1080). | |
Private Attributes | |
| HudEmoteWheelState | state_ {} |
| float | openAlpha_ = 0.f |
| Fade-in/out driver. | |
Center-screen radial menu shown while the emote wheel is held open.
Lays the emote catalog out around a ring (emote 0 at the top, clockwise), highlighting the sector the player is currently pointing at. The selection is resolved by the input sampler; this widget only visualizes it.
| EmoteWheelWidget::EmoteWheelWidget | ( | ) |
|
overridevirtual |
Emit geometry into the draw context.
| ctx | Immediate-mode draw API. |
| drawX | Resolved pixel X (anchor + offset already applied). |
| drawY | Resolved pixel Y. |
Implements HudWidget.
|
overridevirtual |
| float EmoteWheelWidget::labelFontSize = 15.f |
Emote label text size.
|
private |
Fade-in/out driver.
| float EmoteWheelWidget::radius = 150.f |
Ring radius from center to sector label.
| float EmoteWheelWidget::sectorRadius = 46.f |
Radius of each emote node.
|
private |
| float EmoteWheelWidget::titleFontSize = 18.f |
Center "EMOTE" caption size.