Skip to content
Open
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
12 changes: 12 additions & 0 deletions Core/Initialize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,26 @@ function addonTable.Core.UpgradeDesign(design)
anchor = {"BOTTOMLEFT", -63, 25},
scale = 1,
showCountdown = true,
countdownSwipeOpacity = 1,
hideCountdownEdge = false,
direction = "RIGHT",
},
{
kind = "buffs",
anchor = {"RIGHT", -68, 0},
scale = 1,
showCountdown = true,
countdownSwipeOpacity = 1,
hideCountdownEdge = false,
direction = "LEFT",
},
{
kind = "crowdControl",
anchor = {"LEFT", 68, 0},
scale = 1,
showCountdown = true,
countdownSwipeOpacity = 1,
hideCountdownEdge = false,
direction = "RIGHT",
},
}
Expand All @@ -100,6 +106,12 @@ function addonTable.Core.UpgradeDesign(design)
if aura.showCountdown == nil then
aura.showCountdown = true
end
if aura.countdownSwipeOpacity == nil then
aura.countdownSwipeOpacity = 1
end
if aura.hideCountdownEdge == nil then
aura.hideCountdownEdge = false
end
if aura.direction == nil then
if aura.anchor[1] and aura.anchor[1]:match("RIGHT") then
aura.direction = "LEFT"
Expand Down
6 changes: 6 additions & 0 deletions CustomiseDialog/AddWidgetsList.lua
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ addonTable.CustomiseDialog.DesignWidgets = {
scale = 1,
height = 1,
showCountdown = true,
countdownSwipeOpacity = 1,
hideCountdownEdge = false,
direction = "RIGHT",
textScale = 1,
sorting = {
Expand All @@ -224,6 +226,8 @@ addonTable.CustomiseDialog.DesignWidgets = {
scale = 1,
height = 1,
showCountdown = true,
countdownSwipeOpacity = 1,
hideCountdownEdge = false,
direction = "LEFT",
textScale = 1,
sorting = {
Expand All @@ -246,6 +250,8 @@ addonTable.CustomiseDialog.DesignWidgets = {
scale = 1,
height = 1,
showCountdown = true,
countdownSwipeOpacity = 1,
hideCountdownEdge = false,
direction = "RIGHT",
textScale = 1,
sorting = {
Expand Down
2 changes: 2 additions & 0 deletions CustomiseDialog/Designer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,8 @@ function addonTable.CustomiseDialog.GetMainDesigner(parent)
container.auras[1].Cooldown:SetCooldown(GetTime() - 2, 5)
container.auras[1].Cooldown:Pause()
container.auras[1].Cooldown:SetHideCountdownNumbers(not details.showCountdown)
container.auras[1].Cooldown:SetSwipeColor(1,1,1,details.countdownSwipeOpacity)
container.auras[1].Cooldown:SetDrawEdge(not details.hideCountdownEdge)
container.auras[1].CountFrame.Count:SetText(2);
container.auras[1].CountFrame.Count:SetFontObject(addonTable.CurrentFont)
container.auras[1].CountFrame.Count:SetTextScale(11/12 * details.textScale)
Expand Down
22 changes: 22 additions & 0 deletions CustomiseDialog/WidgetsConfiguration.lua
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,28 @@ addonTable.CustomiseDialog.WidgetsConfig = {
return details.showCountdown
end,
},
{
label = addonTable.Locales.COUNTDOWN_SWIPE_OPACITY,
kind = "slider",
min = 0, max = 100,
valuePattern = "%d%%",
setter = function(details, value)
details.countdownSwipeOpacity = value / 100
end,
getter = function(details)
return details.countdownSwipeOpacity * 100
end,
},
{
label = addonTable.Locales.HIDE_COUNTDOWN_EDGE,
kind = "checkbox",
setter = function(details, value)
details.hideCountdownEdge = value
end,
getter = function(details)
return details.hideCountdownEdge
end,
},
},
},
{
Expand Down
2 changes: 2 additions & 0 deletions Display/Nameplate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ function addonTable.Display.NameplateMixin:OnLoad()
auraFrame.CountFrame.Count:Show();

auraFrame.Cooldown:SetHideCountdownNumbers(not details.showCountdown)
auraFrame.Cooldown:SetSwipeColor(1,1,1,details.countdownSwipeOpacity)
auraFrame.Cooldown:SetDrawEdge(not details.hideCountdownEdge)

if details.showCountdown then
auraFrame.Cooldown.Text:SetFontObject(addonTable.CurrentFont)
Expand Down
2 changes: 2 additions & 0 deletions Locales.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ L["ABSORB"] = "Absorb"
L["ABSORB_COLOR"] = "Absorb color"
L["HIGHLIGHT_BAR_EDGE"] = "Highlight bar edge"
L["SHOW_COUNTDOWN"] = "Show countdown"
L["COUNTDOWN_SWIPE_OPACITY"] = "Countdown swipe opacity"
L["HIDE_COUNTDOWN_EDGE"] = "Hide countdown edge"
L["FOCUSED"] = "Focused"
L["CLOSER_TO_SCREEN_EDGES"] = "Closer to screen edges"
L["SIMPLIFIED_NAMEPLATES"] = "Simplified nameplates"
Expand Down