Thread Tools Display Modes
02-10-19, 03:31 AM   #1
Mayron
A Frostmaul Preserver
 
Mayron's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 275
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.
  Reply With Quote
02-10-19, 05:55 AM   #2
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 404
HookScript does a post hook (runs original code first and then yours).
  Reply With Quote
02-10-19, 06:56 AM   #3
Mayron
A Frostmaul Preserver
 
Mayron's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 275
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.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Is there a way to call a Blizzard widget script securely?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off