StatHUD (Not Working in Midnight)

Lightweight HUD showing primary, secondary, and tertiary stats plus movement speed. Movable, resizable, with custom colors, border/background toggles, and persistent settings for a clean always-on stat sheet.

File Details

StatHUD_3.0-rc.zip

  • R
  • Sep 5, 2025
  • 12.19 KB
  • 30
  • 11.2.5
  • Retail

File Name

StatHUD_3.0-rc.zip

Supported Versions

  • 11.2.5

\# StatHUD — Changelog


All notable changes to this project will be documented here.

\## \[3.0-rc] — 2025-09-05

\### Added

\- \*\*Options panel\*\*

  - Per-stat color pickers (Primary, Crit, Haste, Vers, Mastery, Leech, Avoidance, Movement, Block/Parry/Dodge).

  - \*\*Reset to Defaults\*\* button with the preset palette:

    - Primary: MixGold · Crit: Ruby · Haste: Neon Green · Vers: Purple · Mastery: Sapphire Blue

    - Leech: Blood Red · Avoidance: Topaz/Orange · Movement: Earth-brown/gray · Block/Parry/Dodge: Light Blue

\- \*\*Hide-if-Zero\*\* toggles for Block, Parry, Dodge.


\### Changed

\- \*\*Speed model\*\*

  - Uses `GetUnitSpeed("player")` normalized to fixed \*\*base run = 7 yd/s\*\*.

  - Two lines by design:

    - \*\*Speed\*\* = live speed (0% when standing).

    - \*\*Move\*\* = live modifier while moving; snaps to \*\*100%\*\* when stopped.

  - Lightweight updater: `OnUpdate` (0.10s) + event snaps (`PLAYER\_STARTED\_MOVING`, `PLAYER\_STOPPED\_MOVING`, `UNIT\_AURA`, `PLAYER\_MOUNT\_DISPLAY\_CHANGED`).



\### Fixed

\- \*\*Speed stuck at 0% / always 100%\*\* — wrong denominator removed; mounts, Ghost Wolf, sprints/slows now display true values.

\- \*\*Versatility missing racial bonuses\*\* — fallback corrected to call `GetVersatility()` \*\*without arguments\*\*; total Vers+DR now matches the character sheet.

  - Verified: \*\*Highmountain Tauren\*\* (+1% Vers) shows correctly.

  - Note: \*\*Worgen\*\* (+1% Crit) already reflected via Blizzard crit API.

\- \*\*Defaults reset\*\* fully restores the preset colors after user changes.

\- Carry-over: backdrop reset table syntax fixed (factory reset stable).



\### Upgrade notes

\- \*\*Backup (optional):\*\* `WTF/Account/<YourAccount>/SavedVariables/StatHUD.lua`.

\- \*\*Install:\*\* replace the addon folder, then `/reload`.

\- \*\*If colors look off after update:\*\* `/stathud default` to restore palette \& sizing.

\- \*\*Performance tip:\*\* If you hide the StatHUD frame often, consider pausing the speed `OnUpdate` when hidden (tiny CPU win; optional).



\### Compatibility

\- Retail (The War Within). Classic/SoD not targeted.



\### Known / Watchlist

\- Other race-based secondary stat passives should flow via Blizzard APIs; report any that don’t match the character sheet and we’ll extend the safe fallback.

---

\## \[2.2] — 2025-09-04

\- Stabilized base frame + “factory reset” sizing/backdrop.

\- Initial stat block (primary + secondaries).

\- Early options groundwork (pre-panel).