mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
- fixed a situation where bar text could be at 0.1 alpha when the bar was set to 0 alpha
This commit is contained in:
@ -740,10 +740,10 @@ end
|
|||||||
|
|
||||||
function IceBarElement.prototype:SetTextAlpha()
|
function IceBarElement.prototype:SetTextAlpha()
|
||||||
if self.frame.bottomUpperText then
|
if self.frame.bottomUpperText then
|
||||||
self.frame.bottomUpperText:SetAlpha(self.moduleSettings.lockUpperTextAlpha and 1 or math.min(self.alpha + 0.1, 1))
|
self.frame.bottomUpperText:SetAlpha(self.moduleSettings.lockUpperTextAlpha and 1 or math.min(self.alpha > 0 and self.alpha + 0.1 or 0, 1))
|
||||||
end
|
end
|
||||||
if self.frame.bottomLowerText then
|
if self.frame.bottomLowerText then
|
||||||
self.frame.bottomLowerText:SetAlpha(self.moduleSettings.lockLowerTextAlpha and 1 or math.min(self.alpha + 0.1, 1))
|
self.frame.bottomLowerText:SetAlpha(self.moduleSettings.lockLowerTextAlpha and 1 or math.min(self.alpha > 0 and self.alpha + 0.1 or 0, 1))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user