View Single Post
  #6  
Unread 03-05-2009, 04:07 PM
EQAditu's Avatar
EQAditu EQAditu is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Permafrost
Posts: 256
Default

Here, I made the plugin in less than three minutes... just so you can see how easy it is.

Code:
using System;
using System.Collections.Generic;
using System.Text;
using Advanced_Combat_Tracker;

namespace ACT_Plugin
{
	public class ParseForActEnd : IActPluginV1
	{
		public void InitPlugin(System.Windows.Forms.TabPage pluginScreenSpace, System.Windows.Forms.Label pluginStatusText)
		{
			ActGlobals.oFormActMain.OnLogLineRead += oFormActMain_OnLogLineRead;
		}

		void oFormActMain_OnLogLineRead(bool isImport, LogLineEventArgs logInfo)
		{
			if(logInfo.logLine.Contains("act end"))
				ActGlobals.oFormActMain.ActCommands("end");
		}
		public void DeInitPlugin()
		{
			ActGlobals.oFormActMain.OnLogLineRead -= oFormActMain_OnLogLineRead;
		}
	}
}
Most of the typing was actually done by Visual Studio Express and Intellisense auto-completing.

Last edited by EQAditu : 03-05-2009 at 04:09 PM.
Reply With Quote