WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Is there a way to call a Blizzard widget script securely? (https://www.wowinterface.com/forums/showthread.php?t=57018)

Mayron 02-10-19 03:31 AM

Is there a way to call a Blizzard widget script securely?
 
I am not sure if Blizzard added support for this over the years and I missed it but is it possible to get a blizzard frame, replace a script (such as OnDragStart, for example) with a custom script but then after executing the old script in a secure way? Some Blizzard frame scripts will cause a taint error if you do this and it would be nice to be able to do this in a secure way.

I remember that this used to be a big problem and not been up to date with the latest API changes.

Vrul 02-10-19 05:55 AM

HookScript does a post hook (runs original code first and then yours).

Mayron 02-10-19 06:56 AM

Ah sorry, my problem actually turned out to be a script that moves a blizzard frame (the spell frame) while in combat. Got mixed up. Doesn't look like you can move the spell frame through a drag event while in combat. Wish there was a way around this but don't think so.


All times are GMT -6. The time now is 11:44 AM.

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