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

#include <EquipmentSlots.hpp>

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

Classes

struct  SvgComponentTuning
struct  AbilityElementTuning

Public Member Functions

 EquipmentSlots ()
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 iconFrameWidth = 92.f
float iconFrameHeight = 87.f
float abilityIconSize = 54.f
float bindingFontSize = 20.f
float barWidth = 220.f
float barHeight = 87.f
float iconBarGap = 0.f
float centerGap = 0.f
std::array< AbilityElementTuning, 2 > abilityElements {}
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

HudEquipmentState state_
std::array< std::string, 2 > bindingLabels_ {"", ""}

Constructor & Destructor Documentation

◆ EquipmentSlots()

EquipmentSlots::EquipmentSlots ( )

Member Function Documentation

◆ draw()

void EquipmentSlots::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.

◆ update()

void EquipmentSlots::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

◆ abilityElements

std::array<AbilityElementTuning, 2> EquipmentSlots::abilityElements {}

◆ abilityIconSize

float EquipmentSlots::abilityIconSize = 54.f

◆ barHeight

float EquipmentSlots::barHeight = 87.f

◆ barWidth

float EquipmentSlots::barWidth = 220.f

◆ bindingFontSize

float EquipmentSlots::bindingFontSize = 20.f

◆ bindingLabels_

std::array<std::string, 2> EquipmentSlots::bindingLabels_ {"", ""}
private

◆ centerGap

float EquipmentSlots::centerGap = 0.f

◆ iconBarGap

float EquipmentSlots::iconBarGap = 0.f

◆ iconFrameHeight

float EquipmentSlots::iconFrameHeight = 87.f

◆ iconFrameWidth

float EquipmentSlots::iconFrameWidth = 92.f

◆ state_

HudEquipmentState EquipmentSlots::state_
private

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