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.