mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 04:18:11 -08:00
pcall each large monster UI individually
This commit is contained in:
@@ -121,14 +121,23 @@ function large_monster_UI.draw(dynamic_enabled, static_enabled, highlighted_enab
|
|||||||
end
|
end
|
||||||
|
|
||||||
if dynamic_enabled then
|
if dynamic_enabled then
|
||||||
large_monster_UI.draw_dynamic(displayed_monsters, highlighted_monster, cached_config);
|
local success = pcall(large_monster_UI.draw_dynamic, displayed_monsters, highlighted_monster, cached_config);
|
||||||
|
if not success then
|
||||||
|
customization_menu.status = string.format("[%s] Dynamic Large Monster drawing function threw an exception");
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if highlighted_enabled then
|
if highlighted_enabled then
|
||||||
large_monster_UI.draw_highlighted(highlighted_monster, cached_config);
|
local success = pcall(large_monster_UI.draw_highlighted, highlighted_monster, cached_config);
|
||||||
|
if not success then
|
||||||
|
customization_menu.status = string.format("[%s] Highlighted Large Monster drawing function threw an exception");
|
||||||
|
end
|
||||||
end
|
end
|
||||||
if static_enabled then
|
if static_enabled then
|
||||||
large_monster_UI.draw_static(displayed_monsters, highlighted_monster, cached_config);
|
local success = pcall(large_monster_UI.draw_static, displayed_monsters, highlighted_monster, cached_config);
|
||||||
|
if not success then
|
||||||
|
customization_menu.status = string.format("[%s] Static Large Monster drawing function threw an exception");
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user