-
Notifications
You must be signed in to change notification settings - Fork 0
eventHandler
ENDERZOMBI102 edited this page Aug 20, 2020
·
1 revision
The eventHandler has methods that make creating, sending and react to events as simple as a function call. The eventHandler object is global (shared for all plugins), so a plugin emitting an event may trigger a callback on another plugin.
registers CALLBACK on the EVENT listener
when EVENT is triggered CALLBACK will be executed
callbacks should implement the same parameter names that the event will give
triggers EVENT with the given kw args, it may not have kw args
By default BM ships with those events:
Event | Arguments | Argument types | Description |
---|---|---|---|
logWindowObject | object | logWindow | triggered when the log window finishes loading, object is the logWindow object |