Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-27-16, 09:11 AM   #23
Joker119
A Flamescale Wyrmkin
 
Joker119's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 113
I'm sorry but I'm missing something crucial here..
I'm trying to impliment a similar feature into my UI addon, but
Code:
            local _, _, _, _, _, duration, expirationTime = UnitAura(PlayerFrame.unit, index, filter)
            if duration > 0 and expirationTime then
                  -- This aura has a duration:
                  BuffStatusBar:SetMinMaxValues(expirationTime - duration, expirationTime)
            else
                  -- This aura doesn't have a duration:
                  BuffStatusBar:SetMinMaxValues(0, 1)
                  BuffStatusBar:SetValue(1)
            end
gives me an error saying
Code:
 if duration > 0 and expirationTime then
is trying to compare a number to a nil.

I have everything else working except this.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Buff Timer to be Statusbar instead of text


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off