EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:36 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI