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
13
struct
EmoteWheelWidget
:
HudWidget
14
{
15
EmoteWheelWidget
();
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
26
private
:
27
HudEmoteWheelState
state_
{};
28
float
openAlpha_
= 0.f;
29
};
HudWidget.hpp
Base struct for all HUD widgets.
HudContext
Accumulates HUD geometry during a frame for batch rendering.
Definition
HudContext.hpp:19
HudTweenPool
Fixed-size tween pool. No heap allocations.
Definition
HudTween.hpp:35
EmoteWheelWidget::labelFontSize
float labelFontSize
Emote label text size.
Definition
EmoteWheelWidget.hpp:23
EmoteWheelWidget::EmoteWheelWidget
EmoteWheelWidget()
Definition
EmoteWheelWidget.cpp:16
EmoteWheelWidget::titleFontSize
float titleFontSize
Center "EMOTE" caption size.
Definition
EmoteWheelWidget.hpp:24
EmoteWheelWidget::openAlpha_
float openAlpha_
Fade-in/out driver.
Definition
EmoteWheelWidget.hpp:28
EmoteWheelWidget::sectorRadius
float sectorRadius
Radius of each emote node.
Definition
EmoteWheelWidget.hpp:22
EmoteWheelWidget::update
void update(float dt, const HudGameState &state, HudTweenPool &tweens) override
Called each frame before draw(). Update animation, consume events.
Definition
EmoteWheelWidget.cpp:24
EmoteWheelWidget::draw
void draw(HudContext &ctx, float drawX, float drawY) override
Emit geometry into the draw context.
Definition
EmoteWheelWidget.cpp:37
EmoteWheelWidget::state_
HudEmoteWheelState state_
Definition
EmoteWheelWidget.hpp:27
EmoteWheelWidget::radius
float radius
Ring radius from center to sector label.
Definition
EmoteWheelWidget.hpp:21
HudEmoteWheelState
Emote wheel state — drives the radial emote selection menu.
Definition
HudTypes.hpp:269
HudGameState
Snapshot of game state consumed by the HUD each frame.
Definition
HudTypes.hpp:367
HudWidget
Base class for a retained HUD element.
Definition
HudWidget.hpp:16
src
client
hud
widgets
EmoteWheelWidget.hpp
Generated by
1.16.1