diff --git a/AceCreator.cs b/AceCreator.cs index 44b362d..6dc4660 100644 --- a/AceCreator.cs +++ b/AceCreator.cs @@ -295,12 +295,10 @@ public void LoadWindow() // ***** Advanced Tab ***** - ChoiceGenerator = (HudCombo)view["ChoiceGenerator"]; ChoiceGenerator.Change += new EventHandler(ChoiceGenerator_Change); - TextboxGeneratorWCID = (HudTextBox)view["TextboxGeneratorWCID"]; - + TextboxGeneratorWCID = (HudTextBox)view["TextboxGeneratorWCID"]; ButtonCreateGenerator = view != null ? (HudButton)view["ButtonCreateGenerator"] : new HudButton(); ButtonCreateGenerator.Hit += new EventHandler(ButtonCreateGenerator_Click); @@ -329,6 +327,10 @@ public void LoadWindow() ButtonAdvancedRemoveInst = view != null ? (HudButton)view["ButtonAdvancedRemoveInst"] : new HudButton(); ButtonAdvancedRemoveInst.Hit += new EventHandler(ButtonRemoveInstace_Click); + ButtonAdvancedRemoveEncounter = view != null ? (HudButton)view["ButtonAdvancedRemoveEncounter"] : new HudButton(); + ButtonAdvancedRemoveEncounter.Hit += new EventHandler(ButtonAdvancedRemoveEncounter_Click); + + // ***** Paths Tab ***** TextBoxPathJSON = (HudTextBox)view["TextboxPathJSON"]; TextBoxPathSQL = (HudTextBox)view["TextboxPathSQL"]; diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index d4b8c11..da13ebc 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.3.4")] -[assembly: AssemblyFileVersion("2.0.0.0")] +[assembly: AssemblyFileVersion("2.0.1.0")] diff --git a/TabAdvanced.cs b/TabAdvanced.cs index f520911..bd77805 100644 --- a/TabAdvanced.cs +++ b/TabAdvanced.cs @@ -18,6 +18,7 @@ public partial class AceCreator : PluginBase public HudButton ButtonAdvancedRemoveInst { get; set; } public HudButton ButtonCreateMob { get; set; } + public HudButton ButtonAdvancedRemoveEncounter { get; set; } public HudTextBox TextboxGeneratorWCID { get; set; } @@ -118,7 +119,17 @@ public void ButtonCreateMob_Click(object sender, EventArgs e) } catch (Exception ex) { Util.LogError(ex); } } + public void ButtonAdvancedRemoveEncounter_Click(object sender, EventArgs e) + { + + try + { + Globals.ButtonCommand = "/removeenc"; + CommandWait(sender, e); + } + catch (Exception ex) { Util.LogError(ex); } + } } } diff --git a/docs/images/AdvancedTab.PNG b/docs/images/AdvancedTab.PNG index 951c274..6b5adb9 100644 Binary files a/docs/images/AdvancedTab.PNG and b/docs/images/AdvancedTab.PNG differ diff --git a/mainView.xml b/mainView.xml index b8cf04e..09fba42 100644 --- a/mainView.xml +++ b/mainView.xml @@ -149,6 +149,9 @@ + + +