mover disabled on module disabled
This commit is contained in:
parent
0d9e9735da
commit
9dbab9939f
@ -448,7 +448,11 @@ function Gladdy:CreateMover(frame, xConfig, yConfig, name, points, width, height
|
|||||||
frame.mover:SetWidth(width or frame:GetWidth())
|
frame.mover:SetWidth(width or frame:GetWidth())
|
||||||
end
|
end
|
||||||
if self.frame and self.frame.testing and self.db.showMover then
|
if self.frame and self.frame.testing and self.db.showMover then
|
||||||
frame.mover:Show()
|
if (activated ~= nil and not Gladdy.db[activated]) then
|
||||||
|
frame.mover:Hide()
|
||||||
|
else
|
||||||
|
frame.mover:Show()
|
||||||
|
end
|
||||||
else
|
else
|
||||||
frame.mover:Hide()
|
frame.mover:Hide()
|
||||||
end
|
end
|
||||||
|
@ -297,8 +297,8 @@ function BuffsDebuffs:UpdateFrame(unit)
|
|||||||
if (unit == "arena1") then
|
if (unit == "arena1") then
|
||||||
Gladdy:CreateMover(self.frames[unit].debuffFrame, "buffsXOffset", "buffsYOffset", L["Debuffs"],
|
Gladdy:CreateMover(self.frames[unit].debuffFrame, "buffsXOffset", "buffsYOffset", L["Debuffs"],
|
||||||
{"TOPRIGHT", "TOPRIGHT"},
|
{"TOPRIGHT", "TOPRIGHT"},
|
||||||
Gladdy.db.buffsIconSize * Gladdy.db.buffsWidthFactor,
|
Gladdy.db.buffsIconSize * Gladdy.db.buffsWidthFactor, Gladdy.db.buffsIconSize,
|
||||||
Gladdy.db.buffsIconSize, 0, 0)
|
0, 0, "buffsEnabled")
|
||||||
if not Gladdy.db.buffsEnabled then
|
if not Gladdy.db.buffsEnabled then
|
||||||
self.frames[unit].debuffFrame.mover:Hide()
|
self.frames[unit].debuffFrame.mover:Hide()
|
||||||
end
|
end
|
||||||
@ -310,8 +310,8 @@ function BuffsDebuffs:UpdateFrame(unit)
|
|||||||
if (unit == "arena1") then
|
if (unit == "arena1") then
|
||||||
Gladdy:CreateMover(self.frames[unit].buffFrame, "buffsBuffsXOffset", "buffsBuffsYOffset", L["Buffs"],
|
Gladdy:CreateMover(self.frames[unit].buffFrame, "buffsBuffsXOffset", "buffsBuffsYOffset", L["Buffs"],
|
||||||
{"TOPRIGHT", "TOPRIGHT"},
|
{"TOPRIGHT", "TOPRIGHT"},
|
||||||
Gladdy.db.buffsBuffsIconSize * Gladdy.db.buffsBuffsWidthFactor,
|
Gladdy.db.buffsBuffsIconSize * Gladdy.db.buffsBuffsWidthFactor, Gladdy.db.buffsBuffsIconSize,
|
||||||
Gladdy.db.buffsBuffsIconSize, 0, 0)
|
0, 0, "buffsEnabled")
|
||||||
if not Gladdy.db.buffsEnabled then
|
if not Gladdy.db.buffsEnabled then
|
||||||
self.frames[unit].buffFrame.mover:Hide()
|
self.frames[unit].buffFrame.mover:Hide()
|
||||||
end
|
end
|
||||||
|
@ -202,7 +202,12 @@ function Castbar:UpdateFrame(unit)
|
|||||||
castBar.icon.texture.overlay:SetVertexColor(Gladdy:SetColor(Gladdy.db.castBarIconColor))
|
castBar.icon.texture.overlay:SetVertexColor(Gladdy:SetColor(Gladdy.db.castBarIconColor))
|
||||||
|
|
||||||
if (unit == "arena1") then
|
if (unit == "arena1") then
|
||||||
Gladdy:CreateMover(castBar, "castBarXOffset", "castBarYOffset", L["Cast Bar"], {"TOPLEFT", "TOPLEFT"}, Gladdy.db.castBarWidth, Gladdy.db.castBarHeight, 0, 0)
|
Gladdy:CreateMover(castBar, "castBarXOffset", "castBarYOffset", L["Cast Bar"],
|
||||||
|
{"TOPLEFT", "TOPLEFT"}, Gladdy.db.castBarWidth, Gladdy.db.castBarHeight,
|
||||||
|
0, 0, "castBarEnabled")
|
||||||
|
end
|
||||||
|
if not Gladdy.db.castBarEnabled then
|
||||||
|
self:CAST_STOP(unit)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -414,6 +419,7 @@ function Castbar:CAST_START(unit, spell, icon, value, maxValue, test)
|
|||||||
castBar.maxValue = maxValue
|
castBar.maxValue = maxValue
|
||||||
castBar.bar:SetMinMaxValues(0, maxValue)
|
castBar.bar:SetMinMaxValues(0, maxValue)
|
||||||
castBar.bar:SetValue(value)
|
castBar.bar:SetValue(value)
|
||||||
|
castBar.icon:SetAlpha(1)
|
||||||
castBar.icon.texture:SetTexture(icon)
|
castBar.icon.texture:SetTexture(icon)
|
||||||
castBar.spellText:SetText(spell)
|
castBar.spellText:SetText(spell)
|
||||||
castBar.timeText:SetText(maxValue)
|
castBar.timeText:SetText(maxValue)
|
||||||
@ -440,6 +446,7 @@ function Castbar:CAST_STOP(unit, ...)
|
|||||||
castBar.channeling = nil
|
castBar.channeling = nil
|
||||||
castBar.value = 0
|
castBar.value = 0
|
||||||
castBar.maxValue = 0
|
castBar.maxValue = 0
|
||||||
|
castBar.icon:SetAlpha(0)
|
||||||
castBar.icon.texture:SetTexture("")
|
castBar.icon.texture:SetTexture("")
|
||||||
castBar.spellText:SetText("")
|
castBar.spellText:SetText("")
|
||||||
castBar.timeText:SetText("")
|
castBar.timeText:SetText("")
|
||||||
|
@ -127,7 +127,7 @@ function Classicon:UpdateFrame(unit)
|
|||||||
Gladdy.db.classIconSize * Gladdy.db.classIconWidthFactor,
|
Gladdy.db.classIconSize * Gladdy.db.classIconWidthFactor,
|
||||||
Gladdy.db.classIconSize,
|
Gladdy.db.classIconSize,
|
||||||
0,
|
0,
|
||||||
0)
|
0, "classIconEnabled")
|
||||||
end
|
end
|
||||||
|
|
||||||
classIcon.texture:ClearAllPoints()
|
classIcon.texture:ClearAllPoints()
|
||||||
|
@ -82,7 +82,10 @@ function CombatIndicator:UpdateFrame(unit)
|
|||||||
ciFrame:Show()
|
ciFrame:Show()
|
||||||
end
|
end
|
||||||
if (unit == "arena1") then
|
if (unit == "arena1") then
|
||||||
Gladdy:CreateMover(ciFrame, "ciXOffset", "ciYOffset", L["Combat Indicator"], {"TOPLEFT", "TOPLEFT"})
|
Gladdy:CreateMover(ciFrame, "ciXOffset", "ciYOffset", L["Combat Indicator"],
|
||||||
|
{"TOPLEFT", "TOPLEFT"},
|
||||||
|
Gladdy.db.ciSize * Gladdy.db.ciWidthFactor, Gladdy.db.ciSize,
|
||||||
|
0, 0, "ciEnabled")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ function Cooldowns:UpdateFrame(unit)
|
|||||||
if (unit == "arena1") then
|
if (unit == "arena1") then
|
||||||
Gladdy:CreateMover(button.spellCooldownFrame,"cooldownXOffset", "cooldownYOffset", L["Cooldown"],
|
Gladdy:CreateMover(button.spellCooldownFrame,"cooldownXOffset", "cooldownYOffset", L["Cooldown"],
|
||||||
{"TOPLEFT", "TOPLEFT"},
|
{"TOPLEFT", "TOPLEFT"},
|
||||||
Gladdy.db.cooldownSize * Gladdy.db.cooldownWidthFactor, Gladdy.db.cooldownSize)
|
Gladdy.db.cooldownSize * Gladdy.db.cooldownWidthFactor, Gladdy.db.cooldownSize, 0, 0, "cooldown")
|
||||||
end
|
end
|
||||||
-- Update each cooldown icon
|
-- Update each cooldown icon
|
||||||
local o = 1
|
local o = 1
|
||||||
|
@ -28,6 +28,7 @@ local function defaultCategories()
|
|||||||
end
|
end
|
||||||
local Diminishings = Gladdy:NewModule("Diminishings", nil, {
|
local Diminishings = Gladdy:NewModule("Diminishings", nil, {
|
||||||
drFont = "DorisPP",
|
drFont = "DorisPP",
|
||||||
|
drFontColorsEnabled = false,
|
||||||
drFontColor = { r = 1, g = 1, b = 0, a = 1 },
|
drFontColor = { r = 1, g = 1, b = 0, a = 1 },
|
||||||
drFontScale = 1,
|
drFontScale = 1,
|
||||||
drGrowDirection = "RIGHT",
|
drGrowDirection = "RIGHT",
|
||||||
@ -46,7 +47,9 @@ local Diminishings = Gladdy:NewModule("Diminishings", nil, {
|
|||||||
drNullColor = {r = 1, g = 0, b = 0, a = 1 },
|
drNullColor = {r = 1, g = 0, b = 0, a = 1 },
|
||||||
drLevelTextEnabled = true,
|
drLevelTextEnabled = true,
|
||||||
drLevelTextFont = "DorisPP",
|
drLevelTextFont = "DorisPP",
|
||||||
drLevelTextFontScale = 0.8,
|
drLevelTextScale = 0.8,
|
||||||
|
drLevelTextColor = { r = 1, g = 1, b = 0, a = 1 },
|
||||||
|
drLevelTextColorsEnabled = true,
|
||||||
drWidthFactor = 1,
|
drWidthFactor = 1,
|
||||||
drCategories = defaultCategories(),
|
drCategories = defaultCategories(),
|
||||||
drDuration = 18,
|
drDuration = 18,
|
||||||
@ -106,12 +109,12 @@ function Diminishings:CreateFrame(unit)
|
|||||||
self.dr = nil
|
self.dr = nil
|
||||||
self.diminishing = 1.0
|
self.diminishing = 1.0
|
||||||
self.texture:SetTexture("")
|
self.texture:SetTexture("")
|
||||||
self.text:SetText("")
|
self.timeText:SetText("")
|
||||||
self:Hide()
|
self:Hide()
|
||||||
Diminishings:Positionate(unit)
|
Diminishings:Positionate(unit)
|
||||||
else
|
else
|
||||||
self.timeLeft = self.timeLeft - elapsed
|
self.timeLeft = self.timeLeft - elapsed
|
||||||
Gladdy:FormatTimer(self.text, self.timeLeft, self.timeLeft < 5)
|
Gladdy:FormatTimer(self.timeText, self.timeLeft, self.timeLeft < 5)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
@ -135,15 +138,6 @@ function Diminishings:CreateFrame(unit)
|
|||||||
icon.border:SetTexture("Interface\\AddOns\\Gladdy\\Images\\Border_rounded_blp")
|
icon.border:SetTexture("Interface\\AddOns\\Gladdy\\Images\\Border_rounded_blp")
|
||||||
icon.border:SetAllPoints(icon)
|
icon.border:SetAllPoints(icon)
|
||||||
|
|
||||||
icon.text = icon.cooldownFrame:CreateFontString(nil, "OVERLAY")
|
|
||||||
icon.text:SetDrawLayer("OVERLAY")
|
|
||||||
icon.text:SetFont(Gladdy:SMFetch("font", "drFont"), 10, "OUTLINE")
|
|
||||||
icon.text:SetTextColor(Gladdy:SetColor(Gladdy.db.drFontColor))
|
|
||||||
icon.text:SetShadowOffset(1, -1)
|
|
||||||
icon.text:SetShadowColor(0, 0, 0, 1)
|
|
||||||
icon.text:SetJustifyH("CENTER")
|
|
||||||
icon.text:SetPoint("CENTER")
|
|
||||||
|
|
||||||
icon.timeText = icon.cooldownFrame:CreateFontString(nil, "OVERLAY")
|
icon.timeText = icon.cooldownFrame:CreateFontString(nil, "OVERLAY")
|
||||||
icon.timeText:SetDrawLayer("OVERLAY")
|
icon.timeText:SetDrawLayer("OVERLAY")
|
||||||
icon.timeText:SetFont(Gladdy:SMFetch("font", "drFont"), 10, "OUTLINE")
|
icon.timeText:SetFont(Gladdy:SMFetch("font", "drFont"), 10, "OUTLINE")
|
||||||
@ -199,7 +193,7 @@ function Diminishings:UpdateFrame(unit)
|
|||||||
Gladdy.db.drIconSize * Gladdy.db.drWidthFactor,
|
Gladdy.db.drIconSize * Gladdy.db.drWidthFactor,
|
||||||
Gladdy.db.drIconSize,
|
Gladdy.db.drIconSize,
|
||||||
0,
|
0,
|
||||||
0)
|
0, "drEnabled")
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 1, 16 do
|
for i = 1, 16 do
|
||||||
@ -215,12 +209,19 @@ function Diminishings:UpdateFrame(unit)
|
|||||||
icon.cooldownFrame:SetFrameStrata(Gladdy.db.drFrameStrata)
|
icon.cooldownFrame:SetFrameStrata(Gladdy.db.drFrameStrata)
|
||||||
icon.cooldownFrame:SetFrameLevel(Gladdy.db.drFrameLevel + 2)
|
icon.cooldownFrame:SetFrameLevel(Gladdy.db.drFrameLevel + 2)
|
||||||
|
|
||||||
icon.text:SetFont(Gladdy:SMFetch("font", "drFont"), (Gladdy.db.drIconSize/2 - 1) * Gladdy.db.drFontScale, "OUTLINE")
|
|
||||||
icon.text:SetTextColor(Gladdy:SetColor(Gladdy.db.drFontColor))
|
|
||||||
icon.timeText:SetFont(Gladdy:SMFetch("font", "drFont"), (Gladdy.db.drIconSize/2 - 1) * Gladdy.db.drFontScale, "OUTLINE")
|
icon.timeText:SetFont(Gladdy:SMFetch("font", "drFont"), (Gladdy.db.drIconSize/2 - 1) * Gladdy.db.drFontScale, "OUTLINE")
|
||||||
icon.timeText:SetTextColor(Gladdy:SetColor(Gladdy.db.drFontColor))
|
if Gladdy.db.drFontColorsEnabled then
|
||||||
|
icon.timeText:SetTextColor(getDiminishColor(icon.diminishing))
|
||||||
|
else
|
||||||
|
icon.timeText:SetTextColor(Gladdy:SetColor(Gladdy.db.drFontColor))
|
||||||
|
end
|
||||||
|
|
||||||
icon.drLevelText:SetFont(Gladdy:SMFetch("font", "drLevelTextFont"), (Gladdy.db.drIconSize/2 - 1) * Gladdy.db.drLevelTextFontScale, "OUTLINE")
|
icon.drLevelText:SetFont(Gladdy:SMFetch("font", "drLevelTextFont"), (Gladdy.db.drIconSize/2 - 1) * Gladdy.db.drLevelTextScale, "OUTLINE")
|
||||||
|
if Gladdy.db.drLevelTextColorsEnabled then
|
||||||
|
icon.drLevelText:SetTextColor(getDiminishColor(icon.diminishing))
|
||||||
|
else
|
||||||
|
icon.drLevelText:SetTextColor(Gladdy:SetColor(Gladdy.db.drLevelTextColor))
|
||||||
|
end
|
||||||
|
|
||||||
icon.cooldown:SetWidth(icon:GetWidth() - icon:GetWidth()/16)
|
icon.cooldown:SetWidth(icon:GetWidth() - icon:GetWidth()/16)
|
||||||
icon.cooldown:SetHeight(icon:GetHeight() - icon:GetHeight()/16)
|
icon.cooldown:SetHeight(icon:GetHeight() - icon:GetHeight()/16)
|
||||||
@ -284,7 +285,6 @@ function Diminishings:ResetUnit(unit)
|
|||||||
icon.active = false
|
icon.active = false
|
||||||
icon.timeLeft = 0
|
icon.timeLeft = 0
|
||||||
icon.texture:SetTexture("")
|
icon.texture:SetTexture("")
|
||||||
icon.text:SetText("")
|
|
||||||
icon.timeText:SetText("")
|
icon.timeText:SetText("")
|
||||||
icon:Hide()
|
icon:Hide()
|
||||||
end
|
end
|
||||||
@ -363,11 +363,23 @@ function Diminishings:AuraFade(unit, spellID)
|
|||||||
else
|
else
|
||||||
lastIcon.texture:SetTexture(select(3, GetSpellInfo(spellID)))
|
lastIcon.texture:SetTexture(select(3, GetSpellInfo(spellID)))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if Gladdy.db.drFontColorsEnabled then
|
||||||
|
lastIcon.timeText:SetTextColor(getDiminishColor(lastIcon.diminishing))
|
||||||
|
else
|
||||||
|
lastIcon.timeText:SetTextColor(Gladdy:SetColor(Gladdy.db.drFontColor))
|
||||||
|
end
|
||||||
|
|
||||||
|
lastIcon.drLevelText:SetText(getDiminishText(lastIcon.diminishing))
|
||||||
|
if Gladdy.db.drLevelTextColorsEnabled then
|
||||||
|
lastIcon.drLevelText:SetTextColor(getDiminishColor(lastIcon.diminishing))
|
||||||
|
else
|
||||||
|
lastIcon.drLevelText:SetTextColor(Gladdy:SetColor(Gladdy.db.drLevelTextColor))
|
||||||
|
end
|
||||||
|
|
||||||
lastIcon.active = true
|
lastIcon.active = true
|
||||||
self:Positionate(unit)
|
self:Positionate(unit)
|
||||||
lastIcon:Show()
|
lastIcon:Show()
|
||||||
lastIcon.drLevelText:SetText(getDiminishText(lastIcon.diminishing))
|
|
||||||
lastIcon.drLevelText:SetTextColor(getDiminishColor(lastIcon.diminishing))
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function Diminishings:Positionate(unit)
|
function Diminishings:Positionate(unit)
|
||||||
@ -519,34 +531,42 @@ function Diminishings:GetOptions()
|
|||||||
},
|
},
|
||||||
font = {
|
font = {
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["Font"],
|
name = L["Cooldown Font"],
|
||||||
order = 3,
|
order = 3,
|
||||||
args = {
|
args = {
|
||||||
headerFont = {
|
headerFont = {
|
||||||
type = "header",
|
type = "header",
|
||||||
name = L["Font"],
|
name = L["Cooldown Font"],
|
||||||
order = 10,
|
order = 1,
|
||||||
},
|
},
|
||||||
drFont = Gladdy:option({
|
drFontColorsEnabled = Gladdy:option({
|
||||||
type = "select",
|
type = "toggle",
|
||||||
name = L["Font"],
|
name = L["Enable DR Colors as Font Color"],
|
||||||
desc = L["Font of the cooldown"],
|
desc = L["Shows the current DR Level on the DR icon."],
|
||||||
order = 11,
|
order = 2,
|
||||||
dialogControl = "LSM30_Font",
|
width = "full",
|
||||||
values = AceGUIWidgetLSMlists.font,
|
|
||||||
}),
|
}),
|
||||||
drFontColor = Gladdy:colorOption({
|
drFontColor = Gladdy:colorOption({
|
||||||
type = "color",
|
type = "color",
|
||||||
name = L["Font color"],
|
name = L["Font color"],
|
||||||
desc = L["Color of the text"],
|
desc = L["Color of the text"],
|
||||||
order = 13,
|
order = 3,
|
||||||
hasAlpha = true,
|
hasAlpha = true,
|
||||||
|
width = "full",
|
||||||
|
}),
|
||||||
|
drFont = Gladdy:option({
|
||||||
|
type = "select",
|
||||||
|
name = L["Font"],
|
||||||
|
desc = L["Font of the cooldown"],
|
||||||
|
order = 4,
|
||||||
|
dialogControl = "LSM30_Font",
|
||||||
|
values = AceGUIWidgetLSMlists.font,
|
||||||
}),
|
}),
|
||||||
drFontScale = Gladdy:option({
|
drFontScale = Gladdy:option({
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["Font scale"],
|
name = L["Font scale"],
|
||||||
desc = L["Scale of the text"],
|
desc = L["Scale of the text"],
|
||||||
order = 12,
|
order = 5,
|
||||||
min = 0.1,
|
min = 0.1,
|
||||||
max = 2,
|
max = 2,
|
||||||
step = 0.1,
|
step = 0.1,
|
||||||
@ -554,10 +574,142 @@ function Diminishings:GetOptions()
|
|||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
levelText = {
|
||||||
|
type = "group",
|
||||||
|
name = L["DR Font"],
|
||||||
|
order = 4,
|
||||||
|
args = {
|
||||||
|
headerBorder = {
|
||||||
|
type = "header",
|
||||||
|
name = L["DR Font"],
|
||||||
|
order = 1,
|
||||||
|
},
|
||||||
|
drLevelTextEnabled = Gladdy:option({
|
||||||
|
type = "toggle",
|
||||||
|
name = L["Enable DR Font"],
|
||||||
|
desc = L["Shows the current DR Level on the DR icon."],
|
||||||
|
order = 2,
|
||||||
|
width = "full",
|
||||||
|
}),
|
||||||
|
drLevelTextColorsEnabled = Gladdy:option({
|
||||||
|
type = "toggle",
|
||||||
|
name = L["Enable DR Colors as Font Color"],
|
||||||
|
desc = L["Shows the current DR Level on the DR icon."],
|
||||||
|
order = 3,
|
||||||
|
width = "full",
|
||||||
|
disabled = function()
|
||||||
|
return not Gladdy.db.drLevelTextEnabled
|
||||||
|
end,
|
||||||
|
}),
|
||||||
|
drLevelTextColor = Gladdy:colorOption({
|
||||||
|
type = "color",
|
||||||
|
name = L["DR Font color"],
|
||||||
|
desc = L["Color of the font"],
|
||||||
|
order = 4,
|
||||||
|
hasAlpha = true,
|
||||||
|
disabled = function()
|
||||||
|
return not Gladdy.db.drLevelTextEnabled
|
||||||
|
end,
|
||||||
|
}),
|
||||||
|
drLevelTextFont = Gladdy:option({
|
||||||
|
type = "select",
|
||||||
|
name = L["Font"],
|
||||||
|
desc = L["Font of the DR Font"],
|
||||||
|
order = 5,
|
||||||
|
dialogControl = "LSM30_Font",
|
||||||
|
values = AceGUIWidgetLSMlists.font,
|
||||||
|
width = "full",
|
||||||
|
disabled = function()
|
||||||
|
return not Gladdy.db.drLevelTextEnabled
|
||||||
|
end,
|
||||||
|
}),
|
||||||
|
drLevelTextScale = Gladdy:option({
|
||||||
|
type = "range",
|
||||||
|
name = L["Font scale"],
|
||||||
|
desc = L["Scale of the text"],
|
||||||
|
order = 6,
|
||||||
|
min = 0.1,
|
||||||
|
max = 2,
|
||||||
|
step = 0.1,
|
||||||
|
width = "full",
|
||||||
|
disabled = function()
|
||||||
|
return not Gladdy.db.drLevelTextEnabled
|
||||||
|
end,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
border = {
|
||||||
|
type = "group",
|
||||||
|
name = L["Border"],
|
||||||
|
order = 5,
|
||||||
|
args = {
|
||||||
|
headerBorder = {
|
||||||
|
type = "header",
|
||||||
|
name = L["Border"],
|
||||||
|
order = 1,
|
||||||
|
},
|
||||||
|
drBorderColorsEnabled = Gladdy:option({
|
||||||
|
type = "toggle",
|
||||||
|
name = L["Enable DR Colors as Border Color"],
|
||||||
|
desc = L["Colors borders of DRs in respective DR Colors"],
|
||||||
|
order = 2,
|
||||||
|
width = "full",
|
||||||
|
}),
|
||||||
|
drBorderColor = Gladdy:colorOption({
|
||||||
|
type = "color",
|
||||||
|
name = L["Border color"],
|
||||||
|
desc = L["Color of the border"],
|
||||||
|
order = 3,
|
||||||
|
disabled = function()
|
||||||
|
return Gladdy.db.drBorderColorsEnabled
|
||||||
|
end,
|
||||||
|
hasAlpha = true,
|
||||||
|
}),
|
||||||
|
drBorderStyle = Gladdy:option({
|
||||||
|
type = "select",
|
||||||
|
name = L["Border style"],
|
||||||
|
order = 4,
|
||||||
|
values = Gladdy:GetIconStyles()
|
||||||
|
}),
|
||||||
|
}
|
||||||
|
},
|
||||||
|
levelColors = {
|
||||||
|
type = "group",
|
||||||
|
name = L["DR Colors"],
|
||||||
|
order = 6,
|
||||||
|
args = {
|
||||||
|
headerColors = {
|
||||||
|
type = "header",
|
||||||
|
name = L["DR Colors"],
|
||||||
|
order = 10,
|
||||||
|
},
|
||||||
|
drHalfColor = Gladdy:colorOption({
|
||||||
|
type = "color",
|
||||||
|
name = L["Half"],
|
||||||
|
desc = L["Color of the border"],
|
||||||
|
order = 42,
|
||||||
|
hasAlpha = true,
|
||||||
|
}),
|
||||||
|
drQuarterColor = Gladdy:colorOption({
|
||||||
|
type = "color",
|
||||||
|
name = L["Quarter"],
|
||||||
|
desc = L["Color of the border"],
|
||||||
|
order = 43,
|
||||||
|
hasAlpha = true,
|
||||||
|
}),
|
||||||
|
drNullColor = Gladdy:colorOption({
|
||||||
|
type = "color",
|
||||||
|
name = L["Immune"],
|
||||||
|
desc = L["Color of the border"],
|
||||||
|
order = 44,
|
||||||
|
hasAlpha = true,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
},
|
||||||
position = {
|
position = {
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["Position"],
|
name = L["Position"],
|
||||||
order = 6,
|
order = 7,
|
||||||
args = {
|
args = {
|
||||||
headerPosition = {
|
headerPosition = {
|
||||||
type = "header",
|
type = "header",
|
||||||
@ -594,105 +746,10 @@ function Diminishings:GetOptions()
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
level = {
|
|
||||||
type = "group",
|
|
||||||
name = L["Level Text"],
|
|
||||||
order = 5,
|
|
||||||
args = {
|
|
||||||
headerBorder = {
|
|
||||||
type = "header",
|
|
||||||
name = L["DR Level"],
|
|
||||||
order = 1,
|
|
||||||
},
|
|
||||||
drLevelTextEnabled = Gladdy:option({
|
|
||||||
type = "toggle",
|
|
||||||
name = L["DR Level Text Enabled"],
|
|
||||||
desc = L["Shows the current DR Level on the DR icon."],
|
|
||||||
order = 2,
|
|
||||||
width = "full",
|
|
||||||
}),
|
|
||||||
drLevelTextFont = Gladdy:option({
|
|
||||||
type = "select",
|
|
||||||
name = L["Font"],
|
|
||||||
desc = L["Font of the cooldown"],
|
|
||||||
order = 3,
|
|
||||||
dialogControl = "LSM30_Font",
|
|
||||||
values = AceGUIWidgetLSMlists.font,
|
|
||||||
}),
|
|
||||||
drLevelTextFontScale = Gladdy:option({
|
|
||||||
type = "range",
|
|
||||||
name = L["Font scale"],
|
|
||||||
desc = L["Scale of the text"],
|
|
||||||
order = 4,
|
|
||||||
min = 0.1,
|
|
||||||
max = 2,
|
|
||||||
step = 0.1,
|
|
||||||
width = "full",
|
|
||||||
}),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
border = {
|
|
||||||
type = "group",
|
|
||||||
name = L["Border"],
|
|
||||||
order = 4,
|
|
||||||
args = {
|
|
||||||
headerBorder = {
|
|
||||||
type = "header",
|
|
||||||
name = L["Border"],
|
|
||||||
order = 30,
|
|
||||||
},
|
|
||||||
drBorderStyle = Gladdy:option({
|
|
||||||
type = "select",
|
|
||||||
name = L["Border style"],
|
|
||||||
order = 31,
|
|
||||||
values = Gladdy:GetIconStyles()
|
|
||||||
}),
|
|
||||||
drBorderColor = Gladdy:colorOption({
|
|
||||||
type = "color",
|
|
||||||
name = L["Border color"],
|
|
||||||
desc = L["Color of the border"],
|
|
||||||
order = 32,
|
|
||||||
hasAlpha = true,
|
|
||||||
}),
|
|
||||||
headerBorderColors = {
|
|
||||||
type = "header",
|
|
||||||
name = L["DR Border Colors"],
|
|
||||||
order = 40,
|
|
||||||
},
|
|
||||||
drBorderColorsEnabled = Gladdy:option({
|
|
||||||
type = "toggle",
|
|
||||||
name = L["Dr Border Colors Enabled"],
|
|
||||||
desc = L["Colors borders of DRs in respective DR-color below"],
|
|
||||||
order = 41,
|
|
||||||
width = "full",
|
|
||||||
}),
|
|
||||||
drHalfColor = Gladdy:colorOption({
|
|
||||||
type = "color",
|
|
||||||
name = L["Half"],
|
|
||||||
desc = L["Color of the border"],
|
|
||||||
order = 42,
|
|
||||||
hasAlpha = true,
|
|
||||||
}),
|
|
||||||
drQuarterColor = Gladdy:colorOption({
|
|
||||||
type = "color",
|
|
||||||
name = L["Quarter"],
|
|
||||||
desc = L["Color of the border"],
|
|
||||||
order = 43,
|
|
||||||
hasAlpha = true,
|
|
||||||
}),
|
|
||||||
drNullColor = Gladdy:colorOption({
|
|
||||||
type = "color",
|
|
||||||
name = L["Immune"],
|
|
||||||
desc = L["Color of the border"],
|
|
||||||
order = 44,
|
|
||||||
hasAlpha = true,
|
|
||||||
}),
|
|
||||||
}
|
|
||||||
},
|
|
||||||
frameStrata = {
|
frameStrata = {
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["Frame Strata and Level"],
|
name = L["Frame Strata and Level"],
|
||||||
order = 7,
|
order = 8,
|
||||||
args = {
|
args = {
|
||||||
headerAuraLevel = {
|
headerAuraLevel = {
|
||||||
type = "header",
|
type = "header",
|
||||||
|
@ -146,8 +146,7 @@ function Racial:UpdateFrame(unit)
|
|||||||
{"TOPLEFT", "TOPLEFT"},
|
{"TOPLEFT", "TOPLEFT"},
|
||||||
Gladdy.db.racialSize * Gladdy.db.racialWidthFactor,
|
Gladdy.db.racialSize * Gladdy.db.racialWidthFactor,
|
||||||
Gladdy.db.racialSize,
|
Gladdy.db.racialSize,
|
||||||
0,
|
0, 0, "racialEnabled")
|
||||||
0)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if (Gladdy.db.racialEnabled == false) then
|
if (Gladdy.db.racialEnabled == false) then
|
||||||
|
@ -172,7 +172,7 @@ function Trinket:UpdateFrame(unit)
|
|||||||
Gladdy.db.trinketSize * Gladdy.db.trinketWidthFactor,
|
Gladdy.db.trinketSize * Gladdy.db.trinketWidthFactor,
|
||||||
Gladdy.db.trinketSize,
|
Gladdy.db.trinketSize,
|
||||||
0,
|
0,
|
||||||
0)
|
0, "trinketEnabled")
|
||||||
end
|
end
|
||||||
|
|
||||||
trinket.cooldown:SetAlpha(Gladdy.db.trinketCooldownAlpha)
|
trinket.cooldown:SetAlpha(Gladdy.db.trinketCooldownAlpha)
|
||||||
|
Loading…
Reference in New Issue
Block a user