Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add blizz aura timer scaling option #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion ShadowedUnitFrames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function ShadowUF:OnInitialize()
advanced = false,
tooltipCombat = false,
omnicc = false,
blizzardcc = true,
blizzardcc = {disabled = true, scale = 0.75},
tags = {},
units = {},
positions = {},
Expand Down
2 changes: 2 additions & 0 deletions modules/auras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ local function updateButton(id, group, config)
button.cooldown:SetDrawEdge(false)
button.cooldown:SetDrawSwipe(true)
button.cooldown:SetSwipeColor(0, 0, 0, 0.8)
-- Scaling compared to aura frame
button.cooldown:SetScale(ShadowUF.db.profile.blizzardcc.scale)
button.cooldown:Hide()

button.stack = button:CreateFontString(nil, "OVERLAY")
Expand Down
34 changes: 22 additions & 12 deletions options/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -724,54 +724,64 @@ local function loadGeneralOptions()
name = "",
width = "full",
},
omnicc = {
blizzardcc = {
order = 2.5,
type = "toggle",
name = L["Disable OmniCC Cooldown Count"],
name = L["Disable Blizzard Cooldown Count"],
desc = L["Disables showing Cooldown Count timers in all Shadowed Unit Frame auras."],
arg = "omnicc",
arg = "blizzardcc.disabled",
width = "double",
},
blizzardcc = {
order = 2.5,
blizzardccScale = {
order = 3,
type = "range",
name = L["Blizzard Cooldown Count Scale"],
desc = L["Size of the Blizzard Cooldown Count based on the aura frame size (Require reload)."],
min = 0.35, max = 1, step = 0.05,
arg = "blizzardcc.scale",
disabled = function() return ShadowUF.db.profile.blizzardcc.disabled end,
hidden = hideAdvancedOption,
},
omnicc = {
order = 3.5,
type = "toggle",
name = L["Disable Blizzard Cooldown Count"],
name = L["Disable OmniCC Cooldown Count"],
desc = L["Disables showing Cooldown Count timers in all Shadowed Unit Frame auras."],
arg = "blizzardcc",
arg = "omnicc",
width = "double",
},
hideCombat = {
order = 3,
order = 4,
type = "toggle",
name = L["Hide tooltips in combat"],
desc = L["Prevents unit tooltips from showing while in combat."],
arg = "tooltipCombat",
width = "double",
},
sep2 = {
order = 3.5,
order = 4.5,
type = "description",
name = "",
width = "full",
},
auraBorder = {
order = 5,
order = 6,
type = "select",
name = L["Aura border style"],
desc = L["Style of borders to show for all auras."],
values = {["dark"] = L["Dark"], ["light"] = L["Light"], ["blizzard"] = L["Blizzard"], [""] = L["None"]},
arg = "auras.borderType",
},
statusbar = {
order = 6,
order = 7,
type = "select",
name = L["Bar texture"],
dialogControl = "LSM30_Statusbar",
values = getMediaData,
arg = "bars.texture",
},
spacing = {
order = 7,
order = 8,
type = "range",
name = L["Bar spacing"],
desc = L["How much spacing should be provided between all of the bars inside a unit frame, negative values move them farther apart, positive values bring them closer together. 0 for no spacing."],
Expand Down