here I hook ZO_ChatSystem_OnLinkClicked, call the original ZO_ChatSystem_OnLinkClicked, then hide the menu, add menu items, and show it again, does the job fine here you can test this in my addon
The only drawback of hooking it is that the menu is flagged unprotected, and even
CallSecureProtected("ShowMenu", nil, 1)
CallSecureProtected("AddMenuItem", COLOR_HAM.."Train as HAM"..COLOR_STOP, function() train(id, false) end)
won't work at all
But anyway it seems only restricting the "Target player" option which is garbage to me , who targets from a ChatWindow today, and anyway this game is not target friendly, huhu
Last edited by Fathis Ules : 05/10/14 at 12:06 PM.
|