mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
api: adjust autohide speed on high frame rates
This commit is contained in:
+2
-1
@@ -1156,7 +1156,8 @@ function pfUI.api.EnableAutohide(frame, timeout)
|
||||
this.parent:SetAlpha(1)
|
||||
elseif this.activeTo then
|
||||
if this.activeTo < GetTime() and this.parent:GetAlpha() > 0 then
|
||||
this.parent:SetAlpha(this.parent:GetAlpha() - 0.1)
|
||||
local fps = (60 / math.max(GetFramerate(), 1))
|
||||
this.parent:SetAlpha(this.parent:GetAlpha() - 0.05*fps)
|
||||
end
|
||||
else
|
||||
this.activeTo = GetTime() + timeout
|
||||
|
||||
Reference in New Issue
Block a user