Mercurial > wow > buffalo2
diff Modules/BuffFrame.lua @ 64:ba9c13261bb2
- parametrize buff button customizations
author | Nenue |
---|---|
date | Wed, 17 Aug 2016 15:26:54 -0400 |
parents | ef4116179e2f |
children | f80ee484ac8a |
line wrap: on
line diff
--- a/Modules/BuffFrame.lua Tue Aug 16 08:37:26 2016 -0400 +++ b/Modules/BuffFrame.lua Wed Aug 17 15:26:54 2016 -0400 @@ -11,6 +11,11 @@ - BuffButtons can only be hidden/shown by blizzcode, so functions doing that have to be accounted for --]] +local BUFF_BUTTON_SIZE = 48 +local BUFF_PROGRESS_SIZE = 4 +local BUFF_PROGRESS_INSET = 1 +local BUFF_BUTTON_ZOOM = 0 + local plugin = CreateFrame('Frame', 'VeneerBuffFrame', UIParent) local vn, print = LibStub("LibKraken").register(VeneerController, plugin) @@ -186,8 +191,10 @@ print(tickCounter[frame], frame:GetName(), '|cFFFFFF00'..slot..'|r') skinnedFrames[frame] = frame - frame:SetSize(48,48) - icon:SetTexCoord(0,1,0,1) + frame:SetSize(BUFF_BUTTON_SIZE,BUFF_BUTTON_SIZE) + + local offset = BUFF_BUTTON_ZOOM/2 + icon:SetTexCoord(offset, 1 - offset, offset, 1 - offset) if border then border:SetSize(50,50) end