View Single Post
07-31-16, 04:22 PM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
I'm currently updating my oUF layout, and did something like this just to be safe:

Code:
local timer = cooldown:GetRegions()

timer:SetFontObject(GameFontHighlightSmall)
timer.SetFontObject = nop
timer.SetFont = nop

timer:ClearAllPoints()
timer.ClearAllPoints = nop

timer:SetPoint("CENTER", button, "TOP", 0, 0)
timer.SetPoint = nop
In limited testing I haven't seen anything reset. (nop is a "do nothing" function defined somewhere in Blizzard code.) I don't even know if the overrides are needed for the default cooldown text; I just reused the code I was previously using to manhandle OmniCC's timer text. If it doesn't actually reset, I'd just leave it alone.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote