Quantcast WoWInterface - View Single Post - split statusbars
View Single Post
02-10-18, 12:43 AM   #4
lightspark
A Frostmaul Preserver
 
lightspark's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 294
So you're finally here

Take a look at oUF's classpower code, destrolock's soul shards behave exactly the same way.

In your case mod will be maxhp/3, max will be 3 because it's just a number of elements, health bars.

The rest is almost the same, you can even leave bars' min/max values as 0 and 1 and never touch them again, because cur value is adjusted anyway, you obv don't need that 0 check.

It's one update function to update all 3 or more status bars, it's perfectly scalable.
__________________

Last edited by lightspark : 02-10-18 at 01:13 AM.
  Reply With Quote