neodite
New Member
- Joined
- Oct 12, 2010
- Messages
- 498
- Reaction score
- 3
Hi guys,
Im stuck on a small plugin. All it does is checks if you are in a party, if not it invites the toon that you choose.
But im getting the following error
Not got a clue what im doing wrong tho. I have taken a look at other plugins to see if they are doing anything different to me, but i cannot see any difference?
Here is my AutoInviter.cs
And here is my AutoInvite.Designer.cs
Does anyone have any ideas? Because im lost.
Another note, the plugin works fine normally, but i wanted to add a simple dialog to make it quicker/easier to change the toon name to invite.
Cheers for looking
Im stuck on a small plugin. All it does is checks if you are in a party, if not it invites the toon that you choose.
But im getting the following error
Code:
Plugin from C:\Users\Public\Documents\HonorBuddy\Plugins\AutoInviter could not be compiled! Compiler errors:
File: AutoInviter.Designer.cs Line: 14 Error: 'AutoInviter.AutoInviter.Dispose(bool)': no suitable method found to override
Not got a clue what im doing wrong tho. I have taken a look at other plugins to see if they are doing anything different to me, but i cannot see any difference?
Here is my AutoInviter.cs
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Styx;
using Styx.Helpers;
using Styx.Plugins.PluginClass;
using Styx.WoWInternals;
namespace AutoInviter
{
public partial class AutoInviter : HBPlugin
{
public override string Name { get { return "Party Inviter"; } }
public override string Author { get { return "neoDite"; } }
public override Version Version { get { return new Version(0, 1, 0, 0);; } }
public override string ButtonText { get { return "Change Character"; } }
public override bool WantButton { get { return false; } }
public override void Pulse()
{
if (!StyxWoW.Me.IsInParty)
{
Logging.Write(" Inviting + ToonName to party");
Lua.DoString("InviteUnit(\" + ToonName \")");
}
}
public void Ok_Click(object sender, EventArgs e)
{
string ToonName;
ToonName = textBox1.Text;
Logging.Write(" Autoinviter will now auto invite + ToonName if we are not in a party");
}
public override void OnButtonPress()
{
new FormSettings().ShowDialog();
}
}
}
And here is my AutoInvite.Designer.cs
Code:
namespace AutoInviter
{
public partial class AutoInviter
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(156, 41);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 0;
this.button1.Text = "Ok";
this.button1.UseVisualStyleBackColor = true;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(12, 18);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(102, 13);
this.label1.TabIndex = 1;
this.label1.Text = "Character Name:";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(120, 15);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(111, 20);
this.textBox1.TabIndex = 2;
this.textBox1.Text = "Enter toons name";
//
// AutoInviter
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(245, 73);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.Name = "AutoInviter";
this.Text = "AutoInviter";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox1;
}
}
Does anyone have any ideas? Because im lost.
Another note, the plugin works fine normally, but i wanted to add a simple dialog to make it quicker/easier to change the toon name to invite.
Cheers for looking