All UIPanelButtonTemplate does is create the necessary sub-widgets to make your newly-created Button look and behave in a pre-defined way.
UIDropDownMenuTemplate does the same thing, but all Frames created with it access and modify global variables which are in turn accessed and modified by secure code, which can cause blocked actions.
This is why everyone keeps saying UIPanelButtonTemplate isn't the culprit - it doesn't have the possibly catastrophic interactions UIDropDownMenuTemplate does - it just decorates and adds (local) behaviors to your Button.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".
Author of NPCScan and many other AddOns.
|