View Single Post
12-22-15, 03:08 PM   #3
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,322
This isn't as simple as other unitframes since the raidframes are dynamically created and shuffled around as needed to facilitate sorting and filters. Also, the handling of the heal prediction and absorb bars are passed to a centralized function that would affect other unitframes using the same template.

If this doesn't bother you, you can try this.
Lua Code:
  1. local oldfunc=CompactUnitFrameUtil_UpdateFillBar;
  2. function CompactUnitFrameUtil_UpdateFillBar(frame,previous,bar,...)
  3.     if bar==frame.myHealPrediction or bar==frame.otherHealPrediction then
  4.         return previous;
  5.     end
  6.  
  7.     return oldfunc(frame,previous,bar,...);
  8. end
  9.  
  10. hooksecurefunc("CompactUnitFrame_SetUpFrame",function(frame)
  11.     frame.myHealPrediction:Hide();
  12.     frame.otherHealPrediction:Hide();
  13. end);
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 12-22-15 at 03:44 PM.
  Reply With Quote