Thread: combo points
View Single Post
07-09-10, 02:42 AM   #3
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
In oUF 1.4 there are 2 ways to display combo points:

1) Use the 'cpoints' tag to display a text representation of the current combo points

e.g.
Code:
		local cpoints = self:CreateFontString(nil, 'OVERLAY')
		cpoints:SetPoint('RIGHT', self, 'LEFT', -config.SPACING, 0)
		cpoints:SetFont(config.FONT, config.FONTSIZELARGE, config.FONTBORDER)
		cpoints:SetJustifyH('RIGHT')
		self:Tag(cpoints, '|cffffffff[cpoints]|r')


2) Use the combo points element to display a number of texture for the current combo points

e.g.
Code:
	local cpoints = {}
	for i = 1, MAX_COMBO_POINTS do
		cpoints[i] = self:CreateTexture(nil, 'ARTWORK')
		cpoints[i]:SetSize(8, 8)
		cpoints[i]:SetTexture(1, i == 5 and 0 or 1, i == 5 and 0 or 1, 1)
		cpoints[i]:SetPoint('RIGHT', i == 1 and self or cpoints[i - 1], 'LEFT', -config.SPACING, 0)
	end
  Reply With Quote