Thread: rmod Layouts
View Single Post
Old 03/18/08, 12:18 PM   #76 (permalink)
Marieth
Piston Honda
 
Human Rogue
 
Forscherliga (EU)
Just a more or less common question.
To get timers on buffs/debuff working I added an textobject to the buttonframe.
I wrote a function that returns the number in seconds if time remaining was less then 60seconds.

Everything showed up fine, but it wasn't updating itself. Only the cooldown spiral was moving as intended.

I discovered later that it was working on the targetoftarget frame, so I kept digging.

Finally I found following line of code under the tot-Frame in the core.lua
object:SetScript("OnUpdate", OnUpdate)
I added this line to the other frames as well, and now the timers are working everywhere.

So far so good.

What I want to know is, if that has any influence at the overall performance, and if so, wether there is a better way.

And if someone could explain to me what happens by calling that script, I would be gratefull.

"...gone missing."
 
User is offline.
Reply With Quote