Showing results 1 to 11 of 11
Search took 0.00 seconds.
Search: Posts Made By: Phanx
Forum: oUF (Otravi Unit Frames) 07-29-18, 06:08 PM
Replies: 27
Views: 26,654
Posted By Phanx
Nope, sorry.

Nope, sorry.
Forum: oUF (Otravi Unit Frames) 01-19-15, 05:44 PM
Replies: 27
Views: 26,654
Posted By Phanx
Yes, your "else" was spot on! :D

Yes, your "else" was spot on! :D
Forum: oUF (Otravi Unit Frames) 01-19-15, 04:46 PM
Replies: 27
Views: 26,654
Posted By Phanx
Possible, certainly, but that snippet you posted...

Possible, certainly, but that snippet you posted has a syntax error on almost every line. :p

1. The proper format is "for ... do" just like "if ... then" -- you are missing the "do" keyword.

2. You...
Forum: oUF (Otravi Unit Frames) 09-20-12, 02:07 AM
Replies: 27
Views: 26,654
Posted By Phanx
UnitAura actually seems to be returning 0 for...

UnitAura actually seems to be returning 0 for both count and duration on auras with no charges or duration, respectively, but I've added some more checks just in case.



Set...
Forum: oUF (Otravi Unit Frames) 09-19-12, 04:38 PM
Replies: 27
Views: 26,654
Posted By Phanx
I have no idea why you changed all of the...

I have no idea why you changed all of the variable names in my code. Variables are not aware of their names, only their values. You only need to pass in the right value from your code. In your code,...
Forum: oUF (Otravi Unit Frames) 09-18-12, 09:36 PM
Replies: 27
Views: 26,654
Posted By Phanx
You should really use the entire file I posted;...

You should really use the entire file I posted; you left half of it out in your paste, and my code was not even remotely designed to be dropped into the middle of some other code. It's a total...
Forum: oUF (Otravi Unit Frames) 09-18-12, 12:30 AM
Replies: 27
Views: 26,654
Posted By Phanx
In your last example: local buff = buffs[i]...

In your last example:
local buff = buffs[i]
bar.aura = aura --BuffBars.bars[i].aura
would set "bar.aura" to nil, because "aura" isn't defined. I think you meant "bar.aura = buff" there.

In your...
Forum: oUF (Otravi Unit Frames) 09-17-12, 07:27 PM
Replies: 27
Views: 26,654
Posted By Phanx
Please post your current whole file; without it,...

Please post your current whole file; without it, identifying the cause of any error is pretty much impossible.



Because you are not adding every buff on the unit to the table. You are only adding...
Forum: oUF (Otravi Unit Frames) 09-16-12, 10:33 PM
Replies: 27
Views: 26,654
Posted By Phanx
local pool = { } local function...

local pool = { }

local function table_new()

Change that to table_create... I need more caffeine or sleep or something. >_<
Forum: oUF (Otravi Unit Frames) 09-16-12, 01:27 AM
Replies: 27
Views: 26,654
Posted By Phanx
Oh, I think I see what the problem is. Try...

Oh, I think I see what the problem is. Try this:
local debuffs = {}

local function UpdateDebuff(self, event, unit)
if self.unit ~= unit then return end
local DebuffBars = self.DebuffBars

local...
Forum: oUF (Otravi Unit Frames) 09-14-12, 06:05 PM
Replies: 27
Views: 26,654
Posted By Phanx
This is the problem: oUF:AddElement('AuraBars',...

This is the problem:

oUF:AddElement('AuraBars', UpdateBuff, UpdateDebuff, EnableBuff, EnableDebuff, DisableBuff, DisableDeuff)

AddElement only accepts four arguments: (1) the element name, (2) the...
Showing results 1 to 11 of 11