View Single Post
04-30-10, 05:42 PM   #1
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 484
Two Questions: Variable Based Period Repaint & Combining Variables

Well, since I don't know the first thing about LUA, I need some help.

The unitframes I'm creating right now automatically switch from portrait to healthbars when you're either not at Max Health OR at Max Power.

Now, there are a couple of problems with what I want.

If I use two show/hide variables (in this case, IsMaxHealth & IsMaxPower) on the same subframe, one of them doesn't work. When I lose health, It doesn't update, however when I lose power, it updates.

I want to combine both of them, for IsMaxHealth OR IsMaxPower for it to update.

Now, with that said, there's another problem.

Because I use a portrait, I can't use periodic repaint, or my portrait will flicker animations over and over again.

Is it possible to create a variable based Period Repaint? When a variable is triggered it can switch between Multiplexer Parameters & Periodic Repaint events?

Such as, as long as I'm IsMaxHealth & IsMaxPower, it will be Multiplexer, but if I lose health OR Power, it will trigger an event to repaint every 0.1 seconds?

Otherwise I'm going to have to get rid of my portrait. D:<
__________________


kúdan: im playing pantheon
JRCapablanca: no youre not
** Pantheon has been Banned. **
  Reply With Quote