Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-28-06, 02:52 PM   #1
JIM the Inventor
A Cyclonian
 
JIM the Inventor's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 42
"Event Handler Wrapper"?

I've just been browsing through the 1.10 discussion thread, shown here:

http://forums.worldofwarcraft.com/th...n&T=286547&P=8

On that page, Iriel and slouken discuss the passing of parameters to On- events (in XML):

Q u o t e:
I'm not sure if that's doable either, but if the globals were still set the way they are now, code written in On* blocks could stay as it is today, and code that wishes to take advantage of parameters in the XML could call this:SetScript in the OnLoad block.

-- end Iriel quote -- begin slouken quote --

That means that every dispatch of a handler would have to both set global variables and put them on the stack. It seems like a lot of work for a minority case.

I'll point out that you could easily have this in your own code by creating an event dispatch wrapper that does this.
Whoa! I thought the events were generally untouchable by us authors! What's he talking about? How would one write an event wrapper? Does this imply that we can produce events as well?
  Reply With Quote
 

WoWInterface » Developer Discussions » General Authoring Discussion » "Event Handler Wrapper"?


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