File Details
1.3.0-classic/tbc
- R
- Jun 28, 2026
- 2.83 KB
- 538
- 2.5.6+1
- Classic + 1
File Name
1.2.2.zip
Supported Versions
- 2.5.6
- 1.15.8
Header
- Added version tag
v1.2.2 - Updated copyright year to
2025-2026 - Condensed bug report to one line (
Bug reports: <url>)
Performance / correctness
UnitClass("player")cached at module load intoplayerClass— was called on every shapeshift eventIsInShapeshiftFormnow short-circuits on class check before callingGetShapeshiftFormID()- Event handler no longer calls
IsInShapeshiftForm()redundantly beforeUpdateManaBar()(which already calls it) TRANSPARENCIESandSCALEStables hoisted to module scope — were being allocated fresh on every menu open
Simplifications
dragArea:SetSize(116, 10)removed —SetAllPointsalready sizes itOnDragStart/OnDragStopclosures no longer capture unusedselfLoadSettingsusesordefault idiom;KDMB_SavedSettingsinitialized in a single expressionUpdateManaTextcondensed to onestring.formatcallUpdateManaBaruses early return instead of nested elseOnEnterandOnLeavenow both callUpdateManaText()— duplicate format string removed- Event handler split into clean per-event
elseifbranches
Style
- All inline comments removed
infofield assignments in context menu reordered for clarity (text,checked,funcpattern)