mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- forcibly set bar upper/lower text width to 0 after setting their contents so that they auto-resize to the proper width. some massive bar/font sizes were causing strings to get cut off
This commit is contained in:
@ -939,6 +939,7 @@ function IceBarElement.prototype:SetBottomText1(text, color)
|
||||
end
|
||||
|
||||
self.frame.bottomUpperText:SetText(text)
|
||||
self.frame.bottomUpperText:SetWidth(0)
|
||||
end
|
||||
|
||||
|
||||
@ -968,6 +969,7 @@ function IceBarElement.prototype:SetBottomText2(text, color, alpha)
|
||||
|
||||
self.frame.bottomLowerText:SetTextColor(self:GetColor(color, alpha))
|
||||
self.frame.bottomLowerText:SetText(text)
|
||||
self.frame.bottomLowerText:SetWidth(0)
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user