// Occurs before the map is closed public override void OnMapCloseBegin() { // If we have a Comments panel, remove it if (dockerpanel != null) { dockerpanel.Terminate(); General.Interface.RemoveDocker(commentsdocker); commentsdocker = null; dockerpanel.Dispose(); dockerpanel = null; } }
// This is called after a map has been successfully opened public override void OnMapOpenEnd() { // If we just opened a UDMF format map, we want to create the Comments panel! if (General.Map.Config.FormatInterface == "UniversalMapSetIO") { dockerpanel = new CommentsDocker(); commentsdocker = new Docker("commentsdockerpanel", "Comments", dockerpanel); General.Interface.AddDocker(commentsdocker); dockerpanel.Setup(); dockerpanel.UpdateListSoon(); } }