|
| constexpr HudColor | weaponTypeAccent (int weaponId) |
| | Map a weapon-type id (matching WeaponType integer order in ecs/components/WeaponState.hpp: 0=Rifle, 1=Rocket, 2=RailGun, 3=EnergyGun, 4-6=grenades) to its accent color.
|
| constexpr HudColor | withAlpha (HudColor c, float alpha) |
| | Apply alpha to a palette color (for fade-out).
|
| void | drawCornerBrackets (HudContext &ctx, float x, float y, float w, float h, float armLen=10.f, float thickness=1.f, float outset=0.f, HudColor color=k_amber) |
| | Draw four mil-spec L-shaped corner brackets around a rect.
|
| void | drawPanel (HudContext &ctx, float x, float y, float w, float h, HudColor fill=k_bgPanel, HudColor border=k_line, float thickness=1.f) |
| | Draw a Voidfall panel: solid fill + 1 px outline.
|
| void | drawTrailBar (HudContext &ctx, float x, float y, float w, float h, float fill01, float trail01, HudColor fillColor, HudColor trailColor=HudColor{0.95f, 0.95f, 0.95f, 0.45f}, HudColor bgColor=k_bgInset, HudColor borderColor=k_lineDim) |
| | Draw a horizontal stat bar with a damage-trail ghost (solid fill).
|
| constexpr HudColor | lerpColor (HudColor a, HudColor b, float t) |
| | Lerp between two HudColors — used to compute the visible gradient endpoint when the bar is partially filled (so the fill always represents the same slice of the underlying full-bar gradient instead of stretching to the right end).
|
| void | drawGradientTrailBar (HudContext &ctx, float x, float y, float w, float h, float fill01, float trail01, HudColor fillLeft, HudColor fillRight, HudColor trailColor=HudColor{0.95f, 0.95f, 0.95f, 0.45f}, HudColor bgColor=k_bgInset, HudColor borderColor=k_lineDim) |
| | Draw a horizontal stat bar whose live fill is a left→right gradient (e.g.
|
| void | drawKeyTab (HudContext &ctx, const char *key, float x, float y, float fontSize, float padX=3.f, float padY=1.f, HudColor bgColor=HudColor{0.f, 0.f, 0.f, 0.45f}, HudColor borderColor=k_lineBright, HudColor textColor=k_textDim) |
| | Draw a bordered "key tab" pill with a single character inside.
|
|
| constexpr HudColor | k_bgVoid {0.08f, 0.075f, 0.07f, 0.96f} |
| | Deep panel background — opaque so HUD chrome doesn't pick up sky tint.
|
| constexpr HudColor | k_bgPanel {0.10f, 0.095f, 0.085f, 0.92f} |
| | Standard panel fill — bumped to 0.92α (was 0.78).
|
| constexpr HudColor | k_bgPanelSolid {0.09f, 0.085f, 0.075f, 0.96f} |
| | Solid panel — used for hero callouts.
|
| constexpr HudColor | k_bgInset {0.12f, 0.115f, 0.105f, 0.92f} |
| | Inset bar background.
|
| constexpr HudColor | k_lineDim {0.32f, 0.30f, 0.28f, 0.7f} |
| | Dim hairline — oklch(0.32 0.015 60 / 0.6).
|
| constexpr HudColor | k_line {0.42f, 0.40f, 0.37f, 0.95f} |
| | Standard hairline — oklch(0.40 0.018 60).
|
| constexpr HudColor | k_lineBright {0.62f, 0.59f, 0.56f, 1.0f} |
| | Bright hairline — oklch(0.55 0.02 60).
|
| constexpr HudColor | k_textDim {0.78f, 0.76f, 0.73f, 1.0f} |
| | Dim text — bumped luminance from ~0.55 to ~0.78 so secondary readouts (fire mode, "+reserve", "/mag", "[2] PULSAR") read clearly against the panel chrome instead of fading into it.
|
| constexpr HudColor | k_text {0.92f, 0.90f, 0.87f, 1.0f} |
| | Standard text — bumped slightly toward white for body chrome.
|
| constexpr HudColor | k_textBright {1.00f, 0.99f, 0.97f, 1.0f} |
| | Brightest text — kept near-white for hero readouts.
|
| constexpr HudColor | k_amber {1.00f, 0.71f, 0.18f, 1.0f} |
| | Primary amber — oklch(0.80 0.165 75).
|
| constexpr HudColor | k_amberDim {0.78f, 0.55f, 0.14f, 1.0f} |
| | Dimmer amber — oklch(0.65 0.13 75).
|
| constexpr HudColor | k_amberDeep {0.50f, 0.35f, 0.10f, 1.0f} |
| | Deep amber — oklch(0.45 0.10 70).
|
| constexpr HudColor | k_amberGlow {1.00f, 0.71f, 0.18f, 0.18f} |
| | Amber glow tint — oklch(0.80 0.165 75 / 0.15).
|
| constexpr HudColor | k_red {0.92f, 0.30f, 0.20f, 1.0f} |
| | Health red — oklch(0.65 0.20 28).
|
| constexpr HudColor | k_redBright {0.95f, 0.45f, 0.25f, 1.0f} |
| | Bright tail of HP gradient — oklch(0.72 0.18 35).
|
| constexpr HudColor | k_redDim {0.65f, 0.20f, 0.15f, 1.0f} |
| | Dim red — oklch(0.50 0.15 28).
|
| constexpr HudColor | k_cyan {0.45f, 0.78f, 0.96f, 1.0f} |
| | Shield cyan — oklch(0.80 0.10 220).
|
| constexpr HudColor | k_cyanDim {0.20f, 0.50f, 0.70f, 1.0f} |
| | Dim cyan — oklch(0.55 0.08 220).
|
| constexpr HudColor | k_green {0.30f, 0.86f, 0.45f, 1.0f} |
| | Status green — oklch(0.78 0.16 145).
|
| constexpr HudColor | k_pickupBg {0.13f, 0.12f, 0.11f, 0.82f} |
| | Pickup amber-trim background.
|
| constexpr HudColor | k_typeAr {0.20f, 0.65f, 0.70f, 1.0f} |
| constexpr HudColor | k_typeSniper {0.40f, 0.30f, 0.75f, 1.0f} |
| constexpr HudColor | k_typePistol {0.20f, 0.75f, 0.45f, 1.0f} |
| constexpr HudColor | k_typeSmg {0.95f, 0.65f, 0.18f, 1.0f} |
| constexpr HudColor | k_typeShotgun {0.85f, 0.30f, 0.20f, 1.0f} |