View Single Post
05/09/14, 05:22 PM   #1
BadVolt
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 74
Adding items to chat context menu

Hi, guys.
I have a question and hope you can help me.
I want to add additional item to context menu at chat (when you r-click on player name). I found ingame function to do that, but menu is re-created each time player name is clicked.
Lua Code:
  1. AddMenuItem(mytext, myfunction, itemType, myfont, normalColor, highlightColor, itemYPad)

I tried to capture event "OnLinkClicked" for all possible chat windows (stored at "ZO_ChatWindow.container.windows"), but there's a problem. ZO_ChatWindow.container is empty untill someone writes sth to chat, so containers inside can't be hooked before that.

I's stuck. Only some hacky-business is on my mind. So, any ideas how to add own item to ingame menu?
  Reply With Quote