From 8b99d0ee7bb1471c724a2135f977b23d21a00cc3 Mon Sep 17 00:00:00 2001 From: Cynyr Date: Thu, 28 Oct 2010 23:43:16 -0500 Subject: [PATCH] Working with oUF-1.5.x now --- oUF_ComboPoints.lua | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/oUF_ComboPoints.lua b/oUF_ComboPoints.lua index 4fb73b3..7c3fe96 100644 --- a/oUF_ComboPoints.lua +++ b/oUF_ComboPoints.lua @@ -29,14 +29,14 @@ local function updateCombo(self, event, unit) end end -local function style(self, unit) +local function style(self, unit, isSingle) --self:SetScript('OnEnter', UnitFrame_OnEnter) --self:SetScript('OnLeave', UnitFrame_OnLeave) --self:SetBackdrop(backdrop) --The forth arg controls Alpha, thats handy to know. self:SetBackdropColor(0, 0, 0, 0) - self:SetAttribute('initial-height', 10) - self:SetAttribute('initial-width', 10) + self:SetAttribute('initial-height', 40) + self:SetAttribute('initial-width', 40) self:Show() local points = self:CreateFontString(nil, 'OVERLAY') points:SetFont(font, 18, "OUTLINE") @@ -44,6 +44,9 @@ local function style(self, unit) points:SetAllPoints(self) points.frequentUpdates = 0.25 self:Tag(points, '[cpoints]') + if(isSingle) then + self:SetSize(40, 40) + end --self.CPoints = self:CreateFontString(nil, 'OVERLAY') --self.CPoints:SetFont(font, 18, "OUTLINE") @@ -55,6 +58,12 @@ local function style(self, unit) --self:RegisterEvent('UNIT_COMBO_POINTS', updateCombo) end +local UnitSpecific = { + player = function(self, ...) + style(self, ...) + end +} + oUF:RegisterStyle('ComboPoints', style) oUF:SetActiveStyle('ComboPoints') oUF:Spawn('target', "CP"):SetPoint('CENTER', UIParent, 0,0) -- 1.7.9.5