fix dr level text

This commit is contained in:
Sumsebrum 2022-01-11 00:02:21 +01:00
parent 7db32cceef
commit 2dcdc9c978

View File

@ -221,7 +221,6 @@ function Diminishings:UpdateFrame(unit)
icon.timeText:SetTextColor(Gladdy.db.drFontColor.r, Gladdy.db.drFontColor.g, Gladdy.db.drFontColor.b, Gladdy.db.drFontColor.a) icon.timeText:SetTextColor(Gladdy.db.drFontColor.r, Gladdy.db.drFontColor.g, Gladdy.db.drFontColor.b, Gladdy.db.drFontColor.a)
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.drLevelTextFontScale, "OUTLINE")
icon.drLevelText:SetTextColor(getDiminishColor(icon.diminishing))
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)
@ -241,7 +240,6 @@ function Diminishings:UpdateFrame(unit)
if Gladdy.db.drLevelTextEnabled then if Gladdy.db.drLevelTextEnabled then
icon.drLevelText:Show() icon.drLevelText:Show()
icon.drLevelText:SetText(getDiminishText(icon.diminishing))
else else
icon.drLevelText:Hide() icon.drLevelText:Hide()
end end
@ -368,6 +366,8 @@ function Diminishings:AuraFade(unit, spellID)
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)