Hi,
This thread is somewhat related to a thread
here.
I've been implementing auras element to my UI and found some strange bug(?) which also happens on my other addon as it is shown a thread above.
Basically I haven't touched anything apart from buffs and debuffs frame creation, and am using default aura button creation provided by oUF.
Lua Code:
function GenerateBuffs(frame, unit)
local buffs = CreateFrame("Frame", "$parentBuffs", frame);
buffs:SetPoint("BOTTOMLEFT", frame, "TOPLEFT", 0, 25);
buffs:SetSize((ICON_SIZE + 1) * (ICON_PER_ROW - 1) + ICON_SIZE, (ICON_SIZE + 1) * (ICON_PER_COL - 1) + ICON_SIZE);
buffs.size = ICON_SIZE;
buffs.spacing = 1;
buffs.num = ICON_PER_ROW * ICON_PER_COL;
return buffs;
end
function GenerateDebuffs(frame, unit)
local debuffs = CreateFrame("Frame", "$parentDebuffs", frame);
debuffs:SetPoint("BOTTOMRIGHT", frame, "TOPRIGHT", 0, 25);
debuffs:SetSize((ICON_SIZE + 1) * (ICON_PER_ROW - 1) + ICON_SIZE, (ICON_SIZE + 1) * (ICON_PER_COL - 1) + ICON_SIZE);
debuffs.size = ICON_SIZE;
debuffs.spacing = 1;
debuffs.num = ICON_PER_ROW * ICON_PER_COL;
debuffs["growth-x"] = "LEFT";
debuffs.initialAnchor = "BOTTOMRIGHT";
return debuffs;
end
However, for some random aura buttons, it starts to not show duration (cooldown text, cd:GetRegions()) as it is shown below.
At least I tested it on Rogue, Druid and Death Hunter, but they all had a same issue.
Unfortunately, this is sooooooooooooo random and I can't really think of the process to re-produce this issue.
I'm currently thinking that this would be an internal Lua bug with Blizzard's code, but who knows