IceChat Forums

IceChat 9 => IceChat 9 Problems => Topic started by: MrAlicard on March 10, 2014, 12:13:17 PM

Title: Create plugin
Post by: MrAlicard on March 10, 2014, 12:13:17 PM
Hello
I do not know where to write this, so I write here.
How can I do plugin?
There is something to starting point?
Source code or something.
Thank you in advance for your help. :)
Title: Re: Create plugin
Post by: Snerf on March 10, 2014, 01:41:38 PM
Yes you download the source code at http://icechat.codeplex.com/SourceControl/list/changesets and there is a Plugins folder which has a blank plugin template to work from and some other plugins as well, so you can see how it works.
Title: Re: Create plugin
Post by: MrAlicard on March 10, 2014, 02:03:27 PM
Wow, thank you for information and perfect IRC client. :D
Title: Re: Create plugin
Post by: MrAlicard on March 11, 2014, 08:12:08 AM
Another question.

Theme of how can to do it?
Title: Re: Create plugin
Post by: Snerf on March 11, 2014, 06:25:38 PM
Do you mean, you want some documentation?

Sorry, there is no documentation on how to create a plugin.
Title: Re: Create plugin
Post by: MrAlicard on March 11, 2014, 10:47:02 PM
Do you mean, you want some documentation?

Sorry, there is no documentation on how to create a plugin.

No,no. You know have View->Themes and there I will create new themes,but I don't know how do I get start.
Title: Re: Create plugin
Post by: Snerf on March 12, 2014, 03:01:03 AM
Oh, sorry, yes, I understand now.
Go to Color Settings, Themes. Add a new theme, and change your color settings.
Title: Re: Create plugin
Post by: MrAlicard on March 12, 2014, 08:24:03 AM
Thank you. :)
The themes will be put on images or isn't planned? :)
Title: Re: Create plugin
Post by: Snerf on March 12, 2014, 12:39:10 PM
Nothing yet, not sure if I will or not.
But yes, a preview would be nice.
Title: Re: Create plugin
Post by: MrAlicard on March 12, 2014, 01:10:39 PM
Thank you for information. :)
Title: Re: Create plugin
Post by: MrAlicard on March 15, 2014, 04:26:38 AM
Hello
I want to use the function LinkClicked in the plugin, but it fails.

Code:
Code: [Select]
public void LinkClicked(PluginArgs args)
        {
            try
            {
                YoutubeL(args.ToString());
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }

I get this warning:
Quote
'IceChatPlugin.Plugin.LinkClicked(IceChatPlugin.PluginArgs)' hides inherited member 'IceChatPlugin.IPluginIceChat.LinkClicked(IceChatPlugin.PluginArgs)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.

What am I doing wrong?
Title: Re: Create plugin
Post by: MrAlicard on March 15, 2014, 05:23:25 AM
Ok, I see now. Also It needs the override part. :)
Title: Re: Create plugin
Post by: Snerf on March 15, 2014, 10:49:39 AM
So I will change the way LinkClicked is run in IceChat 9 RC8.3

args.Extra contains the clickedword. If you return args.Extra from the plugin blank, IceChat itself will not run the Process.
You can also override/change the link in the plugin, by changing args.Extra to a different value.