mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 12:28:03 -08:00
Add callback timers
This commit is contained in:
@@ -227,11 +227,9 @@ local function main_loop()
|
||||
players.update_myself_position();
|
||||
quest_status.update_is_online();
|
||||
--quest_status.update_is_quest_host();
|
||||
time.tick();
|
||||
time.update_timers();
|
||||
buffs.update();
|
||||
|
||||
--buffs.debug();
|
||||
|
||||
if quest_status.flow_state == quest_status.flow_states.IN_TRAINING_AREA then
|
||||
|
||||
local large_monster_UI_config = config.current_config.large_monster_UI;
|
||||
@@ -340,4 +338,10 @@ end);
|
||||
|
||||
if imgui.begin_table == nil then
|
||||
re.msg(language.current_language.customization_menu.reframework_outdated);
|
||||
end
|
||||
end
|
||||
|
||||
--------------------------Timers-----------------------------
|
||||
time.new_timer(buffs.update, 0.5);
|
||||
time.new_timer(players.update_display_list, 0.5, 0.3);
|
||||
time.new_timer(time.update_quest_time, 1 / 60, 0.6);
|
||||
--------------------------Timers-----------------------------
|
||||
Reference in New Issue
Block a user