WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   Action Forbidden (https://www.wowinterface.com/forums/showthread.php?t=56538)

scrable 08-13-18 04:10 PM

Action Forbidden
 
I'm trying to solve an issue I have had once the function ReportPlayerIsPVPAFK() was changed to protected some time around 5.0.1. I've been lazy and ignored the issue until now, but I'd like to fix it. I continue to get taints from the target dropdown menu for reporting a player away in a battleground. The only handling I do for menus is
Code:

        self.menu = menu
        self:SetScript("OnEnter", UnitFrame_OnEnter)
        self:SetScript("OnLeave", UnitFrame_OnLeave)
        self:RegisterForClicks"AnyUp"

inside shared for all units. The information provided by the taint log only directs me to the FrameXML\UIDropDownMenu which I don't know how to deal with. I'm not really sure what other informations I need to provide for debugging this other than this. I don't know how to hook into Blizzard call for this function. Thank you!

p3lim 08-13-18 07:20 PM

Remove that first line. oUF does secure menus for you.

scrable 08-13-18 10:04 PM

Thanks, it appears to have worked. I forgot there was also some leftover code I overlooked that removed set focus and clear focus from the menus. Removed that also and it works now. Thanks for your help.


All times are GMT -6. The time now is 01:36 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI