Hey!
I am currently in the progress of customizing my own BuffBar.
I'd like to be able to show the Icon of Skills/Powers [...] on the LeftBuffBar but rather than showing the TimeLeft of the Power I'd like to show the remaining Cooldown of the Skill
The attached image shows my current progress where Epi will be shown on the left when its on cooldown, and on the right when its active and with time left.
Problems I currently have:
- Epi will only be shown on the left while the buff is active - it should stay there as long as Epi has no more cooldown
- I don't get the remaining cooldown as a timer in that box
That's the code I am currently working with:
Code:
public void OnCooldown(IPlayerSkill snoPower, bool expired)
{
var left = Hud.GetPlugin<PlayerLeftBuffListPlugin>();
if (PowerSnos.Contains(snoPower.SnoPower.Sno))
{
left.RuleCalculator.Rules.Add(new BuffRule(snoPower.SnoPower.Sno) { IconIndex = 1, MinimumIconCount = 0, ShowStacks = false, ShowTimeLeft = false });
}
}
Any help would be appreciated