Kenzi's Threat Meter

Shows only your threat for a single target.

File Details

1.4.0-classic/tbc

  • R
  • Jun 28, 2026
  • 2.47 KB
  • 51
  • 2.5.6+1
  • Classic + 1

File Name

1.1.4.zip

Supported Versions

  • 2.5.6
  • 1.15.8

Header

  • Reformatted copyright block to match standard style
  • Added version, copyright range, warranty disclaimer, and bug report URL

Bug fix

  • SetTextColor(128, 0, 128, 1) → (0.5, 0, 0.5, 1) — WoW color values are 0–1, so 128 was clamping to solid magenta.

Optimizations

  • Extracted ApplyOutline(fs) helper — removed 6 lines of repeated GetFont/SetFont boilerplate.
  • Removed unused return values (isTankingstatusrawThreatPct) from UnitDetailedThreatSituation with _ skipping.
  • PlayRandomSound: merged two if conditions into one, simplified math.random(1, #t) → math.random(#t) (equivalent).
  • ToggleLockToggleSoundAlertToggleTitleText: flip state first, then branch — eliminates the inverted logic.
  • UpdateTitle: early return on hidden state instead of a nested if/else.
  • UpdateThreatInfo: two early returns at top clean up the nested structure; elseif chain now reads top-down from highest threshold (no redundant > X and guards).
  • InitializeLockState inlined as frame:EnableMouse(not KenzisThreatMeterDB.isLocked) — the function only had two branches that toggled a bool.
  • Slash handler: msg:lower() cached into cmd to avoid repeated calls.