mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-23 20:08:05 -08:00
Formatting
This commit is contained in:
@@ -74,14 +74,14 @@ function this.new_timer(callback, cooldown_seconds, start_offset_seconds)
|
|||||||
this.timer_list[callback] = timer;
|
this.timer_list[callback] = timer;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.new_delay_timer(callback, delay)
|
function this.new_delay_timer(callback, delay_seconds)
|
||||||
if callback == nil or delay == nil then
|
if callback == nil or delay_seconds == nil then
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local delay_timer = {};
|
local delay_timer = {};
|
||||||
delay_timer.callback = callback;
|
delay_timer.callback = callback;
|
||||||
delay_timer.delay = delay;
|
delay_timer.delay = delay_seconds;
|
||||||
|
|
||||||
delay_timer.init_time = os.clock();
|
delay_timer.init_time = os.clock();
|
||||||
|
|
||||||
@@ -95,7 +95,7 @@ function this.remove_delay_timer(delay_timer)
|
|||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
this.delay_timer_list[delay_timer.callback] = nil;
|
this.delay_timer_list[delay_timer.callback] = nil;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_global_timers()
|
function this.init_global_timers()
|
||||||
|
|||||||
Reference in New Issue
Block a user