View Single Post
05-17-16, 11:40 PM   #6
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
CURRENT_MAX_RUNES = 0
MAX_RUNE_CAPACITY = 7


And to set the cooldown for a particular run it uses :

Code:
function RuneFrame_RunePowerUpdate(runeIndex, isEnergize)
....
       local start, duration, runeReady = GetRuneCooldown(runeIndex)
...
end

to get the current max. runes and hide the ones that exceed it:
Code:
CURRENT_MAX_RUNES = UnitPowerMax("player", SPELL_POWER_RUNES)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 05-18-16 at 01:51 AM.