group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
EmoteWheelWidget.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
6#include "hud/HudWidget.hpp"
7
14{
16
17 void update(float dt, const HudGameState& state, HudTweenPool& tweens) override;
18 void draw(HudContext& ctx, float drawX, float drawY) override;
19
20 // Tunable layout (logical px at 1080p; scaled by uiScale_).
21 float radius = 150.f;
22 float sectorRadius = 46.f;
23 float labelFontSize = 15.f;
24 float titleFontSize = 18.f;
25
26private:
28 float openAlpha_ = 0.f;
29};
Base struct for all HUD widgets.
Accumulates HUD geometry during a frame for batch rendering.
Definition HudContext.hpp:19
Fixed-size tween pool. No heap allocations.
Definition HudTween.hpp:35
float labelFontSize
Emote label text size.
Definition EmoteWheelWidget.hpp:23
EmoteWheelWidget()
Definition EmoteWheelWidget.cpp:16
float titleFontSize
Center "EMOTE" caption size.
Definition EmoteWheelWidget.hpp:24
float openAlpha_
Fade-in/out driver.
Definition EmoteWheelWidget.hpp:28
float sectorRadius
Radius of each emote node.
Definition EmoteWheelWidget.hpp:22
void update(float dt, const HudGameState &state, HudTweenPool &tweens) override
Called each frame before draw(). Update animation, consume events.
Definition EmoteWheelWidget.cpp:24
void draw(HudContext &ctx, float drawX, float drawY) override
Emit geometry into the draw context.
Definition EmoteWheelWidget.cpp:37
HudEmoteWheelState state_
Definition EmoteWheelWidget.hpp:27
float radius
Ring radius from center to sector label.
Definition EmoteWheelWidget.hpp:21
Emote wheel state — drives the radial emote selection menu.
Definition HudTypes.hpp:269
Snapshot of game state consumed by the HUD each frame.
Definition HudTypes.hpp:367
Base class for a retained HUD element.
Definition HudWidget.hpp:16