Custom Conditional / Getspellcooldown / Button or Bar SetAlpha #1352


Closed
  • NOVAPvP created this issue Dec 9, 2017

     Hello,

    I'm trying to either setalpha on a button OR bar, using a spell cooldown time in custom conditionals.

     

    local start, duration, enabled = GetSpellCooldown("Arcane Barrage");
    if enabled < 5 then BTB4Button50:SetAlpha(50)

     

    Was what I came up with, but obviously it's not working.

     

    Is there any way I can check to see if something is OFF cooldown and IFSO, setalpha/show BT4ButtonX or BT4BarX?

     

    Thanks,

    Nova

  • NOVAPvP posted a comment Dec 9, 2017

    I meant to put: if enabled == 0 is what i tried.

    In any event I'm trying to do this with with Arcane Orb, Aluneth, Presence of Mind... about 2-4 spells. this way while on cooldown either the bar or button alpha is very low around 10%, and when the spell comes available, increase the alpha to 100%.

     

    Thanks again!

    <3 :D

     

    Edit:
    If it is only possible to do this to an entire bar, that would suffice, as I'm only looking to do this for 2-4 spells and I could use the later action bars like 8/9/10.


    Edited Dec 9, 2017
  • NOVAPvP posted a comment Dec 14, 2017

    Bump

  • nevcairiel closed issue Aug 28, 2020
  • nevcairiel posted a comment Aug 28, 2020

    Closing old issues. If your issue persists, please create a new issue with full details.


To post a comment, please login or register a new account.