From c90980c85ca4d56f8b224e7fb713598ae38c4003 Mon Sep 17 00:00:00 2001 From: Cynyr Date: Fri, 2 Jul 2010 13:41:12 -0500 Subject: [PATCH] updated for ouf 1.4 --- oUF_ComboPoints.lua | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/oUF_ComboPoints.lua b/oUF_ComboPoints.lua index 1af5991..4fb73b3 100644 --- a/oUF_ComboPoints.lua +++ b/oUF_ComboPoints.lua @@ -37,15 +37,22 @@ local function style(self, unit) self:SetBackdropColor(0, 0, 0, 0) self:SetAttribute('initial-height', 10) self:SetAttribute('initial-width', 10) - - self.CPoints = self:CreateFontString(nil, 'OVERLAY') - self.CPoints:SetFont(font, 18, "OUTLINE") - self.CPoints:SetTextColor(0,0,0,1) - self.CPoints:SetPoint('CENTER', self, 0,0) - self.CPoints:SetTextColor(1, 1, 1) - self.CPoints:SetJustifyH('RIGHT') - self.CPoints.unit = PlayerFrame.unit - self:RegisterEvent('UNIT_COMBO_POINTS', updateCombo) + self:Show() + local points = self:CreateFontString(nil, 'OVERLAY') + points:SetFont(font, 18, "OUTLINE") + points:SetTextColor(1,1,1,1) + points:SetAllPoints(self) + points.frequentUpdates = 0.25 + self:Tag(points, '[cpoints]') + + --self.CPoints = self:CreateFontString(nil, 'OVERLAY') + --self.CPoints:SetFont(font, 18, "OUTLINE") + --self.CPoints:SetTextColor(0,0,0,1) + --self.CPoints:SetPoint('CENTER', self, 0,0) + --self.CPoints:SetTextColor(1, 1, 1) + --self.CPoints:SetJustifyH('RIGHT') + --self.CPoints.unit = PlayerFrame.unit + --self:RegisterEvent('UNIT_COMBO_POINTS', updateCombo) end oUF:RegisterStyle('ComboPoints', style) -- 1.7.9.5