Thread Tools Display Modes
07-15-12, 12:18 AM   #1
Paopao001
A Fallenroot Satyr
 
Paopao001's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 20
Buffs are hidden when login

A bug exists in build 15851.That is:
Buffs on the topright are hidden when logging in, until I gains a buff or debuff.
I tested this with freeui, qulightui and my layout,and met the same problem in all of them.

Lua Code:
  1. local HandleFrame = function(baseName)
  2.     local frame
  3.     if(type(baseName) == 'string') then
  4.         frame = _G[baseName]
  5.     else
  6.         frame = baseName
  7.     end
  8.  
  9.     if(frame) then
  10.         frame:UnregisterAllEvents()---------buff/debuff work right when delete this line
  11.         frame:Hide()
  12.        
  13.         -- Keep frame hidden without causing taint
  14.         frame:SetParent(hiddenParent)
  15.  
  16.         local health = frame.healthbar
  17.         if(health) then
  18.             health:UnregisterAllEvents()
  19.         end
  20.  
  21.         local power = frame.manabar
  22.         if(power) then
  23.             power:UnregisterAllEvents()
  24.         end
  25.  
  26.         local spell = frame.spellbar
  27.         if(spell) then
  28.             spell:UnregisterAllEvents()
  29.         end
  30.  
  31.         local altpowerbar = frame.powerBarAlt
  32.         if(altpowerbar) then
  33.             altpowerbar:UnregisterAllEvents()
  34.         end
  35.     end
  36. end

Unfortunately, I just found where things are wrong but don't know how to fix it.
__________________

I hope you could understand my broken English.
If I offended you it was unwitting.
  Reply With Quote
07-29-12, 09:04 AM   #2
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Fixed on GitHub.
__________________
「貴方は1人じゃないよ」
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Buffs are hidden when login


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