Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CooldownTracker.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Title: Healer Cooldown Tracker
## Notes: Manually track healer cooldowns for raid leaders. Click to start a timer when a healer calls out on comms.
## Author: Reube
## Version: 1.2.0
## Version: 1.3.0
## SavedVariables: CooldownTrackerDB

Data.lua
Expand Down
24 changes: 12 additions & 12 deletions UI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ local WIDE_ROW_H = 36
local WIDE_W = 300
local ICON_SIZE = 28
-- Card mode (columns ≥ 2)
local CARD_W = 100
local CARD_H = 72
local CARD_PAD = 6
local CARD_ICON = 44
local CARD_W = 72
local CARD_H = 68
local CARD_PAD = 4
local CARD_ICON = 48

-- ---------------------------------------------------------------------------
-- Local helpers
Expand Down Expand Up @@ -100,19 +100,19 @@ local function ApplyCardLayout(row, cW, cH)
-- Colour accent becomes a top strip
row.strip:Show()
row.strip:ClearAllPoints()
row.strip:SetSize(cW, 3)
row.strip:SetSize(cW, 2)
row.strip:SetPoint("TOP", row, "TOP", 0, 0)

row.nameLabel:Hide()
row.classLabel:Hide()

row.iconTex:ClearAllPoints()
row.iconTex:SetSize(CARD_ICON, CARD_ICON)
row.iconTex:SetPoint("CENTER", row, "CENTER", 0, 6)
row.iconTex:SetPoint("CENTER", row, "CENTER", 0, 8)

row.timerLabel:ClearAllPoints()
row.timerLabel:SetFont("Fonts\\FRIZQT__.TTF", 12, "OUTLINE")
row.timerLabel:SetPoint("BOTTOM", row, "BOTTOM", 0, 6)
row.timerLabel:SetFont("Fonts\\FRIZQT__.TTF", 12, "THICKOUTLINE")
row.timerLabel:SetPoint("BOTTOM", row, "BOTTOM", 0, 4)

row.bar:Hide()
row.barFill:Hide()
Expand Down Expand Up @@ -172,7 +172,7 @@ local function CreateRow(parent, cd)

local bg = row:CreateTexture(nil, "BACKGROUND")
bg:SetAllPoints(row)
bg:SetColorTexture(0, 0, 0, 0.35)
bg:SetColorTexture(0, 0, 0, 0.20)
row.bg = bg

local strip = row:CreateTexture(nil, "BACKGROUND")
Expand Down Expand Up @@ -247,7 +247,7 @@ local function CreateRow(parent, cd)
GameTooltip:Show()
end)
row:SetScript("OnLeave", function()
bg:SetColorTexture(0, 0, 0, 0.35)
bg:SetColorTexture(0, 0, 0, 0.20)
GameTooltip:Hide()
end)

Expand Down Expand Up @@ -429,7 +429,7 @@ function CT:BuildUI()
tile = true, tileSize = 16, edgeSize = 16,
insets = { left = 4, right = 4, top = 4, bottom = 4 },
})
f:SetBackdropColor(0.05, 0.05, 0.08, 0.55)
f:SetBackdropColor(0.05, 0.05, 0.08, 0.35)
f:SetBackdropBorderColor(0.3, 0.3, 0.4, 0.8)
end

Expand All @@ -438,7 +438,7 @@ function CT:BuildUI()
titleBg:SetHeight(TITLE_HEIGHT)
titleBg:SetPoint("TOPLEFT", f, "TOPLEFT", 0, 0)
titleBg:SetPoint("TOPRIGHT", f, "TOPRIGHT", 0, 0)
titleBg:SetColorTexture(0.08, 0.08, 0.15, 0.65)
titleBg:SetColorTexture(0.08, 0.08, 0.15, 0.45)

-- Title text
local titleText = f:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
Expand Down
Loading