Thread Tools Display Modes
Prev Previous Post   Next Post Next
04-11-09, 08:07 PM   #1
Din
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 14
Question "Correct" way to monitor custom events?

So, probably a stupid question, but is there a "correct" way to handle behavior dependent on custom events in oUF?

By which I mean, say for instance I want to tint the target frame's backdrop based on unit reaction. This obviously needs to be updated on a target change and also on (I think?) UNIT_FACTION. Should I just be directly registering for these events and handling the behavior in my own functions, or is there some sort of hook/register/postupdate system oUF has that I ought to be using?

Obviously if the thing I wanted to change was a text string I'd just use tags... and I briefly considered abusing the convenience of the tag system for these purposes but I'm guessing that's not a good idea.
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » "Correct" way to monitor custom events?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off