Skip to content

Commit d830e6e

Browse files
authored
feat: compact icon-sized cards, timer overlay, more transparent backdrop (#9)
* feat: compact icon-sized cards, timer overlay, more transparent backdrop * fix: remove duplicate strip SetSize call in ApplyCardLayout * fix: dial back card compactness to middle ground (72x58, pad 4) * fix: use THICKOUTLINE and white text for card timer overlay readability * fix: move timer below icon with taller card (68px), revert orange timer colour * chore: bump version to 1.3.0
1 parent d7bb717 commit d830e6e

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

CooldownTracker.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## Title: Healer Cooldown Tracker
33
## Notes: Manually track healer cooldowns for raid leaders. Click to start a timer when a healer calls out on comms.
44
## Author: Reube
5-
## Version: 1.2.0
5+
## Version: 1.3.0
66
## SavedVariables: CooldownTrackerDB
77

88
Data.lua

UI.lua

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ local WIDE_ROW_H = 36
2222
local WIDE_W = 300
2323
local ICON_SIZE = 28
2424
-- Card mode (columns ≥ 2)
25-
local CARD_W = 100
26-
local CARD_H = 72
27-
local CARD_PAD = 6
28-
local CARD_ICON = 44
25+
local CARD_W = 72
26+
local CARD_H = 68
27+
local CARD_PAD = 4
28+
local CARD_ICON = 48
2929

3030
-- ---------------------------------------------------------------------------
3131
-- Local helpers
@@ -100,19 +100,19 @@ local function ApplyCardLayout(row, cW, cH)
100100
-- Colour accent becomes a top strip
101101
row.strip:Show()
102102
row.strip:ClearAllPoints()
103-
row.strip:SetSize(cW, 3)
103+
row.strip:SetSize(cW, 2)
104104
row.strip:SetPoint("TOP", row, "TOP", 0, 0)
105105

106106
row.nameLabel:Hide()
107107
row.classLabel:Hide()
108108

109109
row.iconTex:ClearAllPoints()
110110
row.iconTex:SetSize(CARD_ICON, CARD_ICON)
111-
row.iconTex:SetPoint("CENTER", row, "CENTER", 0, 6)
111+
row.iconTex:SetPoint("CENTER", row, "CENTER", 0, 8)
112112

113113
row.timerLabel:ClearAllPoints()
114-
row.timerLabel:SetFont("Fonts\\FRIZQT__.TTF", 12, "OUTLINE")
115-
row.timerLabel:SetPoint("BOTTOM", row, "BOTTOM", 0, 6)
114+
row.timerLabel:SetFont("Fonts\\FRIZQT__.TTF", 12, "THICKOUTLINE")
115+
row.timerLabel:SetPoint("BOTTOM", row, "BOTTOM", 0, 4)
116116

117117
row.bar:Hide()
118118
row.barFill:Hide()
@@ -172,7 +172,7 @@ local function CreateRow(parent, cd)
172172

173173
local bg = row:CreateTexture(nil, "BACKGROUND")
174174
bg:SetAllPoints(row)
175-
bg:SetColorTexture(0, 0, 0, 0.35)
175+
bg:SetColorTexture(0, 0, 0, 0.20)
176176
row.bg = bg
177177

178178
local strip = row:CreateTexture(nil, "BACKGROUND")
@@ -247,7 +247,7 @@ local function CreateRow(parent, cd)
247247
GameTooltip:Show()
248248
end)
249249
row:SetScript("OnLeave", function()
250-
bg:SetColorTexture(0, 0, 0, 0.35)
250+
bg:SetColorTexture(0, 0, 0, 0.20)
251251
GameTooltip:Hide()
252252
end)
253253

@@ -429,7 +429,7 @@ function CT:BuildUI()
429429
tile = true, tileSize = 16, edgeSize = 16,
430430
insets = { left = 4, right = 4, top = 4, bottom = 4 },
431431
})
432-
f:SetBackdropColor(0.05, 0.05, 0.08, 0.55)
432+
f:SetBackdropColor(0.05, 0.05, 0.08, 0.35)
433433
f:SetBackdropBorderColor(0.3, 0.3, 0.4, 0.8)
434434
end
435435

@@ -438,7 +438,7 @@ function CT:BuildUI()
438438
titleBg:SetHeight(TITLE_HEIGHT)
439439
titleBg:SetPoint("TOPLEFT", f, "TOPLEFT", 0, 0)
440440
titleBg:SetPoint("TOPRIGHT", f, "TOPRIGHT", 0, 0)
441-
titleBg:SetColorTexture(0.08, 0.08, 0.15, 0.65)
441+
titleBg:SetColorTexture(0.08, 0.08, 0.15, 0.45)
442442

443443
-- Title text
444444
local titleText = f:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")

0 commit comments

Comments
 (0)