From e5e925cee8fd638b3f25937e878d8d3f89e6c5a3 Mon Sep 17 00:00:00 2001 From: Scott Sibley Date: Fri, 22 Oct 2010 23:09:38 +0000 Subject: [PATCH] Use StarTip's core --- Modules/Histograms/Histograms.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Modules/Histograms/Histograms.lua b/Modules/Histograms/Histograms.lua index 2fd3bf1..c0411a6 100644 --- a/Modules/Histograms/Histograms.lua +++ b/Modules/Histograms/Histograms.lua @@ -367,8 +367,6 @@ function mod:OnInitialize() self:ReInit() - self.core = LibCore:New(mod, environment, "StarTip.Histograms", {["StarTip.Histograms"] = {}}, nil, StarTip.db.profile.errorLevel) - self.offset = 0 StarTip:SetOptionsDisabled(options, true) @@ -377,6 +375,8 @@ function mod:OnInitialize() end function mod:OnEnable() + self.core = StarTip.core --LibCore:New(mod, environment, "StarTip.Histograms", {["StarTip.Histograms"] = {}}, nil, StarTip.db.profile.errorLevel) + StarTip:SetOptionsDisabled(options, false) if StarTip.db.profile.intersectRate > 0 then self.intersectTimer = self.intersectTimer or LibTimer:New("Texts.intersectTimer", self.db.profile.intersectRate or 200, true, intersectUpdate) @@ -394,6 +394,7 @@ function mod:OnEnable() end function mod:OnDisable() + self.core:Del() self:ClearHistograms() GameTooltip:SetClampRectInsets(0, 0, 0, 0) StarTip:SetOptionsDisabled(options, true) -- 1.7.9.5