Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Fix indentations
Browse files Browse the repository at this point in the history
  • Loading branch information
brittyazel committed Apr 27, 2019
1 parent 78e1358 commit f49e3d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Objects/BAR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ function BAR.new(class, barID)
newBar:SetWidth(375)
newBar:SetHeight(40)
newBar:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background",
edgeFile = "Interface/Tooltips/UI-Tooltip-Border",
tile = true, tileSize = 16, edgeSize = 12,
insets = {left = 4, right = 4, top = 4, bottom = 4}})
edgeFile = "Interface/Tooltips/UI-Tooltip-Border",
tile = true, tileSize = 16, edgeSize = 12,
insets = {left = 4, right = 4, top = 4, bottom = 4}})
newBar:SetBackdropColor(0,0,0,0.4)
newBar:SetBackdropBorderColor(0,0,0,0)
newBar:RegisterForClicks("AnyDown", "AnyUp")
Expand Down
10 changes: 5 additions & 5 deletions Objects/BUTTON.lua
Original file line number Diff line number Diff line change
Expand Up @@ -260,30 +260,30 @@ function BUTTON:CooldownCounterUpdate()
else

if (coolDown >= 86400) then --append a "d" if the timer is longer than 1 day
formatted = string.format( "%.0f", coolDown/86400)
formatted = string.format( "%.0f", coolDown/86400)
formatted = formatted.."d"
size = self.iconframecooldown.button:GetWidth()*0.3
self.iconframecooldown.timer:SetTextColor(normalcolor[1], normalcolor[2], normalcolor[3])

elseif (coolDown >= 3600) then --append a "h" if the timer is longer than 1 hour
formatted = string.format( "%.0f",coolDown/3600)
formatted = string.format( "%.0f",coolDown/3600)
formatted = formatted.."h"
size = self.iconframecooldown.button:GetWidth()*0.3
self.iconframecooldown.timer:SetTextColor(normalcolor[1], normalcolor[2], normalcolor[3])

elseif (coolDown >= 60) then --append a "m" if the timer is longer than 1 min
formatted = string.format( "%.0f",coolDown/60)
formatted = string.format( "%.0f",coolDown/60)
formatted = formatted.."m"
size = self.iconframecooldown.button:GetWidth()*0.3
self.iconframecooldown.timer:SetTextColor(normalcolor[1], normalcolor[2], normalcolor[3])

elseif (coolDown >=6) then --this is the 'normal' countdown text state
formatted = string.format( "%.0f",coolDown)
formatted = string.format( "%.0f",coolDown)
size = self.iconframecooldown.button:GetWidth()*0.45
self.iconframecooldown.timer:SetTextColor(normalcolor[1], normalcolor[2], normalcolor[3])

elseif (coolDown < 6) then --this is the countdown text state but with the text larger and set to the expire color (usually red)
formatted = string.format( "%.0f",coolDown)
formatted = string.format( "%.0f",coolDown)
size = self.iconframecooldown.button:GetWidth()*0.6
if (expirecolor) then
self.iconframecooldown.timer:SetTextColor(expirecolor[1], expirecolor[2], expirecolor[3])
Expand Down

0 comments on commit f49e3d4

Please sign in to comment.