Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-23-10, 07:58 AM   #1
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 268
.visibleAuras

From what I can gather from ouF aura.lua, .visibleAuras gives me the current number of Auras (Buffs + Debuffs) visible, is that right?

I'm trying to get its value on my custom PostUpdateIcon function, but everytime I call it, it returns an error.

For example this in my PostUpdateIcon

Code:
i = Auras.visibleAuras
local i=i+i
Returns this error:

Interface\AddOns\oUF_lumen\oUF_lumen.lua:630: attempt to perform arithmetic on local 'i' (a nil value)

Am I getting it wrong? Shouldn't it return an arithmetic value? I think .visibleAuras is a global on oUF right? So I don't need to declare it. I've search for other ouF authors layouts but rarely anyone makes use of this.

Thanks!
__________________
My oUF Layout: oUF Lumen
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » .visibleAuras


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