Quantcast WoWInterface - View Single Post - Destro Lock Soul Shard tracking in 7.2.5
View Single Post
08-07-17, 12:07 PM   #6
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,696
As lightspark suggested, use the ClassPower element and add this PostUpdate callback:
Lua Code:
  1. local function PostUpdateClassPower(element, cur, max, hasMaxChanged, powerType)
  2.     if(powerType == 'SOUL_SHARDS') then
  3.         for i = 1, max do
  4.             if(i <= cur) then
  5.                 -- purple
  6.             else
  7.                 -- green
  8.             end
  9.         end
  10.     end
  11. end

Last edited by p3lim : 08-07-17 at 12:14 PM.
  Reply With Quote