GUI and non-GUI plugin combined (1 Viewer)

A

Anonymous

Guest
Hello,

I'm developing a plugin that needs to setup a listener for caller id information. For this I'm currently using the IPlugin interface for the Start and Stop methods. However I also needed to create another plugin to handle the GUI aspect of the plugin. Is there a way to combine the two so there would only be one plugin.

Thanks,
Troy
 

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
I haven't tested this 100% but I'm pretty sure that if you create a window plugin, if you override the Init method it will get called at startup. I've done this with my party shuffle addition. For example:

Code:
public override bool Init()
		{
			//added by Sam
			 GUIWindowManager.Receivers += new SendMessageHandler(this.OnThreadMessage);
                 }

Now all messages from MP are received by this class through the OnThreadMessage method.

Sam
 

Users who are viewing this thread

Top Bottom