View Single Post
06/22/15, 11:08 AM   #16
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
Originally Posted by XanDDemoX View Post
You can make your own
This only works for addon event handlers, which is something I already do whenever it is possible.
But there is no way - at least I know of none - to access the ingame event handlers, so in order to test how the GUI reacts to a specific event, I need to find a situation in the game where the event will get triggered and do that over and over again.

For example I built a feature into sidWarTools that reacts to EVENT_RESURRECT_REQUEST and also is linked to the behavior of the default UI. In order to test what happens when I get resurrected I had to let myself get killed and have someone revive me over and over.
I could add some extra code to call the handler in my addon manually, but it is only one part of the functionality and the handler in the default UI is not exposed, so I can't do the same with that.
With a DebugFireEvent function I could simply fire that event and the event manager handles the rest.
  Reply With Quote