Skip to content

Commit

Permalink
Merge pull request #15 from harliq/AddRemoveEncounter
Browse files Browse the repository at this point in the history
Added remove encounter button to Advanced Tab
  • Loading branch information
harliq authored Nov 5, 2020
2 parents 0d1bd02 + 3c578fc commit bd8e40c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
8 changes: 5 additions & 3 deletions AceCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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"];
Expand Down
2 changes: 1 addition & 1 deletion Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
11 changes: 11 additions & 0 deletions TabAdvanced.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down Expand Up @@ -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); }
}

}
}
Binary file modified docs/images/AdvancedTab.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions mainView.xml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
<control progid="DecalControls.PushButton" name="ButtonCreateMob" left="10" top="310" width="340" height="25" text="Create Mob (/createinst -p GUID -c 1)"/>

<control progid="DecalControls.PushButton" name="ButtonAdvancedRemoveInst" left="10" top="270" width="340" height="25" text="Remove Instance"/>

<control progid="DecalControls.PushButton" name="ButtonAdvancedRemoveEncounter" left="10" top="320" width="340" height="25" text="Remove Encounter"/>

</control>
</page>

Expand Down

0 comments on commit bd8e40c

Please sign in to comment.