View Single Post
09-22-17, 05:53 AM   #5
kurapica.igas
A Chromatic Dragonspawn
Join Date: Aug 2011
Posts: 152
And about the wrapscript, you'd better have a look at the SecureHandlers, it's a little like the HookScript, but there are two secure snippets, prebody before the real script handler, and a postbody after that.

The snippets are running in the manager's environment not the target frames, so I can use variables like Manager in those snippets, that's the main reason why I use it, so I can manage all unit frames on all panels in one Manager's environment.

You can find the variables for each script type in that file. The prebody may return two values, the first determine whether the real script handler would be run(also the postbody), the second is a message, if the message existed then the postbody would be called after the real script handler. As an example, I can swap two button's action after clicking one of them.
  Reply With Quote