View Single Post
01-16-16, 10:50 AM   #9
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Originally Posted by Lesteryoung View Post
I'm not sure what you mean by "moving it above". I understand hook and local.
Cut your AbbreviateLargeNumbers function and paste it above your "TextStatusBar_UpdateTextStringWithValues" hook and put the word "local" in front of the function. It has to be written before the hook because you're calling the function from it, if you make it local and leave it after the hook it's going to use the original AbbreviateLargeNumbers instead of yours.

To hide the heal predictions you can probably do something like this after you comment out or delete your current hook.
Lua Code:
  1. hooksecurefunc('CompactUnitFrame_UpdateHealPrediction', function(frame)
  2.     frame.myHealPrediction:Hide()
  3.     frame.otherHealPrediction:Hide()
  4. end)
  Reply With Quote