Hi
I'm trying to create a new module into Pixymon.
I've been browsing around in Wikis and Forums and found a few discussions, but not quite found description of how the MonModule concept is working.
Here's what I've found (please correct me where I'm incorrect):
Render modes:In raw mode, only the Renderer module is active.
In cooked mode, all registered modules are active, starting with a call to the Renderer module (basically rendering the raw image, on which subsequent modules may overlay upon). I think the sequence of which the modules are defined in
pixymon.pro determines the calling sequence.
MonModule:
render(): called by PixyMon to let the module render whatever needs to be shown.
command(): called by menus, added by the module itself.
paramChange(): called by the configuration page, added by the module itself.
Each registered MonModule will have it's render method called, potentially doing some rendering. If a render method returns true, subsequent modules are
NOT called.
I'm not quite sure why a module should be able to prevent other modules from processing.
Perhaps a better approach would be to allow modules to be individually enable/disabled?
~Per