So, I've noticed this is something Prat used to do, but it no longer works(I personally couldn't get it to work, but name-pop ups did), but my chat addon I've made is decidedly more simplistic than prat, and I find the code hard to cipher through to figure out how to implement it in mine..
I've attempted to do this myself with no luck, and I honestly can't figure out why.
I have this function
lua Code:
local function scrollingEmotes(self, event, message, ...)
if event == "CHAT_MSG_TEXT_EMOTE" or "CHAT_MSG_EMOTE" then
UIErrorsFrame:AddMessage(message)
print("Test of Emote Event")
end
end
local a = CreateFrame("Frame")
a:RegisterEvent("CHAT_MSG_TEXT_EMOTE")
a:RegisterEvent("CHAT_MSG_EMOTE")
a:SetScript("OnEvent", scrollingEmotes)
It's event handler code I successfully use in other parts of my UI addon, but for some reason, it's simply not working here, and I don't know why. I get no errors, but when I see an emote, I get neither the debug message nor the emote printed to the UIErrors frame.