View Single Post
07-01-18, 07:16 AM   #2
runamonk
A Theradrim Guardian
 
runamonk's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 61
I added support to my layout, granted it only works while not in combat which is all I wanted/needed. This will work for now until we can get a more correct way to do it.

Lua Code:
  1. local function PostCreateIcon(Auras, button)
  2.     button.count = mnkLibs.createFontString(button, mnkLibs.Fonts.ap, 10,  nil, nil, true)
  3.     button.count:ClearAllPoints()
  4.     button.count:SetPoint('TOPRIGHT', button, 0, 2)
  5.     button.timer = mnkLibs.createFontString(button, mnkLibs.Fonts.ap, 10,  nil, nil, true)
  6.     button.timer:ClearAllPoints()
  7.     button.timer:SetPoint('BOTTOMLEFT', button, 0, 0)
  8.     button.icon:SetTexCoord(.07, .93, .07, .93)
  9.     button:SetScript('OnClick', function(self, button) CancelUnitBuff('player', self:GetName():match('%d')) end)
  10.     mnkLibs.createBorder(button, 1,-1,-1,1, {0,0,0,1})
  11. end
  Reply With Quote