File:War of the Dragon Queen Huge Pack.jpg
Licensing
gollark: ¿???¿?
gollark: Er, yes.
gollark: If you want callback-driven, then I would do something like this:```lua-- table of event listeners for each programlocal listeners = {}-- make this available to each programlocal function addEventListener(event, handler) listeners[event] = handlerend-- run this when the close button is calledlocal function thingy() if listeners.close then listeners.close() actuallyCloseProgram() else actuallyCloseProgram() endend```
gollark: Ah yes, that may be a problem.
gollark: What?
This article is issued from Dandwiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.