Commit b8ed9fd6 authored by Simpy's avatar Simpy 🐹
Browse files

since we can't believe time will always be small, wait until after the time...

since we can't believe time will always be small, wait until after the time changes and adjust width based on string size
parent c84c5631
......@@ -47,7 +47,6 @@ function UF:Construct_Castbar(frame, moverName)
castbar.Time:SetPoint('RIGHT', castbar, 'RIGHT', -4, 0)
castbar.Time:SetTextColor(0.84, 0.75, 0.65)
castbar.Time:SetJustifyH('RIGHT')
castbar.Time:SetWidth(25)
castbar.Text = castbar:CreateFontString(nil, 'OVERLAY')
UF:Configure_FontString(castbar.Text)
......@@ -319,6 +318,8 @@ function UF:CustomTimeText(duration)
self.Time:SetFormattedText('%.1f / %.1f', abs(duration - self.max), self.max)
end
end
self.Time:SetWidth(self.Time:GetStringWidth())
end
function UF:HideTicks()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment