View Single Post
03-18-14, 06:33 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
That's still very much out of context. What's in your "updatePower" function? Why are you replacing the bar's OnValueChanged script instead of using oUF's native "PostUpdate" or "Override" methods? Why are you creating your own event handling frame instead of just telling oUF which event(s) to update your element(s) on? (Also, you're never actually setting an event handling script on that frame so you may as well not be creating it in the first place, and "UNIT_powerToken" is never going to give you a valid event, as the UNIT_MANA and similar events were consolidated into UNIT_POWER several expansions ago.) What is the purpose of effectively hiding the power bar and replacing it with the "powerdummy" texture if the mystery variable "powerScroll" is set? What are you expecting this whole thing to look like and/or do?

Nobody here is psychic, and we're all far too lazy to hack into your computer just to get a look at your addon. Just post your entire file or addon.
__________________
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