Is there a way I can pass a callback function directly to WindowAddHotspot() and similar functions that use callbacks?
By this I mean I'd like to pass the actual function or specify a function within a table rather that a function which is directly defined in the global scope.
I ran across this while I was trying to repackage some things into more of an object oriented layout. I'm wanting to specify functions such as "TextWindow:MouseOver" as the callback, but since it's really looking for a string and not a function it doesn't know how to interpret this.
Just looking for some thoughts on this.
Thanks,
-C
By this I mean I'd like to pass the actual function or specify a function within a table rather that a function which is directly defined in the global scope.
I ran across this while I was trying to repackage some things into more of an object oriented layout. I'm wanting to specify functions such as "TextWindow:MouseOver" as the callback, but since it's really looking for a string and not a function it doesn't know how to interpret this.
Just looking for some thoughts on this.
Thanks,
-C