From 5f05f67e2274fc2546489abc1d93fcc27019f6ce Mon Sep 17 00:00:00 2001 From: Alessandro Toia Date: Sat, 7 Oct 2023 15:24:27 -0700 Subject: [PATCH] overlay_params: print all params and values to debug --- src/overlay_params.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/overlay_params.cpp b/src/overlay_params.cpp index 6a35c80f..2b35c5c7 100644 --- a/src/overlay_params.cpp +++ b/src/overlay_params.cpp @@ -926,13 +926,16 @@ parse_overlay_config(struct overlay_params *params, auto real_size = params->font_size * params->font_scale; real_font_size = ImVec2(real_size, real_size / 2); HUDElements.params = params; - if (params->enabled[OVERLAY_PARAM_ENABLED_legacy_layout]){ - HUDElements.legacy_elements(); - } else { - for (auto& option : HUDElements.options) + + for (const auto& option : HUDElements.options) { + SPDLOG_DEBUG("Param: '{}' = '{}'", option.first, option.second); + + if (params->enabled[OVERLAY_PARAM_ENABLED_legacy_layout]) { + HUDElements.legacy_elements(); + } else { HUDElements.sort_elements(option); + } } - // Needs ImGui context but it is null here for OpenGL so just note it and update somewhere else HUDElements.colors.update = true; if (params->no_small_font)