// This is called after a map has been successfully opened public override void OnMapOpenEnd() { if (tagExplorer == null) { tagExplorer = new TagExplorer(); docker = new Docker("tagexplorerdockerpanel", "Tag Explorer", tagExplorer); General.Interface.AddDocker(docker); tagExplorer.Setup(); } }
// This is called after a map has been closed public override void OnMapCloseBegin() { // If we have a Tag Explorer panel, remove it if (tagExplorer != null) { tagExplorer.Terminate(); General.Interface.RemoveDocker(docker); docker = null; tagExplorer.Dispose(); tagExplorer = null; } }