Skip to content

Crit-rate indicator in header with user-configurable threshold (red/green) #2

Description

@vergelli

Summary

Add a live critical-strike rate indicator (crit % of landed damage) to the
window header, with a user-set threshold that color-codes it.

Behavior

  • Show the crit rate (crit vs non-crit) as a % with an icon in the header.
  • A threshold setting (percentage, e.g. default 40%) lets the user define
    their target.
  • Color rule:
    • rate below threshold -> red
    • rate at or above threshold -> green

Settings

  • New slider/input in the settings panel: Crit threshold (%) — range e.g.
    10–80%, default 40%.
  • Persist per-server like the other settings.

Notes

  • Builds on the existing CRIT view (we already split landed damage into
    non-critical base + critical cap), so the crit-ratio math is already available.
  • Keep it zero-alloc on the hot path — header tick reads the existing windowed
    metrics, no new per-sample allocation.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions