Author Topic: Create plugin  (Read 2503 times)

MrAlicard

  • Newbie
  • *
  • Posts: 11
Create plugin
« 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. :)

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Create plugin
« Reply #1 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.
The IceChat God

MrAlicard

  • Newbie
  • *
  • Posts: 11
Re: Create plugin
« Reply #2 on: March 10, 2014, 02:03:27 PM »
Wow, thank you for information and perfect IRC client. :D

MrAlicard

  • Newbie
  • *
  • Posts: 11
Re: Create plugin
« Reply #3 on: March 11, 2014, 08:12:08 AM »
Another question.

Theme of how can to do it?

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Create plugin
« Reply #4 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.
The IceChat God

MrAlicard

  • Newbie
  • *
  • Posts: 11
Re: Create plugin
« Reply #5 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.

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Create plugin
« Reply #6 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.
The IceChat God

MrAlicard

  • Newbie
  • *
  • Posts: 11
Re: Create plugin
« Reply #7 on: March 12, 2014, 08:24:03 AM »
Thank you. :)
The themes will be put on images or isn't planned? :)

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Create plugin
« Reply #8 on: March 12, 2014, 12:39:10 PM »
Nothing yet, not sure if I will or not.
But yes, a preview would be nice.
The IceChat God

MrAlicard

  • Newbie
  • *
  • Posts: 11
Re: Create plugin
« Reply #9 on: March 12, 2014, 01:10:39 PM »
Thank you for information. :)

MrAlicard

  • Newbie
  • *
  • Posts: 11
Re: Create plugin
« Reply #10 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?

MrAlicard

  • Newbie
  • *
  • Posts: 11
Re: Create plugin
« Reply #11 on: March 15, 2014, 05:23:25 AM »
Ok, I see now. Also It needs the override part. :)

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Create plugin
« Reply #12 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.
« Last Edit: March 15, 2014, 11:03:42 AM by Snerf »
The IceChat God