public void InitPlugin(TabPage pluginScreenSpace, Label pluginStatusText) { skillMap = SkillLoader.load(); SkillView = new SkillView(this); ACTTabControl = new ACTTabControl(this); pluginScreenSpace.Text = Assembly.GetExecutingAssembly().GetName().Name; pluginScreenSpace.Controls.Add(ACTTabControl); ACTTabControl.InitializeSettings(); Settings = new DataManager(this); Settings.Load(); ACTTabControl.Show(); ACTTabControl.ReloadSkillRotation(); ActGlobals.oFormActMain.OnCombatStart += CombatStarted; ActGlobals.oFormActMain.OnCombatEnd += CombatEnded; ActGlobals.oFormActMain.OnLogLineRead += OnLogLineRead; }
public void DeInitPlugin() { ActGlobals.oFormActMain.OnCombatStart -= CombatStarted; ActGlobals.oFormActMain.OnCombatEnd -= CombatEnded; ActGlobals.oFormActMain.OnLogLineRead -= OnLogLineRead; if (Settings != null) { Settings.Save(); } if (SkillView != null) { SkillView.Close(); } if (ACTTabControl != null) { ACTTabControl.Dispose(); } }