You don't. Your only option with the tag is to unconditionally update it many times per second.
Also, you could easily add a Power bar element to your frame, but give it no dimensions and/or points, thus making it invisible. The only way to run some code when a bar's value changes is to actually have a bar whose value is being changed.
__________________
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.
|