View Single Post
12-30-14, 07:30 PM   #18
cokedrivers
A Rage Talon Dragon Guard
 
cokedrivers's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 325
Thank you everyone for the advice and help.

So here is what I have came up withy for the cBuffs.lua
Lua Code:
  1. BuffFrame:SetScale(1.193)
  2.  
  3. local origSecondsToTimeAbbrev = _G.SecondsToTimeAbbrev
  4. local function SecondsToTimeAbbrevHook(seconds)
  5.  
  6.     if (seconds >= 86400) then
  7.         return '%dd', ceil(seconds / 86400)
  8.     end
  9.  
  10.     if (seconds >= 3600) then
  11.         return '%dh', ceil(seconds / 3600)
  12.     end
  13.  
  14.     if (seconds >= 60) then
  15.         return '%dm', ceil(seconds / 60)
  16.     end
  17.  
  18.     return '%d', seconds
  19. end
  20. SecondsToTimeAbbrev = SecondsToTimeAbbrevHook
  21.  
  22.  
  23. hooksecurefunc('AuraButton_Update', function(buttonName, index)
  24.     local font = [[Fonts\ARIALN.ttf]]
  25.     local button = _G[buttonName..index]
  26.     if (button) then
  27.         local duration = _G[buttonName..index..'Duration']
  28.         if (duration) then
  29.             duration:ClearAllPoints()
  30.             duration:SetPoint('BOTTOM', button, 'BOTTOM', 0, -2)
  31.             if button.symbol then
  32.                 duration:SetFont(font, 12, 'THINOUTLINE')
  33.             else
  34.                 duration:SetFont(font, 12, 'THINOUTLINE')
  35.             end
  36.             duration:SetShadowOffset(0, 0)
  37.             duration:SetDrawLayer('OVERLAY')
  38.         end
  39.  
  40.         local count = _G[buttonName..index..'Count']
  41.         if (count) then
  42.             count:ClearAllPoints()
  43.             count:SetPoint('TOPRIGHT', button)
  44.             if button.symbol then
  45.                 count:SetFont(font, 12, 'THINOUTLINE')
  46.             else
  47.                 count:SetFont(font, 12, 'THINOUTLINE')
  48.             end
  49.             count:SetShadowOffset(0, 0)
  50.             count:SetDrawLayer('OVERLAY')
  51.         end    
  52.     end
  53. end)
  54.  
  55. SlashCmdList['RELOADUI'] = function()
  56. ReloadUI()
  57. end
  58. SLASH_RELOADUI1 = '/rl'

Again thank you for the help.
Coke
  Reply With Quote