mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-21 20:00:48 +00:00
cooldown: use the regular one-line throttle
This commit is contained in:
@@ -19,9 +19,8 @@ pfUI:RegisterModule("cooldown", "vanilla:tbc", function ()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if not this.next then this.next = GetTime() + .1 end
|
-- only run every 0.1 seconds from here on
|
||||||
if this.next > GetTime() then return end
|
if ( this.tick or .1) > GetTime() then return else this.tick = GetTime() + .1 end
|
||||||
this.next = GetTime() + .1
|
|
||||||
|
|
||||||
-- fix own alpha value (should be inherited, but somehow isn't always)
|
-- fix own alpha value (should be inherited, but somehow isn't always)
|
||||||
if this:GetAlpha() ~= parent:GetAlpha() then
|
if this:GetAlpha() ~= parent:GetAlpha() then
|
||||||
|
|||||||
Reference in New Issue
Block a user