Quantcast WoWInterface - View Single Post - Addon blocks Glyph Ui
View Single Post
07-30-12, 07:00 AM   #1
A Flamescale Wyrmkin
Miiru's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 135
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:

local frame = CreateFrame("FRAME");																					
		function frame:OnEvent(event, arg1)
			if event == "ADDON_LOADED" and arg1 == "Blizzard_TalentUI" then
			_,c= PlayerTalentFrameSpecialization:GetRegions();		
			c1,_,_,_,_,_,_,_,_,_,_,c4 = PlayerTalentFrameSpecializationSpellScrollFrameScrollChild:GetRegions();
  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 - [Core] [Blue] [Grey] ◘◘

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