View Single Post
Unread 07-30-12, 07:00 AM   #1
Miiru
A Theradrim Guardian
 
Miiru's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 66
Addon blocks Glyph Ui

So today i wanted to remove some more frames and continue to work on my texture pack and i came along the Glyph Ui, tried to equip a glyph and noticed that i get the usual action blocked message.

Curiously i wasn't even changing anything near the glyph UI so i looked over and over and it came down to this little code:

Code:
local frame = CreateFrame("FRAME");																					
		frame:RegisterEvent("ADDON_LOADED")
		function frame:OnEvent(event, arg1)
		
			if event == "ADDON_LOADED" and arg1 == "Blizzard_TalentUI" then
			
			_,c= PlayerTalentFrameSpecialization:GetRegions();		
			c:Hide()		
			c1,_,_,_,_,_,_,_,_,_,_,c4 = PlayerTalentFrameSpecializationSpellScrollFrameScrollChild:GetRegions();
			c1:SetTexture(0,0,0,0)
			c4:SetTexture(0.129,0.113,0.129,1)
	
   	 end
   	end
   	 
  frame:SetScript("OnEvent", frame.OnEvent);
If i delte those few lines, everything runs fine. I tested if those frames are protected by i always returned nil (unless i did it wrong ). Another interesting thing is that if i open up the Glyph Window and proceed to first remove a glyph and the equip one, i don't get an error at at all.

Any ideas on how to get rid of it? :/

edit: digged a bit deeper and it seems to be child c and child c4 causing the error.
__________________
◘◘ Author of MiirGui Texture Pack ◘◘

Last edited by Miiru : 07-30-12 at 11:01 AM.
Miiru is online now