Skip to content

Instantly share code, notes, and snippets.

@yaroot
Created November 17, 2009 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaroot/236503 to your computer and use it in GitHub Desktop.
Save yaroot/236503 to your computer and use it in GitHub Desktop.
local ccp = {
[1] = '|cffffffff1|r',
[2] = '|cffffffff2|r',
[3] = '|cffffffff3|r',
[4] = '|cffffd8194|r',
[5] = '|cffff00005|r',
}
oUF.Tags['[leafcp]'] = function(u)
local cp = GetComboPoints(PlayerFrame.unit, 'target')
return ccp[cp]
end
oUF.TagEvents['[leafcp]'] = 'UNIT_COMBO_POINTS UNIT_TARGET'
local cp = self.Health:CreateFontString(nil, 'OVERLAY')
cp:SetFont(DAMAGE_TEXT_FONT, 25, 'OUTLINE')
cp:SetPoint('CENTER', UIParent, 0, -200)
self:Tag(cp, '[leafcp]')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment