group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
EmoteWheelWidget Struct Reference

Center-screen radial menu shown while the emote wheel is held open. More...

#include <EmoteWheelWidget.hpp>

Inheritance diagram for EmoteWheelWidget:
[legend]
Collaboration diagram for EmoteWheelWidget:
[legend]

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ EmoteWheelWidget()

EmoteWheelWidget::EmoteWheelWidget ( )

Member Function Documentation

◆ draw()

void EmoteWheelWidget::draw ( HudContext & ctx,
float drawX,
float drawY )
overridevirtual

Emit geometry into the draw context.

Parameters
ctxImmediate-mode draw API.
drawXResolved pixel X (anchor + offset already applied).
drawYResolved pixel Y.

Implements HudWidget.

Here is the call graph for this function:

◆ update()

void EmoteWheelWidget::update ( float dt,
const HudGameState & state,
HudTweenPool & tweens )
overridevirtual

Called each frame before draw(). Update animation, consume events.

Implements HudWidget.

Here is the call graph for this function:

Member Data Documentation

◆ labelFontSize

float EmoteWheelWidget::labelFontSize = 15.f

Emote label text size.

◆ openAlpha_

float EmoteWheelWidget::openAlpha_ = 0.f
private

Fade-in/out driver.

◆ radius

float EmoteWheelWidget::radius = 150.f

Ring radius from center to sector label.

◆ sectorRadius

float EmoteWheelWidget::sectorRadius = 46.f

Radius of each emote node.

◆ state_

HudEmoteWheelState EmoteWheelWidget::state_ {}
private

◆ titleFontSize

float EmoteWheelWidget::titleFontSize = 18.f

Center "EMOTE" caption size.


The documentation for this struct was generated from the following files: