Quantcast
Duration text disappeared for some random aura buttons - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-19-17, 08:16 PM   #1
Layback_
An Onyxian Warder
Join Date: Feb 2016
Posts: 356
Duration text disappeared for some random aura buttons

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:
  1. function GenerateBuffs(frame, unit)
  2.     local buffs = CreateFrame("Frame", "$parentBuffs", frame);
  3.     buffs:SetPoint("BOTTOMLEFT", frame, "TOPLEFT", 0, 25);
  4.     buffs:SetSize((ICON_SIZE + 1) * (ICON_PER_ROW - 1) + ICON_SIZE, (ICON_SIZE + 1) * (ICON_PER_COL - 1) + ICON_SIZE);
  5.  
  6.     buffs.size = ICON_SIZE;
  7.     buffs.spacing = 1;
  8.     buffs.num = ICON_PER_ROW * ICON_PER_COL;
  9.  
  10.     return buffs;
  11. end
  12.  
  13. function GenerateDebuffs(frame, unit)
  14.     local debuffs = CreateFrame("Frame", "$parentDebuffs", frame);
  15.     debuffs:SetPoint("BOTTOMRIGHT", frame, "TOPRIGHT", 0, 25);
  16.     debuffs:SetSize((ICON_SIZE + 1) * (ICON_PER_ROW - 1) + ICON_SIZE, (ICON_SIZE + 1) * (ICON_PER_COL - 1) + ICON_SIZE);
  17.  
  18.     debuffs.size = ICON_SIZE;
  19.     debuffs.spacing = 1;
  20.     debuffs.num = ICON_PER_ROW * ICON_PER_COL;
  21.     debuffs["growth-x"] = "LEFT";
  22.     debuffs.initialAnchor = "BOTTOMRIGHT";
  23.  
  24.     return debuffs;
  25. 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

Last edited by Layback_ : 07-19-17 at 08:22 PM.
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Duration text disappeared for some random aura buttons

Thread Tools
Display Modes

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