View Single Post
06-15-10, 04:57 PM   #18
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
What Xrystal said is the easiest way to handle multiple frames; let them handle their own events.


And for the "self error"; You're doing it wrong here. You're not passing self as the first argument.
GUINameTextEvents:SetScript("OnEvent", function()
GrimUI.PartyNameTextEvents()
end)
should be
GUINameTextEvents:SetScript("OnEvent", GrimUI.PartyNameTextEvents)

No point creating the small extra function, this also passes all arguments.
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.

Last edited by v6o : 06-15-10 at 05:02 PM.
  Reply With Quote