TweakUnit

UI improvement for unitframes

File Details

TweakUnit-0.1.2.zip

  • R
  • Nov 6, 2025
  • 175.11 KB
  • 10
  • 11.2.7+2
  • Retail

File Name

TweakUnit-0.1.2.zip

Supported Versions

  • 11.2.7
  • 11.2.5
  • 11.2.0

Changelog

[0.1.2] - 2025-11-06

Fixed

  • Raid Frame Font & Texture Stability: Complete overhaul of stability system for health fonts and textures

    Font Stability Improvements:

    • Added hook on CompactUnitFrame_UpdateStatusText to maintain health font settings during updates
    • Implemented post-combat font restoration via PLAYER_REGEN_ENABLED event
    • Store font settings on frames for change detection (tweakUnitFont, tweakUnitSize, tweakUnitOutline)
    • Simplified UpdateHealthFonts to apply settings directly without unnecessary checks

    Texture Stability Improvements:

    • Added hook on DefaultCompactUnitFrameSetup to reapply textures after Blizzard resets them
    • Added hook on CompactUnitFrame_UpdateAll for roster change scenarios
    • Removed throttle system that was preventing immediate texture reapplication
    • Store texture path on frames for monitoring (tweakUnitTexture)
    • Apply textures immediately without delays, following RaidFrameSettings pattern

    Multi-layered Protection:

    • CompactUnitFrame_SetUpFrame hook for frame initialization
    • DefaultCompactUnitFrameSetup hook for Blizzard texture resets
    • CompactUnitFrame_UpdateStatusText hook for health text updates
    • Post-combat restoration for both fonts and textures
    • Removed complex throttling that was allowing changes to slip through
  • Raid Frame Flickering: Eliminated text and texture flickering when raid members join or leave

  • Boss Fight Stability: Prevents font size changes and texture resets during boss encounters

Technical Changes

  • Refactored UpdateTexture function in RaidFrames.lua - removed throttle system
  • Refactored UpdateHealthFonts function in RaidFrames.lua - simplified application logic
  • Added OnCombatEnd event handler in Core.lua
  • Implemented frame-level property storage for both fonts and textures
  • Applied immediate hook execution pattern inspired by RaidFrameSettings addon